How to change PHP handler in all Service Plans

Created:

2017-03-01 10:52:48 UTC

Modified:

2017-08-08 13:43:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to change PHP handler in all Service Plans

Applicable to:

  • Plesk Onyx for Windows
  • Plesk 12.5 for Windows

Question

How to change default PHP handler in all Service Plans?

Answer

To update hosting plans, please do the following:

  1. Dump the names of service plans:
    C:> "%plesk_dir%"\\MySQL\\bin\\mysql.exe -uadmin -p -P8306 psa -Ne"select name from Templates where type='domain'" > C:\\plans.txt 
  2. Go to %plesk_cli% directory and run the script:
    C:> cd %plesk_cli% C:> for /f "tokens=*" %d in ('type C:\\plans.txt') do service_plan.exe -u "%d" -php_handler_id fastcgi-5.6

To update all resellers' hosting plans download the script from the attachment and execute it on the server.

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.