From: Jeff Haney <jah1281@mi...> - 2006-03-02 16:38:24
I'm trying to upgrade my Apache, PHP & mod_security installs to the latest versions and I'm getting the following error:
Access denied with code 403. IP Info: Failed to open IP Address DB (2): No such file or directory
I'm running Apache 2.2.0, PHP 5.1.2 and mod_security nightly cvs snapshot from March 1 (tried mod_security 1.9.2 too). I installed mod_security using the "Static installation with Apache 2.x" method.
This occurs on every page and any time mod_security is enabled, even with no rules specified. I'm running Apache in a chrooted jail but was having some difficulty getting the mod_security chroot working. I have it working with another installation and intend to work through it on this install but for now I've copied libraries to the chroot jail and I'm doing it the old fashioned way.
The error seems to indicate it's looking for some sort of file, an IP database of some type? The frustrating thing is I don't see this mentioned in the doc anywhere, if it is I haven't been able to find it.
I have another installation on a different server with a similar environment and I'm not having this problem. That environment is using php 4.4.1 and is using mod_security's chroot function. Those two things are the major differences, everything else is very similar to the environment with the problem.
Any help would be greatly appreciated.
From: Ivan Ristic <ivanr@we...> - 2006-03-02 17:21:30
Jeff Haney wrote:
> I'm trying to upgrade my Apache, PHP & mod_security installs to the
> latest versions
BTW, if you are looking for production-quality code stick
with 1.9.x. What you got from the CVS is 2.0.0-dev1.
> and I'm getting the following error:
> Access denied with code 403. IP Info: Failed to open IP Address DB
> (2): No such file or directory
ModSecurity will attempt to open/create an IP database in
<SERVER_ROOT>/logs/. This is not yet configurable.
> The frustrating thing is I don't see this mentioned in the doc
> anywhere, if it is I haven't been able to find it.
As I said, it's the development branch. The docs will be available
in a few days.
Ivan Ristic, Technical Director
Thinking Stone, http://www.thinkingstone.com
ModSecurity: Open source Web Application Firewall
Apache Security (O'Reilly): http://www.apachesecurity.net