LAMP Setup based on CentOS 6.3 with Vagrant / Puppet
LAMP environment based on CentOS, specially prepared for working with SIFO PHP Framework projects.
- PHP (with some useful packages)
- BIND (resolving development domains .local, .vm and .lan)
- NTP (Network Time Protocol for system time synchronization)
Clone this repo
git clone --recursive https://bitbucket.org/obokaman/centos-6.3-lamp-with-vagrant-for-sifo.git vmSifo cd vmSifo vagrant up
The machine will be downloaded, all the packages installed and SIFO will be automatically cloned to
Step 1. Add the VM as DNS server In order to enable development DNS like
blahblah.vmyou should edit your network preferences and add as your DNS server the IP
192.168.33.10which is the IP of this box. If you don't like this IP you can change it in the file
Vagrantfile(If you prefer to add the addresses in your
/etc/hostsfile you can skip this step.)
Step 2. Open the browser Now, you can reach the webroot with
http://centos.localor SIFO homepage with
Some useful information:
- The Mysql password for root is empty.
- To login into the VM type
ssh email@example.com -p 2222(password 'vagrant')
- To halt the VM:
- To reload changes in the Vagrantfile:
- To reload changes in the puppet manifest:
If you want a graphical client to access Mysql from your machine, you can do it with a SSH tunnel:
SSH Host: localhost SSH user: vagrant SSH password: vagrant SSH Port: 2222 MysqlHost: 127.0.0.1 Username: root Password: #empty#
There is no password, do not type "empty" :)
You'll have two shared folders inside
shared folder on project root:
www: Your web DocumentRoot. You'll find
sifofolder inside too.
logs: Logs from Apache and MySQL will be stored here.
This two folders will be mapped on root (
/) folder on your guest Virtual Machine with full permissions (777).