Project

General

Profile

Actions

Bug #8976

closed

httpd on RHEL7 (RHEL repo) incompatible with mod_fastcgi (ceph repo)

Added by Marcelo Giles over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Sandon Van Ness
Category:
-
Target version:
-
% Done:

100%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.

Actions #1

Updated by Dan Mick over 9 years ago

  • Project changed from 17 to Ceph
Actions #2

Updated by Dan Mick over 9 years ago

  • Assignee set to Sandon Van Ness
Actions #3

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.
...

Actions #4

Updated by Sage Weil over 9 years ago

  • Project changed from Ceph to devops
  • Priority changed from Normal to Urgent
Actions #5

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.

Actions #6

Updated by Ian Colle over 9 years ago

  • Status changed from Fix Under Review to 4
Actions #7

Updated by Sandon Van Ness over 9 years ago

  • Status changed from 4 to Resolved

Closing as Tamil tested and said it was good.

Actions

Also available in: Atom PDF