PHP settings mismatch at domain, service plan and server level: PHP: Error parsing php.ini

Created:

2017-01-13 17:37:44 UTC

Modified:

2017-08-08 13:41:08 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP settings mismatch at domain, service plan and server level: PHP: Error parsing php.ini

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

File /var/www/vhosts/system/example.com/etc/php.ini is not updating while changing PHP settings at Domains > example.com > PHP settings causing mismatches between the PHP settings set at domain, service plan and server level.

For example, PHP 5.2 is used for the domain.

The following error can be found in /var/log/plesk/panel.log:

stderr: PHP: Error parsing /opt/plesk/php/5.2/etc/php.ini on line 354

The following value is set to error_reporting  parameter:

error_reporting = E_ALL ~E_NOTICE 

Cause

PHP settings on domain-level php.ini are not updated due to incorrect syntax

Resolution

1. Make a backup of the initial file.

# cp /opt/plesk/php/5.2/etc/php.ini /opt/plesk/php/5.2/etc/php.ini.bkp

2. Correct the parameter value. The options are the following:

error_reporting = E_ALL

error_reporting = E_ALL & ~E_NOTICE

error_reporting = E_ALL & ~E_NOTICE | E_STRICT

E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR

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