This Vagrant is a simple Ubuntu Trusty64 vagrant configuration for LNMP stack developers which also includes many related modern development tools.
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.
- 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
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
To use this Ubuntuspace vagrant, clone this github repo
$ git clone https://github.com/SubrataBauri/vagrant-apache-vbox.git
$ git clone git@github.com: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.
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
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
You must have Vagrant and VirtualBoxinstalled in your pc.
These are credentials setup by default.
- Host: 10.0.0.100 (Change in Vagrantfile if you like)
- Username: vagrant
- Password: vagrant
- Port: 22
- Username: root
- Password: root
- Host: localhost
- Port: 3306