Skip to content

hoesman/geoip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the legacy MaxMind v1 GeoIP PHP extension. This will work on PHP 7.x and PHP 8.x.

Unless you have old code that needs this, you are better off using GeoIP2

Install (Ubuntu 24.04 / PHP 8.3 / Apache)

apt update
apt install php8.3-dev libgeoip-dev
git clone https://github.com/rlerdorf/geoip.git
cd geoip/
phpize8.3
./configure 
make 
make install
echo "extension=geoip.so" > /etc/php/8.3/mods-available/geoip.ini
ln -s /etc/php/8.3/mods-available/geoip.ini /etc/php/8.3/fpm/conf.d/20-geoip.ini
ln -s /etc/php/8.3/mods-available/geoip.ini /etc/php/8.3/apache2/conf.d/geoip.ini
systemctl restart php8.3-fpm
systemctl restart apache2

About

PHP geoip ext for PHP 8

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 67.8%
  • PHP 23.1%
  • M4 7.9%
  • JavaScript 1.2%