- Plesk 12.5 for Linux
- Plesk Onyx for Linux
- Plesk 11.x for Linux
- Plesk 12.0 for Linux
How can I configure what php handler will be used for processing php scripts? Does Plesk support mod_php?
By the default Plesk uses Apache module for processing php scenarios (known as mod_php).
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 ( Hosting Parameters tab > Scripting > Run PHP as )
website settings ( Control Panel > Websites & Domains > select a domain > Hosting Settings > Run PHP as )
Note: According to Plesk Administrator's Guide PHP-FPM cannot be selected for all websites at once in service plan settings; use this handler only for individual websites.
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. For details, see Multiple PHP Versions .
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.
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.