LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-08-2004, 08:09 AM   #1
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
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


Last edited by sk545; 11-08-2004 at 08:14 AM.
 
Old 11-08-2004, 10:21 AM   #2
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
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..
 
Old 11-08-2004, 11:53 AM   #3
sk545
Member
 
Registered: Aug 2002
Posts: 312

Original Poster
Rep: Reputation: 30
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.
 
Old 11-08-2004, 12:05 PM   #4
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
Great!!

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


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
Apache warning when started mhykhh Linux - Software 4 12-17-2005 06:36 AM
why is apache giving me a 404 error linuxmandrake Linux - Software 4 06-17-2005 09:16 AM
Apache and CGI is giving me headaches inpt Linux - Software 3 06-10-2005 11:24 AM
Small linux giving "Warning: dev (4:01)...." error during bootup. WJWhite Linux - Newbie 1 01-23-2004 11:03 PM
giving apache the correct permissions dflorence Linux - Newbie 3 11-06-2003 08:27 AM

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

All times are GMT -5. The time now is 07:49 PM.

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