Created
February 16, 2014 05:38
-
-
Save Jeemusu/9029780 to your computer and use it in GitHub Desktop.
I use this with Vagrant and Puppet to create a Debian Wheezy VM For PHP5.4 and Apache development. Includes Mongodb, beanstalkd, elsatic search, xdebug, xhprof. Also has an example for setting up SSL vhosts without the need to faff around self signing certificates.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
vagrantfile-local: | |
vm: | |
box: debian-wheezy72-x64-vbox43 | |
box_url: 'http://box.puphpet.com/debian-wheezy72-x64-vbox43.box' | |
hostname: null | |
network: | |
private_network: 192.168.56.101 | |
forwarded_port: | |
laSB20cs7VhK: | |
host: '5881' | |
guest: '22' | |
provider: | |
virtualbox: | |
modifyvm: | |
natdnshostresolver1: on | |
memory: '512' | |
setextradata: | |
VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root: 1 | |
provision: | |
puppet: | |
manifests_path: puphpet/puppet | |
manifest_file: manifest.pp | |
options: | |
- '--verbose' | |
- '--hiera_config /vagrant/puphpet/puppet/hiera.yaml' | |
- '--parser future' | |
synced_folder: | |
qMh3Dzdqr7zQ: | |
id: vagrant-root | |
source: ./ | |
target: /var/www | |
nfs: 'false' | |
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: | |
- vim | |
- git | |
- curl | |
dot_files: | |
- | |
bash_aliases: null | |
_prevent_empty: '' | |
mailcatcher: | |
install: 0 | |
settings: | |
smtp_ip: 0.0.0.0 | |
smtp_port: 1025 | |
http_ip: 0.0.0.0 | |
http_port: '1080' | |
path: /usr/local/bin | |
log: /var/log/mailcatcher/mailcatcher.log | |
apache: | |
modules: | |
- php | |
- rewrite | |
- ssl | |
vhosts: | |
jmauth_80: | |
servername: wheezy.yourdomain | |
serveraliases: | |
- www.wheezy.yourdomain | |
docroot: /var/www/yourdomain/public | |
port: '80' | |
setenv: | |
- 'APP_ENV dev' | |
override: | |
- All | |
jmauth_443: | |
servername: wheezy.yourdomain | |
serveraliases: | |
- www.wheezy.yourdomain | |
docroot: /var/www/yourdomain/public | |
port: '443' | |
ssl: true | |
setenv: | |
- 'APP_ENV dev' | |
override: | |
- All | |
phpmyadmin_80: | |
servername: wheezy.phpmyadmin | |
serveraliases: | |
- www.wheezy.phpmyadmin | |
docroot: /var/www/phpmyadmin | |
port: '80' | |
setenv: | |
- 'APP_ENV dev' | |
override: | |
- All | |
htdocs_80: | |
servername: wheezy.htdocs | |
serveraliases: | |
- www.wheezy.htdocs | |
docroot: /var/www | |
port: '80' | |
setenv: | |
- 'APP_ENV dev' | |
override: | |
- All | |
user: www-data | |
group: www-data | |
default_vhost: true | |
mpm_module: prefork | |
mod_pagespeed: 0 | |
mod_spdy: 0 | |
php: | |
version: '55' | |
composer: '1' | |
modules: | |
php: | |
- cli | |
- intl | |
- mcrypt | |
- curl | |
- memcached | |
- imagick | |
pear: { } | |
pecl: | |
- pecl_http | |
ini: | |
display_errors: On | |
error_reporting: '-1' | |
session.save_path: /var/lib/php/session | |
timezone: Asia/Tokyo | |
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' | |
drush: | |
install: 0 | |
settings: | |
drush.tag_branch: 6.x | |
mysql: | |
root_password: '2525' | |
phpmyadmin: '1' | |
adminer: 0 | |
databases: | |
njNZx7SUUtT3: | |
grant: | |
- ALL | |
name: default_db | |
host: localhost | |
user: username | |
password: '2525' | |
sql_file: '' | |
mongodb: | |
install: '1' | |
auth: 1 | |
port: '27017' | |
databases: { } | |
beanstalkd: | |
install: '1' | |
settings: | |
listenaddress: 0.0.0.0 | |
listenport: '13000' | |
maxjobsize: '65535' | |
maxconnections: '1024' | |
binlogdir: /var/lib/beanstalkd/binlog | |
binlogfsync: null | |
binlogsize: '10485760' | |
beanstalk_console: '1' | |
binlogdir: /var/lib/beanstalkd/binlog | |
rabbitmq: | |
install: 0 | |
port: '5672' | |
elastic_search: | |
install: '1' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this while searching for how to get SSL working in a local Vagrant dev environment. I tried what you did here, but it isn't working for me. Is there anything else that you did to get this working? How are you accessing it via browser? Are you accessing it via https://wheezy.yourdomain? Or wheezy.yourdomain:443?