Articles in this section

How to configure PHP handlers in Plesk for Linux?

kb: how-to Plesk for Linux ABT: Group B

Applicable to:

  • Plesk for Linux

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

Service plan settings at Hosting Panel > Service Plans > Example plan > PHP Settings > run PHP as 

Website settings

Website settings at Hosting Panel  > Domains > example.com  > Dashboard > PHP  > 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.

If nginx is selected, existing .htaccess rules for Apache should be converted to nginx syntax: How to keep .htaccess rules after switching PHP handler from Apache to nginx in Plesk?

Plesk supports different versions of PHP. For each available handler, one or more PHP versions can be selected. 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.