All sites are down in Plesk: Syntax error on line 31 of /etc/httpd/conf.d/php.conf: Invalid command 'php_value'

Follow

Comments

3 comments

  • Avatar
    Ehud Ziegelman (Edited )

    Hi Yulia Plokhotnikova,

    Thanks a lot! As usual.

     

    It seems it's better to place the directive in PHP settings additional directives.

    https://support.plesk.com/hc/en-us/articles/213409529-Website-hosted-in-Plesk-is-unavailable-Invalid-command-php-flag-or-php-value-

     

    This seems to be done like that:

    post_max_size = 21M
    memory_limit = 512M
    upload_max_filesize = 3M
    ignore_user_abort = on
    user_agent = "PHP"

     

    0
    Comment actions Permalink
  • Avatar
    Yulia Plokhotnikova

    Hi @Ehud Ziegelman,

    PHP settings additional directives option is not an option if the limits are specified in the global /etc/httpd/conf.d/php.conf configuration file as this file is not manageable in Plesk ui. So this article applies to situations when the issue is on the /etc/httpd/conf.d/php.conf side.

    0
    Comment actions Permalink
  • Avatar
    Luis Miranda

    Thank you very much for providing this solution. I only started working with Linux last year. My VPS wasn't working because of this error. I was discouraged thinking I wouldn't be able to fix it on my own. I did thanks to your post.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request