Custom domain-level PHP settings are not applied

Created:

2016-11-16 12:55:45 UTC

Modified:

2017-08-08 13:32:59 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Custom domain-level PHP settings are not applied

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

PHP settings are not applied to /var/www/vhosts/system/example.com/etc/php.ini after changing them on a per-subscription/domain basis in Plesk.

Cause

This is Plesk internal issue #PPPM-1972 , which is planned to be fixed in future Plesk updates.

Workaround

  1. Back up Plesk database:

    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` psa > /root/psa.dump2.sql
  2. Get list of domains with PHP support and its status:

    mysql> select domains.id, domains.name, dom_param.dom_id, dom_param.val, WebServerSettingsParameters.* from domains join dom_param on (dom_param.dom_id = domains.id and dom_param.param = 'webServerSettingsId') join WebServerSettingsParameters on (WebServerSettingsParameters.webServerSettingsId = dom_param.val and WebServerSettingsParameters.name = 'nginxServePhp');
  3. Update the settings manually:

    mysql> update WebServerSettingsParameters set value='false' where name='nginxServePhp' and value='true';
Have more questions? Submit a request
Please sign in to leave a comment.