*
The moose likes Servlets and the fly likes Where oh where can the Apache home directory be? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where oh where can the Apache home directory be?" Watch "Where oh where can the Apache home directory be?" New topic
Author

Where oh where can the Apache home directory be?

Anomander Rake
Greenhorn

Joined: May 31, 2005
Posts: 7
I am working with a server on which the web host installed Apache. Said web host has a tech support department that seems to know less about a lot of stuff than I do, and I'm an absolute and total newbie.

Anyway, I am trying to get Tomcat 4.0.X to work with Apache 2.0 under Linux in order to handle servlets. One of the things you have to do is put the right mod_jk.so file in the $APACHE_HOME/libexec directory. $APACHE_HOME refers, of course, to the name of the home directory for Apache. Now, how do I find out which of my many directories is the Apache home directory? I looked for directories named "libexec" and found two, one under /user, the other under /user/local. I looked in the httpd.conf file and found a statement saying "ServerRoot "/etc/httpd"" that's supposed to be "top of the directory tree under which the server's
# configuration, error, and log files are kept." I also found numerous directoreis and files here with "Apache" in the name.

Which, if any, is the Apache home directory?
Annie Smith
Ranch Hand

Joined: Mar 05, 2005
Posts: 172
List the environment variables. There should be one called APACHE_HOME


Cheers!<br /><b>Annie</b>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Where oh where can the Apache home directory be?
 
Similar Threads
Setting Load balancer for JBoss using Apache and mod_jk
File not found error when loading mod_jserv.so
Still confused - Tomcat Servlet.xml
Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf
servlet problem on apache-tomcat