Vagrant / Puppet LAMP stack - Ubuntu 14.04, PHP 5.5, Apache and MySQL
You need to install the following to work with our setup:
Once the first two items are installed, then install vagrant-hostmanager
as follows:
vagrant plugin install vagrant-hostmanager
You should be able to access your setup now in a web browser: http://www.box.dev
You need to use an SSH connection.
With the information below you can connect to the MySQL server running on the virtual machine.
192.168.200.1
is your machine)If file exists database.sql.gz
in the dbdump directory, puppet will import the database during the first up
. In addition, if you delete the main database in the VM and then run vagrant provision
again, you will get a fresh DB installed easily.
Per default the variable YII_DEBUG
is set to true for this Apache setup, but will be false automatically on deploy.
The virtualhost is set on the htdocs
directory.
MailCatcher is installed and configured into the /etc/php5/apache2/php.ini
file.
If mailcatcher is stopped: all emails are lost.
If mailcatcher is started: all emails are catched.
If you want to start MailCatcher, simply run this command (with vagrant user) : mailcatcher --ip 0.0.0.0
Then go to : http://www.box.dev:1080
If you need to stop the mailcatcher daemon : Click on "Quit" on the top right corner of the MailCatcher Web UI.
Are installed: