LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-24-2006, 01:45 PM   #1
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
missing mod_access.so


Hi There,

I am using FC5 and when I try to start httpd, I got the following error message:

Code:
[root@sulfer ~]# service httpd start
Starting httpd: httpd: Syntax error on line 170 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_access.so into server: /etc/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory
                                                           [FAILED]
[root@sulfer ~]#
In fact, inspecting a little more, I realize several files are missing:
Code:
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule imap_module modules/mod_imap.so
But my system has several http modules installed:
Code:
[root@sulfer ~]# ll -d /etc/httpd/modules
lrwxrwxrwx 1 root root 27 Mar 24 09:11 /etc/httpd/modules -> ../../usr/lib/httpd/modules
[root@sulfer ~]# rpm -qf /usr/lib/httpd/modules
httpd-2.2.0-5.1.2
[root@sulfer ~]# ll /usr/lib/httpd/modules
total 4652
-rwxr-xr-x 1 root root 3206744 Feb 28 08:23 libphp5.so
-rwxr-xr-x 1 root root    6136 Feb 11 21:12 mod_actions.so
-rwxr-xr-x 1 root root   10228 Feb 11 21:12 mod_alias.so
-rwxr-xr-x 1 root root    5728 Feb 11 21:12 mod_asis.so
...
-rwxr-xr-x 1 root root    9432 Feb 11 21:12 mod_usertrack.so
-rwxr-xr-x 1 root root    5848 Feb 11 21:12 mod_version.so
-rwxr-xr-x 1 root root    8444 Feb 11 21:12 mod_vhost_alias.so
[root@sulfer ~]#
So, the question is: What package the file /usr/lib/httpd/modules/mod_access.so belongs to ?
Somebody with the mod_access.so installed in FC5 could run "rpm -qf /usr/lib/httpd/modules/mod_access.so", please ?

I was unable to figure out the package name by using the search feature of yum.

thanks in advance
 
Old 04-25-2006, 10:57 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Code:
# yum whatprovides mod_access.so

lighttpd.i386                            1.4.10-2.fc5           extras
Matched from:
mod_access.so
Importing additional filelist information


lighttpd.i386                            1.4.10-2.fc5           extras
Matched from:
/usr/lib/lighttpd/mod_access.so
mod_access.so


lighttpd.i386                            1.4.10-2.fc5           installed
Matched from:
/usr/lib/lighttpd/mod_access.so
mod_access.so
 
Old 04-26-2006, 07:48 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499

Original Poster
Blog Entries: 2

Rep: Reputation: 68
Thumbs up solved

Thanks WhatsHisName ! (looks like the Costelo's joke "what's the name of the man in the first base" )


I learned about the "whatprovides" parameter, what is a good thing !

The bad news is it not worked, because it belongs to another package, not httpd itself. The path of the file provided by lighttpd is /usr/lib/lighttpd/mod_access.so and I expected /usr/lib/httpd/modules/mod_access.so.

Looks like it is a bug in system_config_httpd.

If you configure a web server by editing by hand the file /etc/httpd/conf/httpd.conf, using the original configuration file provided by the package httpd, then it works.

If you try to configure a web server by system_config_httpd, then the file /etc/httpd/conf/httpd.conf will refer /usr/lib/httpd/modules/mod_access.so which not exist at all.

So, I re-installed httpd and using the working /etc/httpd/conf/httpd.conf file, I just added the virtual server section and all is working now.


thanks !
 
Old 04-26-2006, 03:13 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Apache 2.2 has several modules renamed; see here. So when it upgraded and did not replace your old httpd.conf, it will refer to modules that no longer exist.
 
  


Reply



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
Maybe I'm missing something... Conan_77 Slackware 2 09-14-2004 09:18 PM
Mod_Access and Mod Auth pazvant Linux - Security 1 06-24-2004 05:52 PM
Missing HD RJDavison Fedora 1 05-21-2004 11:04 AM
Missing gd.h gmartin Slackware 3 02-11-2004 01:16 AM
What am I missing? discipledoc Linux - General 1 01-21-2003 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:47 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
Open Source Consulting | Domain Registration