Skip to content

PHP 7.1 vagrant development box with apache, php-fpm, MySQL, Composer, Bower, Gulp on Ubuntu 14.04

Notifications You must be signed in to change notification settings

SubrataBauri/vagrant-apache-vbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntuspace Vagrant

This Vagrant is a simple Ubuntu Trusty64 vagrant configuration for LNMP stack developers which also includes many related modern development tools.

Overview

This vagrant use ubuntu/trusty64 from Atlas Vagrant Box. On your 'vagrant up' command, this vagrantfile will automatically download the box. Vagrant folder here contain a bootstrap.sh file which provision the vagrant box.

You need to place your projects in projects directory. This directory is synced with /usr/share/nginx/html directory in the virtual machine. This project folder also contain a config folder which is used during the provisioning.

This vagrant box is configured to use 2048 MB of RAM and 4 CPU core. You can change ths configuration from Vagrantfile.

Included packages

  • Ubuntu Trusty64 (64-Bit)
  • Nginx
  • PHP v7.1 with mysql, mcrypt, memcached, memcache, sqlite, xmlrpc, geoip gd, xdebug, php7.1-fpm, php7.1-common, php7.1-bcmath
  • MySQL v5.5.41
  • Git
  • Node
  • Composer
  • NPM
  • Bower

Included Dependencies

The following dependencies are installed using apt-get as they are required to install and build other modules:

  • CURL
  • python-software-properties
  • build-essential
  • libev-dev

Installation

Install via Git

To use this Ubuntuspace vagrant, clone this github repo

With https

$ git clone https://github.com/SubrataBauri/vagrant-apache-vbox.git

With ssh

   $ git clone [email protected]:SubrataBauri/vagrant-apache-vbox.git

to your mac/pc/linux. When clone is complete, go to the vagrant-nginx-vbox and now you are ready to use your Virtual Machine.

Edit hosts file

Windows - start notepad.exe as Administrator and browse to this file:

C:\Windows\System32\drivers\etc\hosts

Linux/Mac - use root user or sudo to edit this file:

/etc/hosts

Add the following lines to your hosts file:

10.0.0.100 dev.domainname.com

Use

Start the VM

$ cd /vagrant-nginx-vbox
$ vagrant up

First time of your 'vagrant up' will provision the vagrant. You can see the status of your VM from http://dev.domainname.com. You can check the phpinfo from http://dev.domainname.com/phpinfo.php

Requirements

You must have Vagrant and VirtualBoxinstalled in your pc.

Default Credentials

These are credentials setup by default.

Host Address:

  • Host: 10.0.0.100 (Change in Vagrantfile if you like)

SSH

  • Username: vagrant
  • Password: vagrant
  • Port: 22

MySQL Credentials

  • Username: root
  • Password: root
  • Host: localhost
  • Port: 3306

About

PHP 7.1 vagrant development box with apache, php-fpm, MySQL, Composer, Bower, Gulp on Ubuntu 14.04

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published