- Plesk for Linux
Apache is not starting. Executing
apachectl configtest show the following error message:
CONFIG_TEXT: 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
suPHP module is installed.
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.
suPHP module in Plesk > Tools & Settings > Apache Web Server Settings
Log in to Plesk server using SSH.
Find strings with
php_valuein Apache config files and comment them:
# grep -ir 'php_value' /etc/httpd/ | cat
/etc/httpd/conf.d/php.conf:# php_value session.save_handler "files"
/etc/httpd/conf.d/php.conf:# php_value session.save_path "/var/lib/php/session"
Note: suPHP is not supported by Plesk