LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-17-2008, 06:34 PM   #1
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Apache Virtualhost problem


I'm configuring my new server with my old server's httpd.conf file. Problem is, I'm getting this message:

Code:
bash-3.1# ./rc.httpd restart
httpd: Syntax error on line 205 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/apache/mod_vhost_alias.so into server: /usr/libexec/apache/mod_vhost_alias.so: cannot open shared object file: No such file or directory
bash-3.1#
Now, I know if I commented it out, it would get rid of it, but I will be hosting some other sites soon, so I'd like to get it fixed so everything is in place when I do host others.

This is what my httpd.conf file looks like.

Apparently this is a growing trend...I commented out line 205, then got this:
Code:
bash-3.1# ./rc.httpd restart
httpd: Syntax error on line 206 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/apache/mod_env.so into server: /usr/libexec/apache/mod_env.so: cannot open shared object file: No such file or directory
bash-3.1#

Thanks for your help!

Last edited by phantom_cyph; 04-17-2008 at 07:27 PM.
 
Old 04-18-2008, 03:05 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
probably the shared objects reside in a different directory. How + where did you install apache?
 
Old 04-18-2008, 03:14 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
bash-3.1# ./rc.httpd restart
httpd: Syntax error on line 205 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/apache/mod_vhost_alias.so into server: /usr/libexec/apache/mod_vhost_alias.so: cannot open shared object file: No such file or directory
bash-3.1#
Make sure that the path to the modules (/usr/libexec/apache) is corerect. Perhaps the various modules are in another directory depending on the way you installed the new apache.
Or if they don't exist, run
Code:
httpd -l
to find the static modules and remove or comment the corresponding "LoadModule ..." lines. Or you can run
Code:
httpd -M
to find the shared modules and leave only those lines in httpd.conf.
 
Old 04-18-2008, 10:26 PM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by j-ray View Post
probably the shared objects reside in a different directory. How + where did you install apache?
I think this may be the problem. I can't remember how I did it last time with my server. I just downloaded apache and installed it to the directory in which I downloaded it. I think I may need to uninstall apache, php, and mysql and install them in the right directory again...which would be where exactly?

This is only the second time I've set up a server, so I'm not rusty, I'm an amateur

Your help/advice is appreciated.
 
Old 04-19-2008, 06:03 PM   #5
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Can someone help me figure out what I did wrong..?
 
Old 04-19-2008, 11:48 PM   #6
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
Sounds to me like you either changed distros and took part of one distos config over, but not the entire thing... is this correct?


if so, start from scratch with the new distros config files, and make the changes to apply your settings manually, or you can TRY using ALL of the config files for apache from your old distro if you still have the entire tree.
 
Old 04-20-2008, 12:04 PM   #7
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472

Original Poster
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
My current server is running Slackware 11, my new one is Slackware 12. Which might be the problem as apache is located in /etc/apache on 11 whereas on 12 its /etc/httpd.
 
  


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
Apache 2.2.3 on CentOS 5 - VirtualHost problem djjoshuad Linux - Server 2 04-19-2007 12:54 PM
Apache VirtualHost Redirect Problem... SiLiCoN Linux - Networking 5 05-03-2005 08:41 AM
Apache - Problem when configure VirtualHost b:z Linux - Networking 17 04-07-2005 02:44 AM
VirtualHost Apache 2 Problem Chris_K1 Linux - Networking 0 01-25-2005 10:00 AM
Apache: Virtualhost configuration problem deepika Linux - Software 3 08-12-2003 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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