A supersimple way to have a fully fladged webserver on your machine
- VirtualBox
- Vagrant. The vagrant-vbguest plugin is also nice to have
- Clone this repo into some directory and cd into it
- Edit the Vagrantfile. The only thing that might need changing is the shared source folder. Have it point to some folder on your host machine that contains an index.php file.
- vagrant up
- Visit http://localhost:8080 to access your home folder
- Visit http://localhost:8080/phpmyadmin for phpmyadmin
- SSH to localhost:2222 (or just do "vagrant ssh" if you have a decent host machine like Linux)
The MySQL server is accessible from your PHP code using both the unix file socket at /var/run/mysqld/mysqld.sock or using the port 3306
The default login details for the MySQL root user are:
Username: vagrant Password: vagrant
- Use "vagrant provision" to re-provision the VM anytime you make a change to the Puppet manifest or module files. Do not change anything manually in the VM!