Apache fails to start during upgrade/installation: Invalid command 'php_value',

Started by Suhitha, Oct 23, 2025, 01:58 AM

Previous topic - Next topic

Suhitha

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


Applicable to:

  • Plesk Obsidian for Linux


Symptoms

  • Apache fails to start during Obsidian upgrade/installation. The error is logged in
/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 shows a similar error:

# 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

  • OS PHP is used with version 5.4:

# php -v
PHP 5.4

  • <IfModule mod_php5.c> tags in /etc/httpd/conf.d/php.conf are 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.

Cause

Product issue:

  • #PPP-45093 "On CentOS 7 servers, Apache no longer fails to start after installing PHP from OS vendor via Plesk Installer."

Fixed in:

  • Plesk Obsidian 19 November 2019 (Linux)


Resolution

Please consider updating your server:

  • How to install Plesk updates

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:

# vsed -i 's/php_value/#php_value/g' /etc/httpd/conf.d/php.conf

3.Restart Apache:

# systemctl restart httpd.service