Monthly Archives: December 2018

Upgrade (cleanly) from PHP 7.0 to PHP 7.1

Invoice Ninja Ubuntu – PHP 7.0 upgrade guide.

PHP 7.0 is now EOL, so time to upgrade!

You could move straight up to the latest PHP which at the time of writing is 7.2, however for our application stack, we will only be moving to 7.1

The first thing that needs to be done is all your NGINX configs need to point to the new FPM process, simply sed the conf files replacing 7.0 with 7.1

Next install all the required PHP libs

Now lets start up the 7.1 service

Lets restart NGINX so that it picks up the new PHP 7.1 fpm process

And now lets get rid of the old PHP version

Bonus points –

Remember your PHP version is now referencing a new PHP.ini file… make sure you bring across all your required changes such as session handlers etc etc