Skip to content

Base LAMP (PHP) stack with vagrant that includes remote debugging, profiling with xhprof and other common PHP QA tools.

Notifications You must be signed in to change notification settings

pipe-devnull/vagrant-dev-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-dev-lamp

Base LAMP (PHP) stack with vagrant that includes remote debugging, profiling with xhprof and other common PHP QA tools.

Spec

  • 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

Quick Guide

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

About

Base LAMP (PHP) stack with vagrant that includes remote debugging, profiling with xhprof and other common PHP QA tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published