Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1366541 - RPM: RHEL6: httpd service is not starting, LD_LIBRARY_PATH needs to be set
RPM: RHEL6: httpd service is not starting, LD_LIBRARY_PATH needs to be set
Status: CLOSED NOTABUG
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: httpd (Show other bugs)
2.1.1
Unspecified Linux
urgent Severity urgent
: CR01
: 2.1.1
Assigned To: Coty Sutherland
Jan Onderka
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-12 05:34 EDT by fgoldefu
Modified: 2017-01-31 06:37 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-30 09:58:35 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1649 normal SHIPPED_LIVE Important: Red Hat JBoss Web Server 2.1.1 security update on RHEL 6 2016-08-22 18:07:30 EDT

  None (edit)
Description fgoldefu 2016-08-12 05:34:22 EDT
Description of problem:
The httpd did not start with default configuration. The LD_LIBRARY PATH have to be set i.e. in /etc/init.d/httpd
export LD_LIBRARY_PATH=/opt/rh/jbcs-httpd24/root/usr/lib64/
or 
export LD_LIBRARY_PATH=/opt/rh/jbcs-httpd24/root/usr/lib/
has to be set.

After installation this error occurs:
# service httpd start
Starting httpd: httpd: Syntax error on line 217 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/ssl.conf: Cannot load /etc/httpd/modules/mod_ssl.so into server: /usr/lib/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by /etc/httpd/modules/mod_ssl.so)
[FAILED]


Version-Release number of selected component (if applicable):
RHEL6

How reproducible:
Everytime.

Steps to Reproduce:
1. Execute service httpd start.

Actual results:
Httpd server did not start.

Expected results:
Httpd server will start.
Comment 1 George Zaronikas 2016-08-12 08:58:06 EDT
LD_LIBRARY_PATH env added to init script
Comment 2 fgoldefu 2016-08-16 07:47:51 EDT
The RHEL7 x64 and RHEL6 x64 is fixed, but the patch did not work for RHEL6 i386,
because

export LD_LIBRARY_PATH=/opt/rh/jbcs-httpd24/root/usr/lib64

is not valid for 32bit RHEL.
Comment 5 errata-xmlrpc 2016-08-22 14:12:03 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-1649.html
Comment 11 Sebastian Stelmasik 2016-12-15 09:02:50 EST
LD_LIBRARY_PATH env should also be added to apachectl script - in the current version it has the same issue as the httpd service ini script before patching.
Including the same LD_LIBRARY_PATH export from the httpd init script into apachctl fixes the issue:

test -d /opt/rh/jbcs-httpd24/root/usr/lib64 &&
    export LD_LIBRARY_PATH=/opt/rh/jbcs-httpd24/root/usr/lib64 ||
    export LD_LIBRARY_PATH=/opt/rh/jbcs-httpd24/root/usr/lib



Version-Release number of selected component (if applicable):
RHEL6

How reproducible:
Everytime.

Steps to Reproduce:
1. Execute: apachectl -t

Actual results:
apachectl will not check httpd configuration when mod_ssl is enabled - it shows the following error:

httpd: Syntax error on line 226 of /etc/httpd/conf/httpd.conf: Syntax error on line 12 of /etc/httpd/conf.d/ssl.conf: Cannot load /etc/httpd/modules/mod_ssl.so into server: /usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by /etc/httpd/modules/mod_ssl.so)

Expected results:
apachectl will check httpd configuration and show results

Note You need to log in before you can comment on or make changes to this bug.