How to set option "Process PHP by nginx" for all domains

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 13:05:32 UTC

Modified:

2016-12-21 19:56:08 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to set option "Process PHP by nginx" for all domains

Symptoms

How to set option "Process PHP by nginx" option ( Websites & Domains > Web Server Settings ) for all domains?

Cause

Plesk Panell 11.5 does not have such option.

A feature request to add an ability to set option "Process PHP by nginx" for all domains was submitted, the ID is 1701002 .

Resolution

As a workaround use the following command to set option "Process PHP by nginx" for all domains:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -N -e" select name from domains;" | while read i; do /usr/local/psa/bin/subscription --update-web-server-settings $i -nginx-serve-php true; done

You can use following command to disable option "Process PHP by nginx" for all domains:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -N -e" select name from domains;" | while read i; do /usr/local/psa/bin/subscription --update-web-server-settings $i -nginx-serve-php false; done
Have more questions? Submit a request
Please sign in to leave a comment.