LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Updated HTTPD, missing shared objects (https://www.linuxquestions.org/questions/linux-newbie-8/updated-httpd-missing-shared-objects-4175472526/)

cowmoo32 08-07-2013 02:29 PM

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.

Kustom42 08-07-2013 04:55 PM

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


cowmoo32 08-08-2013 09:06 AM

Quote:

Originally Posted by Kustom42 (Post 5005140)
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.

prayag_pjs 08-08-2013 09:44 AM

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)

TB0ne 08-08-2013 10:42 AM

Quote:

Originally Posted by prayag_pjs (Post 5005614)
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.

cowmoo32 08-08-2013 01:58 PM

Quote:

Originally Posted by TB0ne (Post 5005651)
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?


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