Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th July 2008, 18:51
le_avion le_avion is offline
Junior Member
 
Join Date: Jul 2008
Location: Grayslake, IL USA
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default How To Block Spammers/Hackers With mod_defensible On Apache2 - php problem

My server is running Ubuntu 7.10 and I ran into a problem after installing and configuring mod_defensible. The problem that I ran into is that my php pages are no longer handled by the server and instead my browser offers to download the page php source.

In Apache's error.log I see the following which is probably related:

apache2: udns_resolver.c:477: dns_free: Assertion `ctx != ((void *)0) && ctx != &dns_defctx' failed.
[Sun Jul 13 12:06:00 2008] [notice] child pid 7803 exit signal Aborted (6)

I wonder what is the reason for this problem.

Avi

Last edited by le_avion; 13th July 2008 at 19:08.
Reply With Quote
Sponsored Links
  #2  
Old 14th July 2008, 15:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

And when you comment out the three mod_defensible directives and restart Apache, PHP works again?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 14th July 2008, 16:50
le_avion le_avion is offline
Junior Member
 
Join Date: Jul 2008
Location: Grayslake, IL USA
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

This is correct. When I comment the lines out PHP starts working again.

Avi
Reply With Quote
  #4  
Old 15th July 2008, 16:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Hm... What's in /etc/resolv.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th July 2008, 17:44
le_avion le_avion is offline
Junior Member
 
Join Date: Jul 2008
Location: Grayslake, IL USA
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

search cfftechnologies.com
nameserver 192.168.129.1
nameserver 68.87.72.130
nameserver 68.87.77.130


The first name server is my own caching name server.

Avi
Reply With Quote
  #6  
Old 16th July 2008, 17:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Can you try this in the first place in /etc/resolv.conf?
Code:
nameserver 145.253.2.75
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 17th July 2008, 04:05
le_avion le_avion is offline
Junior Member
 
Join Date: Jul 2008
Location: Grayslake, IL USA
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

First I would like to thank you for trying to get my issue resolved.

This did not help but I did get it working properly now. Seems that the version of mod_defensible in Ubuntu 7.10 has a bug. I found a reference to the same problem I am having in a Debian bug report. I ended up installing the newer libudns0 and mod_defensible from Hardy (Ubuntu 8.04) and that fixed the problem. I will file a bug report with Ubuntu and ask them to back port it to 7.10 since it is still a supported version. From the Debian bug report:

libapache2-mod-defenisble has a serious issue involving dns resolution in
the testing tree. Anytime you activate and use the module the following
critical error is thrown by Apache:

[Mon Sep 17 10:48:25 2007] [notice] child pid 30877 exit signal Aborted (6)

apache2: udns_resolver.c:477: dns_free: Assertion `ctx != ((void *)0) && ctx
!= &dns_defctx' failed.

This is a blocker issue that prevents Apache from serving any requests while
the module is activated.
Reply With Quote
The Following User Says Thank You to le_avion For This Useful Post:
falko (18th July 2008)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vhosts_config.conf not included in httpd.conf mike_phi Installation/Configuration 5 13th March 2008 18:13
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 14:22
Virtual Hosting Not Working stirfry Installation/Configuration 26 7th August 2007 10:53
PHP on Apache2 no longer works after ISPconfig azorman Installation/Configuration 6 23rd July 2006 22:06
PHP problem ..Just installed ISP Config malikp Installation/Configuration 5 10th April 2006 11:43


All times are GMT +2. The time now is 11:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.