To test if you have php_geoip extension on your Zend Server, create an php file and copy the following code. This will output true if extension is available or false if not.
If your output is false than you have to download an php_geoip.dll file correctly compiled for your zend server version.
For Zend Server 5.6 you can find geoip extension here:
As you can see there are several files for different architectures and compilers
** NOTE: you can find on what architecture your php is built and the compiler used with phpinfo();
|Compiler||MSVC9 (Visual C++ 2008)|
After you have downloaded the php_geoip.dll you have to copy the file in:
Now you have to go in your Zend Server interface, restart php, turn on geoip extension from Server Setup -> Extension and restart php again.
If you get an error loading geoip extension than you picked the wrong dll and you have to try the other ones.
Otherwise your geoip extension is loaded and your test script from the beginning will output “true”.
The next step is to download some geoip databases from maxmind.
- or anything you need
Copy those .dat files in
And now you can use geoip functions on your Zend Server 5.6