Although WordPress 5.0.1 support PHP 7.3-FPM, some themes, and plugins may not. so you probably should make sure your themes and installed plugins support the latest PHP version, or you may run into issues. If you have validated that all your plugins and themes are PHP 7.3-FPM compatible, continue below to learn how to upgrade your PHP-FPM versions to support the latest version of WordPress.If you haven’t installed WordPress, search our website to learn how to install it on Ubuntu.
Upgrade PHP 7.1-FPM to PHP 7.2-FPM with Nginx on Ubuntu
If you’re running PHP 7.1-FPM and Nginx on Ubuntu running WordPress, the steps below show you how to upgrade to PHP 7.2-FPM. First, run the commands below to install PHP 7.2-FPM packages On some Ubuntu systems, PHP 7.2-FPM may not be available in Ubuntu default repositories… To run PHP 7.2-FPM on Ubuntu 16.04 and previous, you may need to run the commands below: Then update and upgrade to PHP 7.2-FPM Next, run the commands below to install PHP 7.2-FPM and related modules. After installing PHP 7.2-FPM, run the commands below to open the PHP default configuration file for Nginx… The lines below are a good setting for most PHP-based CMS… Update the configuration file with these and save…. Every time you make changes to the PHP configuration file, you should also restart the Nginx web server and PHP script… To do so, run the commands below: After that, run the commands below to enable PHP 7.2 support for Nginx. Open the Nginx site configuration file and configure the PHP block to use PHP 7.2-FPM. Ubuntu default site configuration file can be found at Then edit the PHP block session: After that, restart the Nginx HTTP server to use PHP 7.2-FPM. Finally, run the commands below to remove all PHP 7.1-FPM packages. Doing that will prompt you to accept the changes to your system. then type Y to continue. When you’re done, PHP 7.2-FPM should be enabled and PHP 7.1-FPM completely removed from Ubuntu.
Upgrade PHP 7.2-FPM to PHP 7.3-FPM with Nginx on Ubuntu
Skip the above steps if you’re running PHP 7.2-FPM and you want to upgrade to PHP 7.3-FPM. First, run the commands below to install PHP 7.3-FPM packages On some Ubuntu systems, PHP 7.3-FPM may not be available in Ubuntu default repositories… To run PHP 7.3-FPM on Ubuntu, you may need to run the commands below: Then update and upgrade to PHP 7.3-FPM Next, run the commands below to install PHP 7.2-FPM and related modules. After installing PHP 7.3-FPM, run the commands below to open the PHP default configuration file for Nginx… The lines below are a good setting for most PHP-based CMS… Update the configuration file with these and save…. Every time you make changes to the PHP configuration file, you should also restart the Nginx web server… To do so, run the commands below: After that, run the commands below to enable PHP 7.3-FPM support for Nginx. Open the Nginx site configuration and configure the PHP block to use PHP 7.3-FPM. Ubuntu default site configuration file can be found at Then edit the PHP block session: After that, restart the Nginx HTTP server to use PHP 7.2-FPM. Finally, run the commands below to remove all PHP 7.2 packages. Doing that will prompt you to accept the changes to your system. then type Y to continue. When you’re done, PHP 7.3-FPM should be enabled and PHP 7.2-FPM completely removed from Ubuntu. That’s it! You may also like the post below: