Skip to main content

Installing PHP5.6 on Ubuntu 14.04LTS

I recently had to setup PHP 5.6 explicitly for testing and verifying work on a client website. Given Ubuntu 14.04LTS natively supports PHP 5.5.9, and the defacto standard ondrej/ppa is now installing PHP7 it took me a bit to understand exactly how to get 5.6 so we could verify tests and all that goodness. In retrospect, it’s obvious, but this may hopefully save someone out there the hour of raised eyebrows.

Via Ansible:

 

Must have Vagrant plugins

Landrush

If you’re a full-stack developer or otherwise involved in multi-tiered application development, you’ll often find your applications littered with various subdomains. For example apikbmail, etc. These can be incredibly cumbersome to setup locally when developing, and Landrush is the answer.

Once installed, you’ll be able to configure countless subdomains with your Vagrantfile, and minimize the headache of getting to work!

Ansible

The ansible plugin allows you to run playbooks from Vagrant, completely optimizing your ability to deploy development machines with reusable playbooks and/or roles on your workstation.

You can find more information about the plugin at the official Hashicorp documentation.

Ansible PHP7 (Ubuntu)

You can download and use the role here: https://github.com/litwicki/ansible-php7

roles/php7/tasks/main.yml