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. The benfits of this setup include the ability 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).
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.
We also 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.