Plesk

How to enable or disable PHP handlers in Plesk?

Question

How to enable/disable PHP handlers in Plesk?

Answer

  1. Log into Plesk.
  2. Go to Tools & Settings > PHP Settings.
  3. To enable: move the slider to the right in front of the required PHP handler:
    sliderright.png
    To disable: move the slider to the left in front of the required PHP handler:

    Note: in the case, the required PHP handler is missed, install it using the steps from this article.

Solution using the SSH access

  1. Log into the server via SSH.
  2. Execute the command below to list all installed PHP handlers:

    # plesk bin php_handler --list

    The result will be as on the screenshot below:
    Click on the screenshot below to expand
     

  3. To enable: using the id of the required PHP handler from the step №2 execute the command below:

    # plesk bin php_handler --enable -id plesk-php73-cgi

    To disable: using the id of the required PHP handler from the step №2 run the following command:

    # plesk bin php_handler --disable -id plesk-php73-cgi

    Note: in the case, the required PHP handler is missed, install it using the steps from this article.

Solution using the RDP access

  1. Log into the server via RDP.
  2. Start a command prompt as an Administrator.
  3. Execute the command below to list all installed PHP handlers:

    C:> plesk bin php_handler --list

    The result will be as on the screenshot below:
    Click on the screenshot below to expand
     

  4. To enable: using the id of the required PHP handler from the step №3 execute the command below:

    C:> plesk bin php_handler --enable -id fastcgi-7.0

    To disable: using the id of the required PHP handler from the step №3 run the following command:

    C:> plesk bin php_handler --disable -id fastcgi-7.0

    Note: in the case, the required PHP handler is missed, install it using the steps from this article.