1. Home
  2. Websites and Domains
  3. (Plesk for Linux) Website Performance Optimization

(Plesk for Linux) Website Performance Optimization

(Plesk for Linux) Website Performance Optimization

You can enhance the performance of hosted websites by applying the optimal PHP, nginx, and database server settings. As a result, the websites’ pages will load faster.

We called this feature “Performance Booster”, and it is available only to the Plesk administrator.

Уou enable the optimal PHP and nginx settings individually for each website, while database server optimization is applied to all websites hosted on the server.

 

Enabling Performance Booster

Performance Booster is usually enabled by default. See Tools & Settings > Performance Booster (under “General Settings”). However, the feature is being rolled out gradually. There is a chance that it is not yet enabled in your Plesk. In this case, you need to enable it manually.

Warning: In Plesk on CloudLinux OS, Performance Booster is disabled for a reason, and we do not recommend enabling and using it. The changes Performance Booster would make are not compatible with the CloudLinux configuration (CageFS, LiteSpeed, and LiteSpeed PHP).

To enable Performance Booster:

  1. Open the panel.ini file for editing, which is located at /usr/local/psa/admin/conf/panel.ini.

    You can also edit the file in the Plesk interface using the Panel.ini Editor extension.

  2. Add the following lines to the panel.ini file, and then save it:

    [ext-performance-booster]
    enabled=true
    

 

PHP and nginx Optimization

To enhance a website’s performance enabling the optimal PHP and nginx settings:

  1. Go to Tools & Settings > Performance Booster (under “General Settings”).

    You can also access Performance Booster on the domain card (under “Dev Tools”). In this case, skip the next step and go to step three.

     

     

  2. Click the name of the website whose performance you want to enhance.

  3. Select the “Optimize the web server”, “Optimize PHP settings”, and “Switch to a modern PHP version (Plesk PHP-FPM 8.1)” checkboxes, and then click Apply.

    Note: Depending on the website settings, some checkboxes may be disabled. Learn more in the section below.

 

 

Once you have optimized PHP and nginx settings, you will see the icon under the corresponding column.

“Web Server” and “PHP” are shown as optimized when “Optimize the web server” and “Optimize PHP settings” are enabled, respectively. The “PHP” status does not depend on the “Switch to a modern PHP version (Plesk PHP-FPM 8.1)” option.

You can revert to the previous PHP and nginx settings at any time. To do so, clear the checkboxes mentioned in step three of the procedure above, and then click Apply.

Note: The websites’ optimization status on the “Performance Booster” screen may not always be up to date. To update the status of all websites, click Refresh domains status.

Note: If you enabled “Optimize the web server” and then manually updated /var/www/vhosts/system/example.com/conf/nginx.conf, the icon under the “Web Server” column will not disappear (as it should). Clicking the Refresh domain status button will not update the web server optimization status either. To update the status, clear the “Optimize the web server” checkbox manually. You can then turn on the option again if you want to optimize the web server.

 

Database Server Optimization

To enhance the performance of all hosted websites by enabling the optimal database server settings:

  1. Go to Tools & Settings > Performance Booster (under “General Settings”) > the “Serverwide” tab.
  2. Click “Show values to be optimized”, and then click Apply.

Once you have optimized the database server settings, you will see the icon under the corresponding column.

You can revert to the previous database server settings at any time. To do so, click “Show report”, and then click Revert.

 

Optimization Settings Prerequisites

The “Optimize the web server” option is available when all of the following conditions are met:

  • Hosting of the website is enabled.
  • nginx is installed and enabled on the server.

The “Optimize PHP settings” option is available when all of the following conditions are met:

  • Hosting of the website is enabled
  • “Hosting settings management” and “Common PHP settings management” are allowed in the hosting plan the website belongs to.
  • The panel.ini file has no predefined defaults in the [php] section. For more information, see Customizing PHP Parameters.

The “Switch to a modern PHP version (Plesk PHP-FPM 8.1)” option is available when all of the following conditions are met:

  • Hosting of the website is enabled.
  • PHP 8.1 is installed on the server.
  • PHP version selected for the website is earlier than 8.1.
  • When the “PHP version and handler management” permission is allowed in the hosting plan the website belongs to.
  • The “8.1.x FPM application” handler is enabled in Tools & Settings > PHP Settings (under “General Settings”).

How can we help?