Thursday, February 15, 2007

yum [Errno 4] IOError: HTTP Error 404: Not Found

After discovering that one of my sites had been attacked via SQL injection, I decided to look for some global solutions that would try to prevent those attacks. Obviously the best way would be to patch up problematic webapps, but a global first line of defense would be helpful.

So anyways after some research "mod_security" came up as a good way of preventing web attacks including SQL injection, so I tried to install it via:

yum install mod_security

But then I got the messages:

Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
retrygrab() failed for:
http://download.fedoralegacy.org/fedora/2/os/i386/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file http://download.fedoralegacy.org/fedora/2/os/i386/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found

I then edited /etc/yum.conf and replaced (under the [base] section):

baseurl=http://download.fedoralegacy.org/fedora/$releasever/os/$basearch

with:

baseurl=http://rh-mirror.linux.iastate.edu/fedoralegacy/fedora/$releasever/os/$basearch

then replaced (under the [fedoralegacy-updates] section):

baseurl=http://download.fedoralegacy.org/fedora/$releasever/updates/$basearch

with:

baseurl=http://rh-mirror.linux.iastate.edu/fedoralegacy/fedora/$releasever/updates/$basearch

Apparently the fedoralegacy.org site is no longer working to provide updates. Anyways those changes worked but unfortunately apparently mod_security wasn't available with Fedora Core 2. Oh well- time to try elsewhere.

0 comments: