In this KB:
- What is PHP-FPM?
- Note about app compatibility
- How to install PHP-FPM
- Important notes
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 support article 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 in the Server Settings & Packages in the Packages section, which can be accessed in Server Management as shown in the below steps.
Note: Double check your application(s) compatibilities with FPM before activating it on your server, because once FPM is installed, it can not be reversed.
Step 1: Login to Cloudways Platform
Go to Cloudways and log in with your credentials.
Step 2: Go to Server Management
Click on “Servers” on the top menu bar and then select your target server from the list.
Step 3: Install PHP-FPM
After clicking on the target server, you will be in “Server Management” section. There, select “Settings & Packages” option. Then open the “Packages” tab and click on “Install” button for PHP-FPM.
Track the installation progress from this screen. It will be completed in a few minutes.
- Once again, 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 a .htaccess will not be used. You can use the PHP settings editor to change your PHP settings.