Apache Crashes when editing httpd.conf to load module

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache Crashes when editing httpd.conf to load module

Postby nick13 » 30. December 2012 13:09

I'm trying to run mod_dosevasive so that I minimize the DOS attacks on my server (also to keep users from refreshing the page rapidly and crashing the server) and I did it by adding the loadmodule line inside httpd.conf, and dropping in the files into the modules folder. Now when I try to start apache, it crashes giving the usual -- Error: Apache shutdown unexpectedly. Now I checked my logs, but sometimes it doesn't even log the error. When it does, there's just notices and warnings such as:

Code: Select all
[ssl:warn] [pid 6960:tid 256] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[mpm_winnt:notice] [pid 6960:tid 256] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[mpm_winnt:notice] [pid 6960:tid 256] AH00456: Server built: Aug 18 2012 12:41:37
[core:notice] [pid 6960:tid 256] AH00094: Command line: 'c:\\xampp2\\apache\\bin\\httpd.exe -d C:/xampp2/apache'
[mpm_winnt:notice] [pid 6960:tid 256] AH00418: Parent: Created child process 3360
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/xampp2/apache/conf/extra/httpd-vhosts.conf:36
[ssl:warn] [pid 3360:tid 1796] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[mpm_winnt:notice] [pid 3360:tid 1796] AH00354: Child: Starting 150 worker threads.


And when I remove that LoadModule line, it works again.. Any help? I need to fix this ASAP
nick13
 
Posts: 2
Joined: 30. December 2012 13:04
XAMPP Version: 5.6.3
Operating System: Windows Server

Re: Apache Crashes when editing httpd.conf to load module

Postby hackattack142 » 31. December 2012 05:25

The module needs to be compiled to work with Apache 2.4 Win32 VC++ 2010. Any modules compiled for lower versions of Apache, other architectures, or other compilers will fail.
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
XAMPP Version: 5.6.3
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Apache Crashes when editing httpd.conf to load module

Postby nick13 » 31. December 2012 19:26

hackattack142 wrote:The module needs to be compiled to work with Apache 2.4 Win32 VC++ 2010. Any modules compiled for lower versions of Apache, other architectures, or other compilers will fail.
/
Thanks for replying. So there is no way, that I can compile it to work myself? Or do you have any other alternative for mod_dosevasive against DOS attacks etc? Because my server's CPU gives hitting 100% when I test it by refreshing several times in a few secs
nick13
 
Posts: 2
Joined: 30. December 2012 13:04
XAMPP Version: 5.6.3
Operating System: Windows Server

Re: Apache Crashes when editing httpd.conf to load module

Postby hackattack142 » 01. January 2013 16:40

If you have the source code for that module, possibly, it looks like people have got mod_evasive to work under Linux Apache 2.4 with some source code modification. Not sure I can help much beyond that without setting everything up for a build and trying to do it myself.

Other than that, you could look through other resources or try to find more up-to-date modules or protections: http://httpd.apache.org/docs/current/mi ... _tips.html
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
XAMPP Version: 5.6.3
Operating System: Windows 7 Ultimate SP1 64-Bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 59 guests