wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz
tar -zxf GeoIP-1.4.6.tar.gz
cd GeoIP-1.4.6
./configure
make
make install
cd ..
tar -zxf mod_geoip2_1.2.4.tar.gz
cd mod_geoip2-1.2.4/
apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c
vi /etc/httpd/conf/httpd.conf
GeoIPEnable On
GeoIPDBFile /usr/local/share/GeoIP.dat
scp imtiaz@netbrix.net:/home/imtiaz/src/GeoIP.dat /usr/local/share/
/etc/init.d/httpd stop
/etc/init.d/httpd start
People who looked at this item also looked at…
always backup
mod geoip
AppZone
mails being rejected at aol or yahoo or gmail?
keep your server clock ticking right
Related items
AppZone
Linux SysAd
mails being rejected at aol or yahoo [...]
Video Conversion script — Many formats to .flv
This is a script that converts your videos to flash video format, better known as flv, so as to be able to share them on the internet, just like on Youtube!
We have three different versions/variants of this script, click the links below to try each one out:
The [...]
If you send mails using a webform using the php mail() function and your mails are being rejected by the destination servers here’s a small trick to fix the issue.
Usually this arises when your envelop does not carry a valid identifiable from header. So instead of using something like:
mail($to, $subject, $message, $headers);
Where you are not [...]
Hackers or script kiddies often end up defacing and hijacking your website. They can do this because you are not looking! Or not loking hard enough.
An antimalware/antivirus scan for linux would be a good thing as it would allow you to scan files on your server on a periodic basis(using cronjobs). Mostly backdoors are uploaded [...]
Time is money!
It’s important, from a lot of points of views besides security, ot keep the server time correct. The tool to use is ntpdate which syncs server time to a NTP server (Network Time Protocol)
Put this in your crontab if your server is in the NA vicinity
5 0 * * * /usr/sbin/ntpdate -u 0.north-america.pool.ntp.org
This [...]