php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75911 geoip_setup_custom_directory
Submitted: 2018-02-03 11:18 UTC Modified: -
From: cultzone at protonmail dot com Assigned:
Status: Open Package: geoip (PECL)
PHP Version: 5.6.33 OS: Red Hat x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
46 - 2 = ?
Subscribe to this entry?

 
 [2018-02-03 11:18 UTC] cultzone at protonmail dot com
Description:
------------
Warning: geoip_country_name_by_name(): Required database not available at /usr/share/GeoIP/GeoIP.dat

I tryed to change the directory of GEOIP2 to alternate link, but doesnt works:

geoip_setup_custom_directory('some/path');

I dont have the shell acess to the apache panel, because are in reseller WHM Panel.

And the server admin is from Matrix of Secret Government, dont try to fix this error.

I tryed to patch this issue with a little link, but dont have sucess:

http://www.cultzone.com.br/macako/GeoIP.dat


Test script:
---------------
http://www.cultzone.com.br/macako/GeoIP.dat
http://www.cultzone.com.br/macako/geoip.inc


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 01:01:33 2019 UTC