Ubuntu

Install PHP 7 on Ubuntu 14.04 with Gearman support

PHP 7 has been out long enough now that it has seen a couple of patch releases, which is about the time I will start evaluating an upgrade. PHP 7 can have some significant performance benefits from previous versions, so I was eager to give it a try. With the…

Bash completion for Consul nodes on Ubuntu

After making the jump to Ubuntu as my preferred distribution, I've admittedly become addicted to bash completions (aka autocomplete, tab completion, typeahead). Bash completions provide immediate hints for common commands, and even the options associated with them. For example, a quick \t\t (double-tap of the tab key) after the…

Multiple SSL domains on AWS ELB with Nginx

Is it possible to serve multiple domains (each with a unique SSL certificate) via HTTPS behind a single load balancer on AWS? Yes you can; with TCP and Proxy Protocol. Proxy Protocol allows you to safely and transparently forward TCP (layer 4) requests while attaching upstream client address information. More…

PHP 5.6 on Ubuntu 14.04 with PPA

PHP 5.6 has been in the wild for about a month now. As of October, the major version has received its first patch release 5.6.1 to address several bugs detailed here in the changelog. Install latest PHP 5.6 on Ubuntu 14.04 sudo add-apt-repository -y ppa:…

First look: Ubuntu Server 14.04 LTS

I'm always excited to kick the tires of a new supported release (LTS) of Ubuntu. In most cases I will be using the LTS image for 2-3 years to come, possibly longer. Stateless machines (application server front-ends, in my case) tend to make the upgrade cut pretty quickly. Meanwhile database…

PHP one-line optimizations with Apache on Ubuntu

There are a couple changes I immediately make to the default php.ini configuration when setting up an application server. Before making any modifications, we should backup the package maintainer's version of the configuration file. sudo cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.orig Increase upload…