Cobra Forum

Plesk Panel => Webserver => Topic started by: mahesh on Jan 16, 2025, 07:29 AM

Title: Apache fails to start during upgrade/installation: Invalid command 'php_value',
Post by: mahesh on Jan 16, 2025, 07:29 AM
Question
Apache fails to start during upgrade/installation: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
Symptoms
/var/log/plesk/install/autoinstaller3.log:

Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

#httpd -t
httpd[13923]: AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
httpd[13923]: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
#php -v
PHP 5.4

php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"

Cause
Product issue:

Fixed in:
Resolution
Please consider updating your server:
Workaround
If update is not possible for some reason you may try the following

workaround
1.Connect to the server via SSH.

2.As a workaround comment out with "#" the php_value directives:

#sed -i 's/php_value/#php_value/g' /etc/httpd/conf.d/php.conf
3.Restart Apache:

#systemctl restart httpd.service