Author |
|
fr600
Joined: 29 Jul 2008 Posts: 6
|
Posted: Tue 29 Jul '08 10:44 Post subject: Installing mod_security2 |
|
|
Hello guys,
I'm new here and I don't know much. I want to install mod_security2 but it's not working. This is what I did:
1. Installed VS C++ 2008 Redist
2. Copied mod_security2.so and libxml2.dll to apache2\modules\mod_security2 folder
3. Added LoadModule security2_module modules/mod_security2/mod_security2.so to httpd.conf
4. Uncommented unique_id_module in httpd.conf
But apache is not starting now. Am I doing something wrong or is there anything I haven't done? Please help me. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 29 Jul '08 12:18 Post subject: |
|
|
What is on your error log? Something in the windows event log? Which OS do you run? |
|
Back to top |
|
fr600
Joined: 29 Jul 2008 Posts: 6
|
Posted: Tue 29 Jul '08 15:23 Post subject: |
|
|
This is what I got:
Code: | [Tue Jul 29 02:35:54 2008] [notice] Parent: Received restart signal -- Restarting the server.
[Tue Jul 29 02:35:54 2008] [notice] Child 12: Exit event signaled. Child process is ending.
Syntax error on line 179 of C:/Server/apache2/conf/httpd.conf:
Cannot load C:/Server/apache2/modules/mod_security2/mod_security2.so into server: The specified procedure could not be found.
[Tue Jul 29 02:35:54 2008] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request. : winnt_accept: Asynchronous AcceptEx failed.
[Tue Jul 29 02:35:55 2008] [notice] Child 12: Released the start mutex
[Tue Jul 29 02:35:56 2008] [notice] Child 12: All worker threads have exited.
[Tue Jul 29 02:35:56 2008] [notice] Child 12: Child process is exiting
[Tue Jul 29 02:36:58 2008] [warn] pid file C:/Server/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Jul 29 02:36:58 2008] [notice] Apache configured -- resuming normal operations
[Tue Jul 29 02:36:58 2008] [notice] Server built: Jan 17 2008 22:58:29
[Tue Jul 29 02:36:58 2008] [notice] Parent: Created child process 1956
[Tue Jul 29 02:36:58 2008] [notice] Child 1956: Child process is running
[Tue Jul 29 02:36:58 2008] [notice] Child 1956: Acquired the start mutex.
[Tue Jul 29 02:36:58 2008] [notice] Child 1956: Starting 250 worker threads. |
I'm on windows server 2008. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 29 Jul '08 18:48 Post subject: |
|
|
mod_security version?
Apache version?
where did you get both of them? |
|
Back to top |
|
fr600
Joined: 29 Jul 2008 Posts: 6
|
Posted: Tue 29 Jul '08 19:05 Post subject: |
|
|
apache 2.0.63, downloaded from httpd.apache.org (apache_2.0.63-win32-x86-no_ssl.msi)
mod_security 2.5.5, downloaded from apachelounge.com/download (mod_security-2.5.5-win32.zip) |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 29 Jul '08 19:43 Post subject: |
|
|
As written on the download page is works with Apache 2.2.x: It will NOT load into Apache 2.0.x releases.
Also in the zip: Works only with Apache 2.2.x
Steffen |
|
Back to top |
|
fr600
Joined: 29 Jul 2008 Posts: 6
|
Posted: Tue 29 Jul '08 20:19 Post subject: |
|
|
Ohh I'm sorry I didn't notice that.
Is there any version that works with apache 2.0.63? |
|
Back to top |
|
fr600
Joined: 29 Jul 2008 Posts: 6
|
Posted: Tue 29 Jul '08 23:02 Post subject: |
|
|
OK, I upgraded to apache 2.2. No errors now.
How can I check if mod_security is working?
Other than what I said I did in the first post, is there anything else I have to do to configure it? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Tue 29 Jul '08 23:13 Post subject: |
|
|
Good to hear.
First see the Readme.txt in the.zip under the heading "A very quick start".
To check see also the Readme.txt or www.apachelounge.com/viewtopic.php?t=2520
For the rest read the included documentation.
Steffen |
|
Back to top |
|
fr600
Joined: 29 Jul 2008 Posts: 6
|
Posted: Tue 29 Jul '08 23:32 Post subject: |
|
|
Thanks a lot man. |
|
Back to top |
|