This is a set of configs and scripts to get a development environment for webapps online asap. It uses Vagrant to run a virtual machine in Virtual Box and Puppet provisioning to configure the box so that it runs... -wait for it- ... out of the box! It's all developped and tested on a Mac.
- Vagrant
- Vagrant depends on Oracle's Virtual Box
- apache2
- php5
- php5-cli
- php5-mysql
- php5-dev
- php5-gd
- mysql-server
- curl
- vim
- git-core
- added LC_ALL=en.US-UTF8 to root & vragant .bash_profile to suppress mac terminal errors
- mod rewrite enabled
- webroot: /vagrant/httpdocs
- apache2 runs as vagrant:vagrant (so access to shared folder is as expected)
- root password set
- default user: vagrant/vagrant
- Make sure you've got Vagrant & Virtual Box installed
- git clone git://github.com/mcbrwr/my-vagrant-puppet-lamp.git mybox
- Testing install: point your browser to http://localhost:8000
- make a subdir in mybox/sites/ (mkdir mybox/sites/mysite)
- copy your site to the dir you created
- point the httpdocs link to your site (rm mybox/httpdocs && ln -s mybox/sites/mysite mybox/httpdocs)
- do your database stuff if needed..
- check your site at http://localhost:8000
If you need access to the shell of the box do this: vagrant ssh. You're then logged in to the box as user vagrant.