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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

easy questions on Apache modules.... 1

Status
Not open for further replies.

fluid11

IS-IT--Management
Jan 22, 2002
1,627
0
0
US
Apache 2.0 / Red Hat Linux 7.3

I'm a little new to Apache and I have a few (easy) questions on how modules are configured. I know that you can enable/disable modules using the configure script in the Apache source directory like this...

./configure --disable-modules=cgi

- If I ran the above command, do I have to run 'make' and 'make install' afterwards?

- If I already have a running server, will a similiar command (whether adding or removing modules) wipe anything out?

- Where are the modules located on the disk?

- If I add a new module, do I have to edit the httpd.conf file to include the new module, or does the configure script do this for me?

- How can I tell what modules are compiled on an Apache server?


Thanks a lot for any help,
Chris
 
well i will answer what i can,

1. Yes you have to run a make and make install again
2. It is always a good idea to back up your stuff.
3. The DSO modules are usualy located in the modules dir under the server root as for the static modules i am not sure
4. If you compile the module staticly you dont have to add anything to the httpd.conf ( Not 100% sure on that )
5. To see a list of compiled modules run the command apache -l
 
Thanks.

- Where is the apache executable located? In /usr/local/apache/bin, I have apachectl, but apachectl -l isn't a correct option.

- Whats the difference between compiling modules staticly or dynamically?

- If I had a module called mod_frontpage.c, do I have to use the configure script to compile it into Apache? If so, where do I store the file on the disk? Do I store it in /usr/local/apache/modules?


Thanks again,
Chris
 
1. In the bin directory try ./httpd -l

2.The Advantages and disadvantages are on this page Scrool down to the end. The difference is that if you add a module dynamicaly you dont need to recompile apache everytime you add modules.

3. If you had a module called mod_frontpage.c you would use the apxs script that comes with apache to converd it to a DSO module. Then you would add a LoadModule directive to your httpd.conf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top