Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question: Compiling and loading a module

Status
Not open for further replies.

kyru

Programmer
Jan 17, 2009
45
ES
I'm sure this is a truly simple thing to do but I'm getting a serious headache with it.

I prefer being told the whole process to do it, until now I've done this way:

a)I have my Apache source on /usr/src/http-2.0.63 I have inputted the following commands:

./configure -prefix=/usr/local/apache --enable-module=shared
(The last thing is supposed to allow DSO to be used).

make

make install

Ok, now in /usr/local/apache y have a directory modules with just a file called httpd.exp which seems to be useless.

I return to /usr/src/http-2.0.63/modules and I enter a module folder, for example ssl, I try to use the make command but nothing happens, so I cannot get the mod_ssl.so file.

I think that after I get the .so file I have it I just have to modify the httpd.conf file and putting a directive Loadmodule mod_ssl path to the .so file ¿Right?

Then next time I start Apache this module is loaded. Isn't it?

In addition, is there any command to check which modules are installed? Does httpd -l do for that?

Thanks in advance.

 
Sigh, the problem was that in
./configure -prefix=/usr/local/apache --enable-module=shared in module you had to put the name of the module, like dav or proxy... how lame...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top