LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2006, 11:45 AM   #1
khairkhoah
LQ Newbie
 
Registered: May 2006
Posts: 18

Rep: Reputation: 0
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
 
Old 05-10-2006, 02:30 PM   #2
sotob
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
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.
 
Old 05-10-2006, 08:10 PM   #3
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

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

Peace...
 
Old 05-11-2006, 05:06 AM   #4
khairkhoah
LQ Newbie
 
Registered: May 2006
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 05-11-2006, 12:59 PM   #5
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
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...
 
Old 05-22-2006, 09:45 AM   #6
khairkhoah
LQ Newbie
 
Registered: May 2006
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to insert the modules in apache sharad Linux - Networking 1 12-16-2005 02:56 PM
Installing apache modules dominant Linux - Newbie 0 07-21-2004 05:48 AM
Looking for apache modules dominant Linux - Newbie 2 07-21-2004 03:26 AM
Where are my apache-2.0.48 modules tharris Linux - Software 1 02-23-2004 07:06 PM
Apache Modules raptor Linux - Software 0 08-26-2003 03:49 AM

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

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

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