LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache Virtualhost problem (https://www.linuxquestions.org/questions/linux-server-73/apache-virtualhost-problem-636101/)

phantom_cyph 04-17-2008 06:34 PM

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!

j-ray 04-18-2008 03:05 AM

probably the shared objects reside in a different directory. How + where did you install apache?

bathory 04-18-2008 03:14 AM

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.

phantom_cyph 04-18-2008 10:26 PM

Quote:

Originally Posted by j-ray (Post 3124962)
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.

phantom_cyph 04-19-2008 06:03 PM

Can someone help me figure out what I did wrong..?

Kahless 04-19-2008 11:48 PM

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.

phantom_cyph 04-20-2008 12:04 PM

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.


All times are GMT -5. The time now is 11:39 AM.