Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need to install GeoIP on a cPanel server (running CentOS 5.8). I have tried installing it through EasyApache (after installing geoip-devel and the relevant EasyApache addon), and it seems to have installed successfully. However, it won't load into Apache.


Apparently the line:

LoadModule geoip_module modules/mod_geoip.so

does appear in the httpd.conf but the module isn't actually enabled--it isn't shown as loaded in phpinfo and GeoIP directives in .htaccess don't work. What am I doing wrong?

share|improve this question
What is listed when you run httpd -M? –  slillibri Mar 25 '12 at 10:14

1 Answer 1

up vote 1 down vote accepted

Apache modules aren't shown in phpinfo() for starters. if you're looking for the PHP module, you need to install it for PHP instead of Apache. It is a PECL module available here. Or you should be able to install it from a root shell using pecl install geoip.

share|improve this answer
Thanks, I actually forgot I asked this question :) the problem was actually that the file was missing in: /usr/local/lib/php/extensions/no-debug-non-zts-20090626 . I have no idea why it impacts the Apache mod_geoip but copying a geoip.so file there helped. –  Ynhockey May 16 '12 at 11:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.