Apache is not starting: Invalid command 'php_value'

Refers to:

  • Plesk for Linux

Created:

2016-11-16 12:58:30 UTC

Modified:

2016-12-21 19:40:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Apache is not starting: Invalid command 'php_value'

Symptoms

Apache is not starting. Executing apachectl configtest show the following error message:

AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

Cause

suPHP is installed.

http://www.suphp.org/FAQ.html


Can I use the php_value directives in .htaccess files with suPHP?

suPHP does not support the php_value/php_admin_value directive known by mod_php to parse configuration options to scripts for certain virtual hosts or directories. However there is a PECL extension named htscanner that can be used with PHP CGI (called by suPHP) to parse such options being present in .htaccess files. Be sure to take a look at the README file provided with the htscanner distribution on how to make Apache ignore the php_value directives in .htaccess files instead of throwing an error.


Resolution

Either disable suPHP or find strings with php_value in Apache config files and comment them.

Note: suPHP is not supported by Plesk

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