Introduction
PHP is one of the most widely used scripting languages for web development, powering platforms such as WordPress, Joomla, Drupal, Laravel, and many others. Managing PHP settings in Plesk allows you to control important aspects of how your website runs, including:
- PHP version
- Execution mode (PHP-FPM, FastCGI, CGI)
- Performance settings
- Custom php.ini directives
- Memory limits, upload limits, timeouts
- Enabled or disabled extensions
Plesk offers an intuitive interface that allows you to adjust PHP settings per domain or globally (depending on your configuration), giving you full control over your website’s behavior and compatibility.
In this tutorial, we will guide you through the process of managing PHP settings in Plesk.
Getting Started
First and foremost, please ensure you are logged in to your Plesk control panel. To do that, please enter your IP address, hostname, or domain name inside your web browser’s search bar and add “:8443” at the end. It should look something like: “https://yourdomain.com:8443”. By doing so, you will be prompted by a login form that requests your username and password.

After logging in with your username and password, Plesk will automatically display the “Websites & Domains” page, which will serve as the index page from where you can manage everything related to your websites and domains on Plesk.
Accessing PHP Settings for a Domain
To manage PHP settings for a specific website, please expand the domain tools by pressing the down-pointing arrow located at the far left side corresponding to the domain name you want to modify.

Performing this action will expand a wide variety of tools. Under the “Dev Tools” you will see the “PHP” option.

Please click on it to open all PHP-related configuration options for that domain.
Choosing a PHP Version
Upon clicking on the “PHP” option underneath the “Dev Tools”, you will be redirected to a page where you can begin managing your PHP-related configurations.
Plesk usually supports multiple PHP versions to accommodate the needs of any type of app or any developer. To select the desired version, look for the PHP support or PHP version dropdown menu and choose the version required by your website (e.g., PHP 8.2, 8.1, 7.4).

To save the changes, please click the “OK” or “Apply” buttons, located at the bottom of the page.
Recommendation: Always use the latest stable version supported by your application for better security and performance.
Selecting a PHP Handler Type
In Pleks, you can choose different types of PHP handlers that each provide benefits and downsides for your PHP performance.
- FastCGI - FastCGI is an older but reliable PHP handler in which multiple PHP worker processes run in the background and serve requests quickly without spawning a new PHP process each time. We recommend using this for small to medium-sized sites with moderate traffic.
- PHP-FPM - PHP-FPM is a modern, high-performance PHP handler. It manages PHP worker processes more intelligently and efficiently than FastCGI. We recommend using this handler for most websites with heavy traffic that require high speed. It delivers the highest possible performance and concurrency.
- Dedicated PHP-FPM - This is the same as PHP-FPM, but each subscription/domain has its own dedicated PHP-FPM pool, isolated from all others. Similar to the above, you should use this for heavy websites (e-commerce, for example).
To change the handler, use the “run PHP as” drop-down menu and select the handler you want to use.

Different handlers can affect performance and compatibility, depending on your hosting environment.
Configuring Common PHP Options
In addition to the PHP version and the PHP handlers, Plesk also allows you to configure vital PHP settings, such as:
- memory_limit - This PHP setting defines the amount of memory a script can use.
- upload_max_filesize - This PHP setting defines the maximum allowed upload size.
- post_max_size - This PHP setting defines the maximum POST data size.
- max_execution_time - This PHP setting defines the maximum script execution time.
- max_input_vars - This PHP setting defines the number of input variables allowed.
- display_errors - This PHP setting controls error visibility.
You can modify the above on the same page, the PHP version and PHP handlers, by scrolling a bit down the page under the “Performance and security settings” category.

To change any setting, please locate its corresponding text field and enter the new value you would like it to hold.
Adding Custom PHP Directives
If you need more advanced settings, Plesk allows you to add custom php.ini rules. To do so, please scroll to the “Additional directives” content box near the bottom of the page and type in the custom directive you want to add via the PHP.INI file. For example:
- session.save_path = "/var/www/vhosts/example.com/session"
- date.timezone = "Europe/Sofia"
- upload_tmp_dir = "/tmp/uploads"

These directives override default server settings for your specific domain. Finally, to save these settings, please press either the “Apply” button at the bottom of the page to apply them and reload the page itself so you can double-check the values again, or please click on the “OK” button, which will save the setting and redirect you back to the “Tools & Settings” page
Managing PHP Extensions
Depending on your Plesk access, you may be able to enable or disable extensions such as:
- mysqli
- pdo_mysql
- imagick
- ionCube Loader
- memcached
- redis
In order to do that, please navigate to the “Tools & Settings” page.

After doing the above, please locate the “PHP Settings” option under the “General Settings” category.

Performing the action above will take you to a page where you will see all the installed PHP versions on your Plesk server. To install extensions for the version you want, please click on it.

Doing the above will redirect you to the extensions page, where you can use sliders to enable/disable the ones you need.
Make sure only necessary extensions are enabled to keep PHP lightweight and secure.
Conclusion
As you can see, Plesk makes it very easy to manage PHP settings for each domain or globally across your server. Whether you need to change your PHP version, adjust performance limits, enable extensions, or configure custom directives, the PHP Settings tool provides everything you need in a clean and intuitive interface.
We hope this tutorial was helpful, and we kindly encourage you to review your PHP settings whenever you install new applications, change hosting requirements, or troubleshoot performance issues.