#PUPHPET VM
Ok - this seems like a pretty good setup so far. It properly handles permissions, and allows for extra vhosts. Samba is setup on this - \\UBUNTUOS in explorer to get access
- Save the config.yaml to local machine - then drag it onto the PUPHPET site https://puphpet.com/ and download the archive
- Put all the bash script APART FROM 'samba-start.sh' & 'add-vagrant-pw.sh' into the puphpet/files/exec_once folder.
- Put 'samba-start.sh' into the 'start_once' folder
- Put 'add-vagrant-pw.sh' into 'start-always'
- Make sure vagrant is up to date at https://www.vagrantup.com/downloads.html
- Make sure you default location for VirtualBoxes VM machines is set 1) your local machine and 2) a drive with enough space
- 'vagrant up' - you should see an elephant in 10minutes or so if all went well :)
- If you want solr simply modify the config yaml to "install: '1'" before the first time your 'up' the machine, or 'vagrant provision' if already running
- Add vm.dev to your hosts file on the host machine. Alternatively use IP addresses and change the port from 80 to 8080 in the yaml
{IP} - default vhost
{IP}/adminer - alt to phpmyadmin (find a good css file to run with it as it looks awful out the box)
{IP}:8080 - vhost called vagrant. This is the 'real' development vhost
{IP}:8025 - Mailhog - where all those emails will go from apps on the VM
{IP}:8984 - SOLR
SOLR: if you add solr after the first build my script to create the cores will not fire. NP - just vagrant ssh into the VM and run this command
/opt/solr/solr-5.4.1/bin/solr create -c new_core
Rename 'new_core' if that isn't to your taste ;)
##TODOs
- chown vagrant:www-data /var/www -R (before chown'ing the vhost folder)
- If you prefer to acccess the site via the IP then you have to use another port as PUPHPUT hard codes the default site to port 80. Ok, but a bit of a pain. Alternatively we could turn this of in the yaml file - 'default_vhost: false', and then maybe create a vhost using the same directories as the default vhost, but making this use 8080, allowing the development vhost to use port 80.