LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2013, 03:29 PM   #1
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Rep: Reputation: 0
Updated HTTPD, missing shared objects


I'm moving a web server from RHEL 5 to RHEL 6 and have copied the httpd.conf file over, but when trying to start apache I get an error

Code:
Starting httpd: httpd: Syntax error on line 196 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_file_cache.so into server: /etc/httpd/modules/mod_file_cache.so: cannot open shared object file: No such file or directory
                                                           [FAILED]
So I edited out that line and the next two that look for
Code:
modules/mod_file_cache.so
modules/mod_mem_cache.so
And it throws another error looking for
Code:
modules/mod_authz_ldap.so
I don't know enought about apache to know whether or not these are all essential so I'd rather not go around commenting out to fix it. I've tried looking for the modules elsewhere but they aren't on the machine and yum install doesn't work either.
 
Old 08-07-2013, 05:55 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Most of these modules need to be compiled with Apache and those modules are probably installed by design, authz_ldap allows ldap authentication integration into Apache and the cache modules can dramatically increase page load times.


Now most of these can be done with yum but you are probably not using yum correctly.

Do the following and see what packages come back:

Code:
yum provides "*modules/mod_authz_ldap.so"
yum provides "*modules/mod_file_cache.so"
yum provides "*modules/mod_mem_cache.so"
This should come back with the actual package names.


Also, how did you install Apache on the new system? I believe some of these modules should come with the out of the box install of httpd from the red hat repo.


Example yum output:

Code:
# yum provides "*modules/mod_file_cache.so"
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
filelists.xml.gz                                                                                                            | 7.4 MB     00:00
httpd-2.2.3-22.el5.x86_64 : Apache HTTP Server
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_file_cache.so



httpd-2.2.3-45.el5.x86_64 : Apache HTTP Server
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_file_cache.so



httpd-2.2.3-22.el5.x86_64 : Apache HTTP Server
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_file_cache.so



# yum provides "*modules/mod_authz_ldap.so"
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
mod_authz_ldap-0.26-8.el5.x86_64 : LDAP authorization module for the Apache HTTP Server
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_authz_ldap.so



mod_authz_ldap-0.26-8.el5.x86_64 : LDAP authorization module for the Apache HTTP Server
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_authz_ldap.so



mod_authz_ldap-0.26-9.el5_5.1.x86_64 : LDAP authorization module for the Apache HTTP Server
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_authz_ldap.so
 
Old 08-08-2013, 10:06 AM   #3
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Kustom42 View Post
Most of these modules need to be compiled with Apache and those modules are probably installed by design, authz_ldap allows ldap authentication integration into Apache and the cache modules can dramatically increase page load times.


Now most of these can be done with yum but you are probably not using yum correctly.

Do the following and see what packages come back:

Code:
yum provides "*modules/mod_authz_ldap.so"
yum provides "*modules/mod_file_cache.so"
yum provides "*modules/mod_mem_cache.so"
mod_authz_ldap.so is installed, the other two are not
Code:
# yum provides "*modules/mod_authz_ldap.so"
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
realmlinux-base                                          | 3.6 kB     00:00     
realmlinux-extras                                        | 2.9 kB     00:00     
realmlinux-workstation6-x86_64                           | 1.0 kB     00:00     
rhel-x86_64-workstation-6                                | 1.5 kB     00:00     
rhel-x86_64-workstation-optional-6                       | 1.5 kB     00:00     
rhel-x86_64-workstation-supplementary-6                  | 1.5 kB     00:00     
realmlinux-extras/filelists_db                           |  586 B     00:00     
mod_authz_ldap-0.26-16.el6.x86_64 : LDAP authorization module for the Apache
                                  : HTTP Server
Repo        : rhel-x86_64-workstation-6
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_authz_ldap.so



mod_authz_ldap-0.26-15.el6.x86_64 : LDAP authorization module for the Apache
                                  : HTTP Server
Repo        : rhel-x86_64-workstation-6
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_authz_ldap.so



mod_authz_ldap-0.26-16.el6.x86_64 : LDAP authorization module for the Apache
                                  : HTTP Server
Repo        : installed
Matched from:
Filename    : /usr/lib64/httpd/modules/mod_authz_ldap.so
Code:
# yum provides "*modules/mod_file_cache.so"
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
No Matches found
Code:
# yum provides "*modules/mod_mem_cache.so"
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
No Matches found
This should come back with the actual package names.

Quote:
Also, how did you install Apache on the new system? I believe some of these modules should come with the out of the box install of httpd from the red hat repo.
It was kickstarted with a standard kickstart we use for most of our machines.



edit: I'm missing libphp5.so now too.

Last edited by cowmoo32; 08-08-2013 at 10:15 AM.
 
Old 08-08-2013, 10:44 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
I think your system is not registered with RHN.

You can NOT progress beyond here UNTIL this machine IS registered
contact red hat sales and add this machine on to your existing license
( if you have one)
 
Old 08-08-2013, 11:42 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by prayag_pjs View Post
I think your system is not registered with RHN.
You can NOT progress beyond here UNTIL this machine IS registered contact red hat sales and add this machine on to your existing license ( if you have one)
Did you read what the OP posted???
Quote:
Originally Posted by cowmoo32
This system is receiving updates from RHN Classic or RHN Satellite.
So if the system is receiving updates...it's obviously registered.

OP, see the last comment in this bug report on the RHEL site, here:
https://bugzilla.redhat.com/show_bug.cgi?id=899417

To quote it:
Quote:
Originally Posted by RHEL Bugzilla
RHEL6 distributions don't contain following httpd modules: mod_file_cache, mod_imagemap, mod_mem_cache. mod_file_cache and mod_mem_cache are removed as obsolete and mod_disk_cache can be used instead of them. mod_imagemap is removed as not being useful since around a decade ago when client-side HTML image maps were widely supported.
Please confirm this with RHEL support first, though. That MAY be a different issue, but it would seem to match your symptoms.

Since you're migrating, you can just install the mod_disk_cache module, and comment out the other two, now that you have the LDAP module installed. Installing the PHP module should be fairly straightfoward, since you're registered, and you can just use yum to install it, as you did the LDAP module.
 
Old 08-08-2013, 02:58 PM   #6
cowmoo32
Member
 
Registered: May 2007
Posts: 49

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Did you read what the OP posted???

So if the system is receiving updates...it's obviously registered.

OP, see the last comment in this bug report on the RHEL site, here:
https://bugzilla.redhat.com/show_bug.cgi?id=899417

To quote it:

Please confirm this with RHEL support first, though. That MAY be a different issue, but it would seem to match your symptoms.

Since you're migrating, you can just install the mod_disk_cache module, and comment out the other two, now that you have the LDAP module installed. Installing the PHP module should be fairly straightfoward, since you're registered, and you can just use yum to install it, as you did the LDAP module.
Ok so now all I'm missing is the php module and I can't yum install it. From what I've read it's generated when apache is built from source so it should have been installed during the OS install, correct?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ./configure problem for libsf library due to apparently missing libdb library. vectrum Linux - Software 6 08-05-2011 03:11 PM
ldd reports shared library missing, but library exists on disk athv_gr Linux - Newbie 7 05-13-2009 01:31 PM
library missing:No such file or directory error(all files and paths are set properly venky.kv Linux - Newbie 3 03-09-2009 11:49 AM
library files missing praveen_2003 Linux - Newbie 4 01-05-2007 12:23 PM
Restarted apache, httpd not updated? subaruwrx Linux - Software 7 08-09-2004 09:43 PM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration