- Plesk 12.5 for Linux
- Plesk Onyx for Linux
- Plesk 11.x for Linux
- Plesk 12.0 for Linux
How to configure what PHP handler will be used for processing PHP scripts?
The following of PHP handlers can be configured to use:
- ISAPI (Windows)
- Apache module (Linux)
- PHP-FPM (Linux)
Handler choosing depends on security considerations, script execution speed, and memory consumption. An additional information about PHP handler features can be found in Plesk Administrator Guide
PHP handler can be selected for a service plan or a website correspondingly in:
service plan settings at Service Plans > Example plan > PHP Settings > run PHP as
website settings at Hosting Panel > Websites & Domains > example.com > Hosting Settings > Run PHP as
Note: Switching PHP from Apache module to FastCGI application may impair the functionality of existing PHP scripts. Switching to PHP-FPM by selecting Process PHP by nginx in the website’s web server settings may do the same.
Plesk supports different versions of PHP. For each available handler, and one or more PHP versions can be selected.
The list of PHP handlers available in the Plesk UI depends on the operating system and the web server that is processing PHP files. One of the handlers, PHP-FPM, additionally needs to be installed with the Parallels Installer.
Additionally, it is possible to switch off the Apache web server modules that are not critical to hosting services in Tools & Settings > Apache Web Server . This will allow to reduce server resources consumption (for example, get the smaller RAM footprint that is critical to VPS) and, as a result, provide for more hosting customers on a server.
Note: that some modules are interdependent and can be switched off (on) only when the modules they depend on are off (on). For example, the cache module depends on
modules. This means that it is impossible to switch off the cache until its three dependent modules are off.