This Vagrant is a simple Ubuntu Trusty64 vagrant configuration for LAMP 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 /var/www/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 '1024mb' of RAM and 1 CPU. You can change ths configuration from Vagrantfile.
- Ubuntu Trusty64 (64-Bit)
- Apache 2
- PHP v5.6.7 with mysql, mcrypt, memcached, memcache, sqlite, xmlrpc, geoip gd, xdebug, php5-fpm, php5-common
- MySQL v5.5.41
- Git
- 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/ubuntuspace.git
$ git clone [email protected]:SubrataBauri/ubuntuspace.git
to your mac/pc/linux. When clone is complete, go to the ubuntuspace
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.101 dev.ubuntuspace.com
Start the VM
$ cd /ubuntuspace
$ vagrant up
First time of your 'vagrant up' will provision the vagrant. You can see the status of your VM from http://dev.ubuntuspace.com.
You can check the phpinfo
from http://dev.ubuntuspace.com/phpinfo.php
You must have Vagrant and VirtualBoxinstalled in your pc.
These are credentials setup by default.
- Host: 10.0.0.101 (Change in Vagrantfile if you like)
- Username: vagrant
- Password: vagrant
- Port: 22
- Username: root
- Password: root
- Host: localhost
- Port: 3306
vagrant ssh
cd /etc/apache2/sites-available/
vim 000-default.conf
add the following section:
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>