PHP and Web-server Settings
Plesk provides full support for the PHP scripting language, including support for multiple PHP versions and handler types out of the box. This topic explains how Plesk customers can manage PHP settings for their domains and subdomains from the Customer Panel.
PHP management on the domain level has three aspects:
- Choosing the PHP version.
- Choosing the PHP handler type.
- Configuring additional PHP settings.
You may only be able to manage some of the settings described below, or none at all, depending on your subscription settings. If you need to manage PHP settings that are unavailable to you, contact your hosting provider.
Choosing the PHP version
Plesk supports multiple PHP versions out of the box. To choose the PHP version for your domain or subdomain, go to Websites & Domains > PHP settings and select the desired PHP version from the menu:
If the desired PHP version is missing from the menu, contact your hosting provider.
Note that different PHP versions are not 100% compatible. A website written in PHP 5.3 may not function correctly if you configure PHP version 5.4 for the domain. If you are not sure what PHP version to choose, use the default setting or the latest version available. If your website is not displaying correctly, switch to a different PHP version.
Choosing the handler type
Plesk supports a number of different PHP handlers out of the box. To choose the PHP handler type for your domain or subdomain, go to Websites & Domains > PHP settings and select the desired PHP handler type from the menu:
If you are not sure what PHP handler type to choose, read about the different PHP handler types here.
Configuring additional settings
In addition to the PHP version and handler type, there are a number of PHP settings you can manage at Websites & Domains > PHP settings. These settings are mostly performance and security-related, but some of them may affect the operation of websites. Click the icon next to an option to learn more about it.
If your domain uses one of the "FPM application" PHP handlers, you can configure additional PHP-FPM settings. They can be used to fine-tune PHP behavior to optimize your website's performance.
The default values of these settings should be optimal for most websites. Keep in mind that changing these settings may impact the performance of your website or even prevent it from displaying correctly. Unless you are sure what changes you need to make, it is recommended to keep the default values for all additional settings. If you make changes to the PHP settings and your website becomes slow or stops loading, return all PHP settings to their default values.
Enabling PHP Acceleration
If your hosting provider allows it, you may be able to switch on PHP acceleration, also known as opcode cache module, for your website. If your website is written in PHP, enabling the opcode cache module can speed it up by a factor of two or more. To switch on PHP acceleration, go to Websites & Domains > PHP Settings and set the value of
Viewing the PHP settings
To view the PHP settings currently configured for the domain, including those configured on the server level, click View the phpinfo() page.
Inheriting PHP settings
Domains belonging to a subscription inherit the PHP settings defined on the subscription level. Subdomains inherit the PHP settings defined on the level of their parent domain. If you have the corresponding permissions on your subscription, you can change the PHP settings for every domain and subdomain independently of each other.
Was this answer helpful?
After a website has been created, it does not become available on the Internet right away. After...
There are three general ways to create a website: Employ a web design studio to create a site...
Content Management Systems (or CMS) are third-party applications that provide a graphical user...
To review or change the permissions set for files and directories on Linux systems: Go to...
Watch the video tutorial To upload a website from your computer to the Plesk server by using...