Apache fails to start during Obsidian upgrade/installation. The error is logged in
Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
httpd -tshows a similar error:
# httpd -t
httpd: AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
httpd: Invalid command ‘php_value’, perhaps misspelled or defined by a module not included in the server configuration
OS PHP is used with version 5.4:
# php -v
<IfModule mod_php5.c>tags in
/etc/httpd/conf.d/php.confare removed after upgrade/installation leaving the following directives without enclosing tags:
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
Tools & Settings > Apache Web Server Settings > php5 is disabled.
#PPP-45093 “On CentOS 7 servers, Apache no longer fails to start after installing PHP from OS vendor via Plesk Installer.”
- Plesk Obsidian 19 November 2019 (Linux)
If update is not possible for some reason you may try the following
Connect to the server via SSH.
As a workaround comment out with “#” the
# sed -i ‘s/php_value/#php_value/g’ /etc/httpd/conf.d/php.conf
# systemctl restart httpd.service