[ClusterLabs] Apache doesn't start under corosync with systemd

Reynolds, John F - San Mateo, CA - Contractor John.F.Reynolds2 at usps.gov
Wed Oct 16 09:33:17 EDT 2019

><From: Ken Gaillot [mailto:kgaillot at redhat.com] 
>Sent: Monday, October 14, 2019 12:02 PM
>If you have SELinux enabled, check for denials. The cluster processes have a different SELinux context than systemd, so policies might not be set up correctly.
>Ken Gaillot <kgaillot at redhat.com>

Alas, SELinux is not in use.

I am thinking that the apache OCF module is not starting up apache with the modules that it needs.  

 Again, startup with 'systemctl start apache' brings up the http daemons, so we know that the Apache configuration is clean.  

But  if I enable trace and run the ocf script by hand:

export OCF_TRACE_RA=1
/usr/lib/ocf/resource.d/heartbeat/apache start ; echo $?

Part of the output is Apache syntax errors that aren't flagged in the regular startup:

+ 14:57:10: ocf_run:443: ocf_log err 'AH00526: Syntax error on line 22 of /etc/apache2/vhosts.d/aqvslookup.conf: Invalid command '\''Order'\'', perhaps misspelled or defined by a module not included in the server configuration '

The 'Allow' and ' AuthLDAPURL' commands are also flagged as invalid.

The /etc/sysconfig/apache2 module parameter includes the relevant modules:

APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_core authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl socache_shmcb userdir reqtimeout authn_core php5 rewrite ldap authnz_ldap status access_compat"

Why are they invoked properly from systemctl but not from ocf?

John Reynolds 

More information about the Users mailing list