Base LAMP (PHP) stack with vagrant that includes remote debugging, profiling with xhprof and other common PHP QA tools.
- Apache
- mod_rewrite
- mod_php
- Main virtualhost set up
- Document root /vagrant/www/ (synched VM folder)
- Name lampdev
- port 80
- xhprof virtualhost
- Document root /var/xhprof/
- Name xhprof
- port 8000
- MySQL
- PHP
- APC op-code cache
- PEAR
- PHP QA tools (phpunit, phpdoc, code sniffer etc.)
- XDebug - setup for remote debugging
- xhprof - PHP profiler, auto enabled for all PHP files served from /vagrant/www/
- Basic utilities
- curl
- vim
- Networking
- VM Port 80 (http) traffic forwarded to port 8888 on host - point your browser at localhost:8888
- VM Port 22 (ssh) traffic forwarded to port 2222 on host - ssh to localhost:2222
- VM Port 22 (ssh) traffic forwarded to port 9000 on host - ssh to localhost:9001
- VM Port 22 (ssh) traffic forwarded to port 8000 on host - ssh to localhost:8000
Pre-requisites:
1. Install Virtualbox
2. Install vagrant
You can use an alternative base box if you wish otherwise it will default to Ubuntu precise64
Then ...
# Clone the Vagrant LAMP stack configuration
git clone --recursive https://github.com/pipe-devnull/vagrant-dev-lamp.git
# enter the cloned directory
cd vagrant-dev-lamp
# Build the VM using vagrant
vagrant up