Bug #8976
closedhttpd on RHEL7 (RHEL repo) incompatible with mod_fastcgi (ceph repo)
100%
Description
On a RHEL7 system
yum install httpd mod_fastcgi
systemctl start httpd
Apache fails to start with the folowing errors in /var/log/messages
systemd: Starting The Apache HTTP Server...
httpd: httpd: Syntax error on line 354 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/fastcgi.conf: Cannot load modules/mod_fastcgi.so into server: /etc/httpd/modules/mod_fastcgi.so: undefined symbol: unixd_config
systemd: httpd.service: main process exited, code=exited, status=1/FAILURE
systemd: Failed to start The Apache HTTP Server.
rpm -q httpd
httpd-2.4.6-18.el7_0.x86_64
rpm -q mod_fastcgi
mod_fastcgi-2.4.7-1.ceph.el7.x86_64
httpd package provided in the rhel-x86_64-server-7 RHN channel.
mod_fascgi provided in the ceph.repo shipped with ICE 1.2
The httpd rpm shipped with the ICE repo is:
httpd-2.2.22-1.ceph.el7.src.rpm
So yum picks the newer one, from RHN.
As a temporary workaround, I subscribed the system to the rhel-x86_64-server-optional-7 RHN channel to satisfy a dependency (apr-util-ldap) for the ceph httpd pkg.
Then I run:
yum install apr-util-ldap
Then installed mode_fastcgi disabling RHN to force it to use the ceph repo:
yum install mod_fastcgi --noplugins
This installs:
httpd-2.2.22-1.ceph.el7.x86_64.rpm
httpd-tools-2.2.22-1.ceph.el7.x86_64.rpm
mod_fastcgi-2.4.7-1.ceph.el7.x86_64.rpm
systemctl start httpd now works.
There's an error message but apache seems to work in spite of it:
systemd1: PID file /var/run/httpd/httpd.pid not readable (yet?) after start.
Updated by Marcelo Giles over 9 years ago
Also, when trying to enable the httpd ceph pkg with systemctl:
systemctl enable httpd
httpd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig httpd on
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
...
Updated by Sage Weil over 9 years ago
- Project changed from Ceph to devops
- Priority changed from Normal to Urgent
Updated by Sandon Van Ness over 9 years ago
- Status changed from New to Fix Under Review
- % Done changed from 0 to 100
We have a new version available out at:
http://gitbuilder.ceph.com/apache2-rpm-rhel7-x86_64-basic/ref/master/
Along with fastcgi at:
http://gitbuilder.ceph.com/mod_fastcgi-rpm-rhel7-x86_64-basic/ref/master/
These repos should contain newer versions of apache (2.4 based) which should have these issues fixed. Please let me know if you are still having issues with these packages.
Updated by Sandon Van Ness over 9 years ago
- Status changed from 4 to Resolved
Closing as Tamil tested and said it was good.