note 115591 added to geoip.installation
| From: | phpgeoipnote at empirestorage dot ca | Date: | Thu, 21 Aug 2014 08:56:29 +0000 |
| Subject: | note 115591 added to geoip.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200235@lists.php.net to get a copy of this message | ||
Hi everybody, I ran into many roadbumps installing this, hopefully these tips will help somebody
else.
I installed it on a CentOS 5.x system running PHP 5.3.x managed by Virtualmin/Webmin. Using SSH, I
installed the following packages via yum:
yum install php53-devel geoip geoip-devel gcc.
Basically I ran into a bunch of random errors that were resolved by installing whatever package was
required, AND their equivalent -devel companion. Then I ran:
pecl install geoip
Once that installed, I had to edit /etc/php.ini. Search for "extension=" and add the line
"extention=geoip". If you have virtual hosts setup in your hosting environment that each
have their own php.ini file, you'll need to add that line to each file.
----
Server IP: 72.52.91.14
Probable Submitter: 162.157.15.124
----
Manual Page -- http://php.net/manual/en/geoip.installation.php
Edit -- https://master.php.net/note/edit/115591
Del: integrated -- https://master.php.net/note/delete/115591/integrated
Del: useless -- https://master.php.net/note/delete/115591/useless
Del: bad code -- https://master.php.net/note/delete/115591/bad+code
Del: spam -- https://master.php.net/note/delete/115591/spam
Del: non-english -- https://master.php.net/note/delete/115591/non-english
Del: in docs -- https://master.php.net/note/delete/115591/in+docs
Del: other reasons-- https://master.php.net/note/delete/115591
Reject -- https://master.php.net/note/reject/115591
Search -- https://master.php.net/manage/user-notes.php