Apache fails to start during Obsidian upgrade/installation. The error is logged in
CONFIG_TEXT: 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:
CONFIG_TEXT: php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
Tools & Settings > Apache Web Server Settings > php5 is disabled.
This has been reported as bug ID #PPPM-11150 which will be fixed in future updates.
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