Copy Vagrantfile and Berksfile into directory.
A Vagrant script designed for a basic LAMP setup.
Chef is used for provisioning and Berkshelf is used to manage cookbooks.
- VirtualBox
- Vagrant
- Berkshelf
gem install berkshelf
- vagrant-berkshelf
vagrant plugin install vagrant-berkshelf
- vagrant-hostmanager
vagrant plugin install vagrant-hostmanager
$ cd projectname$ curl -O https://raw.githubusercontent.com/edgetor/Vagrant-LAMP/master/\{Vagrantfile,Berksfile\}- Edit Vagrantfile
- Set Host-only network IP (ip_address)
- Set Project Name IP (project_name)
- Set Root Database password (database_password)
$ vagrant up
Host file modified to point project at http://projectname.local
- Ubuntu Precise base box (Should work with other operating systems with few or no changes)
- Apache 2.4
- MySQL
- PHP 5.5 (with apcu, mysql, curl, mcrypt, memcached, gd)
- phpMyAdmin
- memcached
- Postfix
- XDebug
- Grunt
- composer
- curl
- vim, git, screen, zsh
- phpunit
- Username: root
- Password: mysecretpassword
- Port: 3306
- Username: root
- Password: mysecretpassword
- Port: 5432
- Port: 11211