How to Install PHP-FPM on Existing ServersAugust 23, 2016

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.

Cloudways Login Page

Step 2: Go to Server Management

Click on “Servers” on the top menu bar and then select your target server from the list.

Server Management

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.

PHP FPM Settings

Track the installation progress from this screen. It will be completed in a few minutes.

PHP-FPM Installaction

 

Important Notes:

  • 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.

8 Responses

  1. Lawrence Norton says:

    This option is not on my packages tab of server configuration. Poor write up.

  2. Jaspal says:

    Hi .. will WordPress applications work on PHP-FPM?

  3. Sukarto says:

    I read this warning:
    “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.”

    How to check application compatibilities?

    • Cloudways says:

      You can clone the server and the new server (with all the apps the source server had), will be deployed with php-fpm. You can check if all works in the cloned server, and if so, upgrade to fpm on the source server.

      Cloudways Team

  4. Morten says:

    It it compatible with PrestaShop 1.6 (standard configuration)?

    • Cloudways says:

      It should be, but as explained, check first site functionality on a cloned application / server before making the change in your live site.

      Cloudways Team

Leave a Reply

Still need help? Our support team is waiting to help you. Ask them now