LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 04: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, 04:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well why not actually address the error message... does mod_auth.so exist or not?
 
Old 03-26-2008, 04: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 04:58 AM.
 
Old 03-26-2008, 05:00 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 06: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, 06:56 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 11:35 AM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:59 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