LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache giving 'mod_throttle.c is already added' warning? (https://www.linuxquestions.org/questions/linux-software-2/apache-giving-mod_throttle-c-is-already-added-warning-252389/)

sk545 11-08-2004 08:09 AM

Apache giving 'mod_throttle.c is already added' warning?
 
I am installed apache (1.3.x) and the throttle mod (mod_throttle), but when i start apache i get this:

# /etc/init.d/apache start Starting web server: apache[Mon Nov 8 08:57:32 2004] [warn] module mod_throttle.c is already added, skipping

It looks like a pretty harmless error which it probably is, but i would rather not have it if possible. The relevent section of the httpd.conf looks like this:

#
# Allow http put (such as Netscape Gold's publish feature)
# Use htpasswd to generate /etc/apache/passwd.
# You must unremark these two lines at the top of this file as well:
#LoadModule put_module modules/mod_put.so
LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
#AddModule mod_put.c
AddModule mod_throttle.c
#
<IfModule mod_throttle.c>
ThrottleClientIP 100 None
ThrottlePolicy Request 5 1

<Location /throttle-status>
SetHandler throttle-status
order deny,allow
Deny from All
allow from 127.0.0.0/255.0.0.0 192.168.123
</Location>

<Location /throttle-me>
SetHandler throttle-me
order deny,allow
Deny from All
allow from 127.0.0.0/255.0.0.0 192.168.123
</Location>
</IfModule>

<Location /apached/>
<IfModule mod_throttle.c>
ThrottlePolicy Speed 40K 1s
</IfModule>
</Location>

Is something making mod_throttle load twice? I mean i only have it there just once, unless some other config file is doing this which i don't know about..

Thanks.

/edit: I ran this command: /usr/sbin/apache-modconf apache, and got the following message:

Error: mod_throttle.so does not have a corresponding .info file.
The above errors might cause apache to not work properly or start
Please refer to the documentation on how to fix it or report it to
Debian Apache Mailing List <debian-apache@lists.debian.org> if in doubt
on how to proceed


UsualTuxpect 11-08-2004 10:21 AM

I guess you can comment the line --->"AddModule mod_throttle.c" as you have the line -->"LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so". Andy try restarting Apache..

sk545 11-08-2004 11:53 AM

thx, but i figured it out. It looks like the debian packaged apache needs to have a .info file in /usr/lib/apache/1.3 for any module thats installed from outside of debian official repository. Since mod_throttle is from another website, i had to manually make the .info file. Afterwards i commented both of the sections in httpd.conf about 'Load' and 'Add' mod_throttle. Now the error(s) are gone. It appears that in debian when there is a .info file and the corresponding module in /usr/lib/apache/1.3, it automatically gets loaded, and adding in 'Load' and 'Add' in httpd.conf is redundant. At least thats what i think.

UsualTuxpect 11-08-2004 12:05 PM

Great!!

Appreciate the effort, of you posting back your experience with Apache.


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