PHP-FPM is the modern PHP FastCGI process manager and is the newest alternative of mod_php. There are many advantages of PHP-FPM, such as faster speed and better performance due to low memory utilization. It runs as its own process and is not dependent on the web server, like mod_php. To compare the performance benchmarks between mod_PHP and PHP-FPM, visit our blog post here.
This guide will show you how to enable PHP-FPM on your existing servers at Cloudways.
PHP-FPM will be automatically installed in all new servers deployed from August 23, 2016, onwards as a part of the default installation.
For existing servers, FPM can be installed from the console from the Packages tab in the Server Settings & Packages section, which can be accessed from the Server Management area as shown in the steps below.
Double-check your application(s) compatibilities with FPM before activating it on your server, because once FPM is installed, it can not be reversed.
How to Install PHP-FPM on Existing Servers
Step 1: Go to Server Management
Log into the Cloudways Platform with your credentials. Click on Servers in the top menu bar. Then, click on your target server from the list.
Step 2: Install PHP-FPM
After clicking on the target server, you will be in the Server Management area. Click on the Settings & Packages section. Then, click on the Packages tab and click on the Install button next to PHP-FPM.
You can track the installation progress as seen below. It will be completed in a few minutes.
After PHP-FPM is installed, it cannot be uninstalled, and the action is non-reversible. Please double-check your application(s) compatibilities with FPM before activating it on your server.
Any PHP directives defined in .htaccess will not be used. You can use the PHP settings editor to change your PHP settings.
That’s it! We hope this article was helpful. If you need any help, then feel free to search your query on Cloudways Support Center or contact us via chat (Need a Hand > Send us a Message). Alternatively, you can also create a support ticket.