Question
How to configure what PHP handler will be used for processing PHP scripts?
Answer
The following of PHP handlers can be configured:
- Apache module
- FastCGI
- CGI
- PHP-FPM
The choice should depend on security considerations, script execution speed, and memory consumption.
Log in to Plesk and select PHP handler 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, one or more PHP versions can be selected.