LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Where is Apache hiding its modules? (https://www.linuxquestions.org/questions/linux-software-2/where-is-apache-hiding-its-modules-443482/)

khairkhoah 05-10-2006 10:45 AM

Where is Apache hiding its modules?
 
Hello, I am new to Linux and have recently installed Suse 10. I am trying to make some changes in the apache httpd.conf file and have to define the path to a module mod_jk. However, I cannot locate where Apache stores its modules. Currently I am getting the error that 'cannot load the module mod_jk'. Using Yast2 I have checked that the module exists but where? I do not know.

Can you please help me with this?

Regards

sotob 05-10-2006 01:30 PM

Would this help?

# httpd -l

Compiled-in modules:
http_core.c
mod_so.c

This will list modules and then do a find on the module name and that should give you the path info that you need.

tomdkat 05-10-2006 07:10 PM

I believe Apache stores its modules in $(SERVERROOT)/modules, where ServerRoot is defined in httpd.conf.

Peace...

khairkhoah 05-11-2006 04:06 AM

Hello,

Since I am new to Linux to I couldnt understand the first reply. I looked at the httpd.conf file but there is no link to the modules folder. However, somone else helped me to find it finally and now Apache is running fine. The folder was /usr/lib/apache2 . I am new to Linux but some thing I have felt is that the paths are trickier and keep changing with different flavours of Linux and even betweeen different versions of same flavour. So it is more complex compared to Windowns environment.

Regards.

tomdkat 05-11-2006 11:59 AM

Quote:

Originally Posted by khairkhoah
I looked at the httpd.conf file but there is no link to the modules folder.

httpd.conf should have directives that load modules that look something like this:


LoadModule tomdkat modules/libtomdkat.so

That path to the module, "modules/libtomdkat.so" in conjunction with the path defined in the ServerRoot directive will give you the exact path to where any given module is located.

Quote:

I am new to Linux but some thing I have felt is that the paths are trickier and keep changing with different flavours of Linux and even betweeen different versions of same flavour. So it is more complex compared to Windowns environment.
This is an issue with the Linux distributions and nothing inherent to Linux, itself. For example, I admin a Fedora Core 2 based Linux system and while Apache was installed in the usual manner for Fedora Core systems, I opted NOT to go that route and installed Apache 2 in /usr/local/apache and I've had 0 problems getting it up and running, as needed. Of course, I must maintain it manually but that simplifies things tremendously since I don't have pieces of Apache scattered all over the place. :)

Learn how to configure Apache and you'll be platform neutral. :)

Peace...

khairkhoah 05-22-2006 08:45 AM

Got your point, thanks. I have done a similar thing on the other computer running Suse. I did not opt to go with Apache installation while installing Suse. I later downloaded the binaries and stored them in a folder of my choice. Now I have the whole thing togather and its easy to manage.

Regards.


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