Unable to change hosting settings for domain: phpinimng failed: Cannot parse php.ini

Refers to:

  • Plesk for Linux

Created:

2016-11-16 12:50:44 UTC

Modified:

2016-12-21 19:21:36 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to change hosting settings for domain: phpinimng failed: Cannot parse php.ini

Symptoms

  • Unable to change hosting settings for domain, following error occurs:

    phpinimng failed: Cannot parse php.ini: (<class 'php_ini.PhpIniSyntaxError'>, PhpIniSyntaxError('[<stdin>:14] Invalid configuration line. Are there excessive leading spaces?',))
  • Websites running PHP-FPM are not working, the following error appears in its proxy_error_log :

    2016/05/22 23:17:39 [crit] 31436#0: *18 connect() to unix:///var/www/vhosts/system/example.com/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 10.10.10.10, server: example.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:///var/www/vhosts/system/example.com/php-fpm.sock:", host: "example.com"

Cause

Incorrect syntax of PHP Additional directives for any domain of the affected subscription.

Resolution

Check syntax of PHP Additional directives for all domains of the subscription ( Domains > example.com > Websites & Domains > PHP Settings ).

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