PHP 7 and PHP 5.6 Vagrant Boxes now on Vagrant Cloud!

December 8th, 2015 @ 19:47 Programming

With the most recent announcement of PHP7, several individuals have asked me what the best way is to both try out the production release of PHP7 and how they can quickly explore my PHP and Nginx packages. Starting today I'm happy to announce that I am now providing Vagrant Cloud boxes for Virtual Box for both PHP7 and PHP 5.6. Both of these packages are built using my apt repository, and include the latest versions of Nginx and PHP. Both vagrant boxes are now available on Vagrant Cloud:


What's included with these boxes?

These boxes contains a bare PHP LEMP stack on Ubuntu 14.04 LTS x64, and includes the following pre-installed packages.

  • PHP 7.0.x/5.6.x (OpenSSL 1.0.2e)
  • Nginx 1.9.x (mainline)
  • MariaDB 10.1.x
  • GPG 2.1.9

The following additional tools are made available as well:

Getting started

To get started using these boxes, first install Virtualbox and Vagrant. Once both of these dependencies are installed, you can start using these boxes by running the following commands:


vagrant init charlesportwoodii/php7_trusty64 vagrant up --provider virtualbox vagrant ssh

PHP 5.6

vagrant init charlesportwoodii/php56_trusty64 vagrant up --provider virtualbox vagrant ssh

Note that these boxes will bind both a NAT adapter and a bridged adapter. If you have more than one external network interface, you'll be prompted to select the network itnerface you want your bridged adapter to be bound to.

Once your vagrant box is initialized, you can access your PHP environment by navigating to localhost:8080 in your web browser. By default, phpinfo() will be shown. The webroot for these boxes are in /var/www.

Have questions? Want to see packages for other pieces of software or new boxes? Interested in seeing more added to these boxes? Leave a comment below and let me know! I'd love to hear from you!