Install mod_geoip on CWP – CentOS Web Panel
mod_geoip Apache module helps you to find the location of the IP address of the website visitors. This post describes how to install mod_geoip in CentOS Web Panel ( CWP )
First, you need to install EPEL repo:
yum install epel-release
Once it is installed, you can simply install mod_geoip on CWP using “yum”.
yum install mod_geoip geoip-devel
Restart Apache service.
Verify the installation using the following command.
httpd -M | grep geoip
[root@server ~]# httpd -M | grep geoip geoip_module (shared) [root@server ~]#
Remove the EPEL repo once the installation has been finished successfully.
yum remove epel-release -y
Install GeoIP PHP module
Run the following commands to install GeoIP PHP module:
cd /usr/local/src/ wget http://pecl.php.net/get/geoip-1.0.8.tgz tar -zxvf geoip-1.0.8.tgz cd geoip-1.0.8 /usr/local/bin/phpize ./configure --with-php-config=/usr/local/bin/php-config make make install
You can verify the installation using the following command:
php -m | grep geoip
[root@server ~]# php -m | grep geoip geoip [root@server ~]#
If you like this post and wish to receive more articles from us, please like our FB page: Grepitout
Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at firstname.lastname@example.org