LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-26-2008, 05:31 AM   #1
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Rep: Reputation: 15
Exclamation Apache - cannot open shared object file: No such file or directory


Hey,

I've just purchased a dedicated web-hosting server that had nothing installed on it. So I went there and installed a standard CentOS 5 distro on it, but when I try to do a 'service httpd start' I get the following error:

Code:
Starting httpd: httpd: Syntax error on line 171 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_auth.so into server: /etc/httpd/modules/mod_auth.so: cannot open shared object file: No such file or directory
                                                           [FAILED]
I've tried to comment out that mod but it does the same with the next, I have no idea why it won't work. It's brand new installed and since the installation I never managed to get it working at all.

Can you please help?!

Tanks.
 
Old 03-26-2008, 05:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well why not actually address the error message... does mod_auth.so exist or not?
 
Old 03-26-2008, 05:53 AM   #3
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
Well no, I've looked in '/etc/httpd/modules' and there I only found "mod_auth_basic.so,mod_auth_digest.so" for mod_auth.
I really don't know why a fresh install of apache would reference inexistent modules, but that's that.

I see that 'mod_auth_digest.so' is already in the httpd.conf, should I add mod_auth_basic instead of mod auth? IF so can you please point me to where can I find the necessary syntax?

Tanks

Last edited by Braynid; 03-26-2008 at 05:58 AM.
 
Old 03-26-2008, 06:00 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
check this... http://www.centos.org/modules/newbb/...12614&forum=37 would seem you've used system-config-httpd or some such which isn't apache 2.2 compatible yet...
 
Old 03-26-2008, 07:52 AM   #5
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
Thanks for the link.

It seems that the guys over there say it's a problem with the GUI editor for the httpd.conf in the 5.1 distro of CentOS.

Quote:
After trying some things, found that the GUI creates a .bak of the original httpd.conf file. The .bak file is for Apache 2.2. Quick renames and the default page will open after successfully starting httpd. Now just a matter of editing the httpd.conf to point to where I really need. So it appears the GUI interface for httpd configuration is not appropriate for use in this release.
The problem is that they don't give an exact resolution to this and I don't know exactly how to edit the httpd configuration file so that it points correctly and apache starts.

Can you point me to some resources so that I can make apache work?
 
Old 03-26-2008, 07:56 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well it states that a bak would be made, so you should be able to just revert to that. alternatively if you've not used apache at all yet, just remove and reinstall it if you get in a mess. Another alternative could be to only use the 2.0 branch and the gui tool should still work.
 
Old 03-26-2008, 12:35 PM   #7
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
In the end the solution was to restore the .bak config. Besides, you should not use the Gnome httpd.conf editor until the bug is fixed.
 
  


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
libtermcap.so.2: cannot open shared object file: No such file or directory tcma Linux - Software 11 02-24-2012 04:00 AM
libGL.so.1: cannot open shared object file: No Such file or directory Cinematography Linux - Hardware 1 10-22-2007 10:16 PM
libdb_java-4.5.so: cannot open shared object file: No such file or directory jimmyjiang Red Hat 1 09-02-2007 06:02 AM
cannot open shared object file: No such file or directory (0) SQLSTATE=00000?? suliman_shah Programming 3 08-23-2007 02:02 PM
libawt.so: libXp.so.6: cannot open shared object file: No such file or directory man26 *BSD 0 09-10-2004 09:34 AM


All times are GMT -5. The time now is 04:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration