Closed markjaquith closed 9 years ago
Nginx was recently significantly refactored. Please regenerate your archive!
Note that your config.yaml isn't compatible with the new version :( you'll need to recreate it manually.
Aha! I dragged an old config.yaml
onto puphpet.com. I noticed a few things didn't transfer, so I reconfigured them. But in the vhosts section, the location blocks didn't show up. There was no UI to add them. And that config.yaml
was the one it spit out AFTER.
This is far from ideal. It happily imported the config.yaml
I gave it, and then it gave me back a broken config. The user should be warned about this. #1444
Can you paste your original config.yaml?
FYI, there's some weird stuff in there from before you added VMware Fusion support (I added support in my Vagrantfile at one time).
---
vagrantfile-local:
vm:
box: ubuntu-precise1204-x32-vbox43
box_url: 'http://files.vagrantup.com/precise32.box'
hostname: null
network:
private_network: 192.168.82.126
forwarded_port: { }
provider:
virtualbox:
modifyvm:
natdnshostresolver1: on
memory: '2048'
setextradata:
VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root: 1
vmware_fusion:
vmx:
memsize: '2048'
override:
vm:
box: 'precise64_vmware_fusion_puphpet'
box_url: 'http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-fusion503.box'
provision:
puppet:
manifests_path: puphpet/puppet
manifest_file: manifest.pp
options:
- '--verbose'
- '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'
- '--parser future'
synced_folder:
NaMQjbLCHwj4:
id: vagrant-root
source: ./example.com
target: /var/www/example.com
nfs: 'true'
usable_port_range: 2200..2250
ssh:
host: null
port: null
private_key_path: null
username: vagrant
guest_port: null
keep_alive: true
forward_agent: false
forward_x11: false
shell: 'bash -l'
vagrant:
host: detect
server:
packages:
- memcached
- curl
- ack-grep
- vim
- sendmail
- redis-server
dot_files:
-
bash_aliases: null
_prevent_empty: ''
nginx:
install: '1'
vhosts:
6oGScH4x65VY:
server_name: example.com
server_aliases:
- www.example.com
www_root: /var/www/example.com
listen_port: '80'
index_files:
- index.html
- index.htm
- index.php
envvars:
- 'APP_ENV dev'
php:
install: '1'
version: '54'
composer: '1'
modules:
php:
- cli
- common
- curl
- fpm
- gd
- imagick
- intl
- mcrypt
- memcache
- xmlrpc
pear: { }
pecl:
- pecl_http
ini:
display_errors: On
error_reporting: '-1'
timezone: America/New_York
xdebug:
install: '1'
settings:
xdebug.default_enable: '1'
xdebug.remote_autostart: '0'
xdebug.remote_connect_back: '1'
xdebug.remote_enable: '1'
xdebug.remote_handler: dbgp
xdebug.remote_port: '9000'
xhprof:
install: '1'
mysql:
install: '1'
root_password: root
phpmyadmin: 0
adminer: 0
databases:
wbA4GzB6DnxE:
grant:
- ALL
name: gws
host: localhost
user: gws
password: gws
sql_file: ''
Nginx and PHP-FPM are both installed correctly. But the vhost file for Nginx lacks the block that processes PHP files. As such, Nginx just sends the PHP code as a download to the browser.
Here is the file it produces:
/etc/nginx/sites-available/fbsvugeljk8q.conf
And here is my config:
config.yaml