By default, CentOS 7 comes with support for PHP 5.4. Sadly that version has reached the end of its life in 2015and is no longer updated by the developers. If we want to stay up to date with the latest software, we may want to upgrade (if our applications are working with newer versions of PHP).
For CentOS users this either means to compile cutting edge versions from source and tweaking lots of scary system configurations – or dipping into the power of Software Collections. These are official pre-compiled packages by the software vendor, designed to run newer versions of software alongside those that are provided by default.
At the time of writing, PHP 7.2 is available but it’s not part of the software collections yet, so we’ll use PHP 7.1 with FPM support under Apache (as it’s the recommended way to do so).
Let’s begin!