Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Vagrant LAMP

Want to test a new web app but don't want to affect your current Apache / MySQL / PHP system? Applications like MAMP are great, but they don't make it easy to maintain multiple, separate web roots.

If you find yourself needing quick to configure web stack, but also one that is customizable try this Vagrant project

Vagrant allows for Virtual Machines to be quickly setup, and easy to use.

And this project aims to make it very easy to spinup a complete LAMP stack in a matter of minutes.




  1. Download one of the releases available
  2. Extract the ZIP file.
  3. From the command-line:
$ cd vagrant-lamp-release
$ vagrant up

That is pretty simple.



The Apache server is available at http://localhost:8888


Externally the MySQL server is available at port 8889, and when running on the VM it is available as a socket or at port 3306 as usual. Username: root Password: root

Technical Details

  • Ubuntu 14.04 64-bit
  • Apache 2.4
  • PHP 5.5
  • MySQL 5.5
  • XDebug
  • PHPUnit 4.8
  • Composer

We are using the base Ubuntu 14.04 box from Vagrant. If you don't already have it downloaded the Vagrantfile has been configured to do it for you. This only has to be done once for each account on your host computer.

The web root is located in the project directory at src/ and you can install your files there

And like any other vagrant file you have SSH access with

$ vagrant ssh
You can’t perform that action at this time.