Symptoms
When follow the procedure to configure Offer Compatibility Checker, it leads to inabilily to start Apache on the UI node. Quote:
"On your branding site configure the offer compatibility checker: ... yum install php php-xmlrpc command and then execute the service httpd reload"
However, on attempt to restart/reload the daemon, after PHP is installed, it fails with the below output:
[root@ui ~]# service httpd reload
Redirecting to /bin/systemctl reload httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe"
or details.
in /var/log/messages:
May 25 16:01:19.934 httpd: AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
May 25 16:01:19.934 httpd: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
May 25 16:01:19.962 kill: kill: cannot find process ""
Cause
Using suggested commands, mod_php
is installed, which breaks the httpd
configuration. The httpd
daemon on UI nodes runs with worker MPM module which is not compatible with mod_php
. The incorrect instructions were recognized as a software/documentation issue APSA-19894.
Resolution
Please contact your Technical Account Manager to clarify the current status of the issue.
As a workaround, please follow the below steps:
In
/etc/httpd/conf.modules.d/00-mpm.conf
comment out the below lines:<IfVersion >= 2.4> LoadModule mpm_worker_module modules/mod_mpm_worker.so </IfVersion>
In the same file, uncomment the line:
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
- Save the file and restart Apache.