Skip to content

fza/vagrant-trusty64-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant PHP5/nginx web stack

Uses a lightweight trusty64/Parallels box. The box will be automatically downloaded from Vagrant Cloud. May work with other trusty64 base boxes, too (untested).

This box is meant to be used for pre-provisioning, as I like my VMs to be ready just when I need them. Waiting for the provisioning process to be done s***.

Spec

  • Uses shell provisioning only
  • No Chef, no Puppet
  • Uses RVM to set up Ruby (currently 2.1.3) as default
  • Installs PHP5.6, nginx, Mailcatcher, nullmailer, MariaDB, Redis, composer, Grunt.
  • Includes some dotfiles (mainly .bash-aliases)
  • SSL-ready

PHP modules

  • (defaults)
  • curl
  • gd
  • http
  • intl
  • ldap
  • mcrypt
  • mysqlnd
  • redis
  • sqlite
  • xdebug
  • xhprof
  • xmlrpc
  • xsl
  • (propro)
  • (raphf)

Notes

  • There is no MySQL root password.
  • MariaDB listens on 0.0.0.0:3306, so you may connect from your host.
  • Default webroot is /vagrant/web.
  • Default PHP rewrite script is app.php (Symfony style).
  • Look into files/augeas/config/php5.augconf if you want to edit the PHP settings.

SSL support

Create a self-signed certificate (Google is your friend). Name the files server.crt and server.key. Save them in the files/ssl directory. Run vagrant up, respectively vagrant provision. Done. You may want to use a Vagrant DNS plugin (like landrush) if you don't want to mess up your /etc/hosts.

Xdebug

Per default Xdebug is configured to connect back on port 9000.

Repackaging

Make sure you have the latest Vagrant release, then simply run vagrant package and re-import the resulting .box file with vagrant box add --name <box-name> <filename>.box.

Roadmap

  • Add simple configuration file using yaml or something
  • Make it possible to configure everything in the Vagrantfile
  • Add almost similar feature set as PuPHPet has, but drastically more stable.

Thanks

Thanks to Ondřej Surý and Chris Lea for their awesome PPAs!

Contribution

You're welcome! :)

About

Vagrant PHP5/nginx web stack

Resources

Stars

Watchers

Forks

Packages

No packages published