Hi 

I have a question which is slightly off -topic, but maybe someone can
enlighten me. 
I have installed the Apache webserver and would like to explore some of
the extra modular functions it provides. So I dowloaded a tar file with
extra modules, configured it, made it ad made install so that I ended up
with extra modules in /etc/httpd/modules. 

Then in httpd.conf I inserted two of the modules to see if they work: 

LoadModule cvs_module    modules/mod_cvs.so
LoadModule urlcount_module   modules/mod_urlcount.so  

I restarted the httpd daemon - no problems.   

The simplest one is the urlcount_module which in the source file states
that you have to do the following: 

 Config file directives:
 *
 *     CounterType           `txt' or `dbm'
 *     CounterAutoAdd        `on' or `off': Automatically add missing
URL's
 *     CounterFile           Path to ASCII or DBM file.
 *
 * The following pertain to a per server (or virtual server)
configuration:
 *
 *     ServerCounterType     `txt' or `dbm'
 *     ServerCounterAutoAdd  `on' or `off': Automatically add missing
URL's
 *     ServerCounterFile     path to ASCII or DBM file.     

So I put CounterType etc in access.conf and ServerCounterType etc in
httpd conf. 
When I try to restart httpd it gives me an error message:

Syntax error on line 372 of /etc/httpd/conf/httpd.conf:
Invalid command 'ServerCounterType', perhaps mis-spelled or defined by a
module
not included in the server configuration
                                                          
[FAILED]       

If I take the ServerCounter directives out of httpd.conf, I get the same
error message about CounterType in access.conf. 

The server does not accept these directives, but if does accept the
insertion of the module in httpd.conf. Does anyone know what is going
on? I know that for some modules, the server itself has to be
recompiled, but I thought that with modules that are not stating this
explicitly, they can be compiled on their own, then make install will
put them in the /etc/httpd/modules directory after which an entry such
as 

LoadModule urlcount_module   modules/mod_urlcount.so

will enable the module to be used. 

Am I wrong on this? Is there anything else I have to do? 

Any help or suggestions are most appreciated. It would be really great
if I could get this going.

(Note: on the apache website I could not find any usergroups to
subscribe to. If anyone knows of apache usergroups, please let me know -
thanks) 

Thanks

Hugo 





-- 
Dr Hugo Bouckaert - Systems Administrator, Computer Science UWA
Tel: +(61 8) 9380 2878 / Fax: +(61 8) 9380 1089
Email: [EMAIL PROTECTED] / Web: http://www.cs.uwa.edu.au/~hugo

Reply via email to