I used puphpet.com to quickly set up a Wheezy VM. The VM works great but I'd love the add another virtual host to Apache.
According to the puphpet documentation:
I have completely rewritten PuPHPet to take advantage of a built-in configuration tool for Puppet called Hiera. Simply look inside your downloaded folder and open puppet/hieradata/common.yaml. This is the magical file that controls everything!
However my download doesn't include the puppet/hieradata
folder nor the common.yaml
file.
I tried creating the above folder and files, but they aren't acknowledged when executing vagrant reload
.
I need to spend a day or two to go through and update my out-of-date documentation!
The yaml file is now in puphpet/config.yaml
Search for the vhost key and copy/paste any existing one and change the key.
Then run $ vagrant provision
and you'll be all set!
You can do this in a two diffrent ways:
Edit your puphpet/config.yaml and add another vhost.
puphpet/config.yaml:
asxnyytgdo1d: (remember to change this key)
servername: temp.krzysiek
docroot: /var/www/temp
port: '80'
custom_fragment: ''
directories:
6ecw5mx7fg1d: (change this aswell)
provider: directory
path: /var/www/temp
options:
- Indexes
- FollowSymlinks
- MultiViews
allow_override:
- All
require:
- 'all granted'
custom_fragment: ''
ssl_cert: ''
ssl_key: ''
ssl_chain: ''
ssl_certs_dir: ''
OR
Go to https://puphpet.com and Drang'n'Drop your puphpet/config.yaml file, add vhost then redownload.
THEN
run vagrant reload --provision
https://docs.vagrantup.com/v2/cli/reload.html You don't modify directly Vagrantfile but Vagrantfile reads puphpet/config.yaml.
Vagrantfile:
configValues = YAML.load_file("#{dir}/puphpet/config.yaml")
After you should see changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With