Some applications do not yet support PHP 7.2. If you find yourself running PHP 7.2 for apps that don’t yet support it, you’ll probably want to downgrade to a supported version of PHP. This brief tutorial shows students and new users how to run Ubuntu 18.04 but still install PHP 7.1 to support your apps. This post should be quick and easy. The good thing about this is you can install PHP 7.1 along with PHP 7.2 and have multiple applications with different PHP needs. Some apps can be configured to support PHP 7.2 while others support PHP 7.1 For this post, we’re going to be supporting PHP 7.1 only on Ubuntu If you can’t get PHP 7.1-FPM packages on Ubuntu by default, you’ll want to add this third-party repository to your system. the repository contains multiple versions of PHP packages. After adding the repository, you can now go and install PHP 7.1-FPM and related modules. The main configuration file for PHP 7.1 with Nginx support can be found at The file above is where you configure PHP-related settings with Nginx support. Some cool settings are: After making those changes save the file and exit. Unlike Apache2, you can’t run commands to disable Nginx PHP support. you can only include the PHP configuration file with your Nginx settings. So, if you want to run PHP 7.1 with your Nginx configurations on Ubuntu, simply include the line as shown below: If you want to enable PHP 7.2 instead, change the line to the one below. Restart Nginx and PHP -FPM 7.1 for the changes to apply by running the commands below. That’s it! Now PHP 7.1 should be the default PHP processor for your app. You may also like the post below: