eBook - PHP Deployment Explained

State-of-the-Art Deployment of PHP Applications


Coming in 2017

This eBook covers the deployment of PHP applications, be it onto a staging server, a production server, or a farm of production servers.

You will learn how set up a modern stack for operating PHP applications using nginx, PHP-FPM, and FastCGI. Among many other benefits over old-fashioned PHP stacks that use Apache HTTPD, for instance, this stack will allow you to use different configurations for and versions of PHP for different parts of your application.

We strongly believe that the separation of concerns principle should also be applied to the deployment process and divide this process into the distinct phases of packaging, publishing, distribution, and activation.

We start by creating a package when a new version of the application is to be released. This package is then published in a repository from where it is distributed onto the server(s). We also cover creating a shippable image for deployment using Docker as an alternative to "just" creating a package.

We show you how to migrate from one version of your application to the next when the structure of your data, for instance the schema of your relational database, changes.

Just because a new version of the application is installed on the server(s), though, should not mean that it is "live". Having a separate activation step opens interesting possibilities that we cover in detail.