qq_18691129 2016-02-22 09:31 采纳率: 0%
浏览 2095
已结题

centos6.5 安装GeoIP PECL扩展

图片说明

这是官方的回答,,不懂。。

How do I install the GeoIP Geo location PECL extension?

If you’re using Ubuntu or Debian run the following command:

sudo apt-get install php5-geoip php5-dev libgeoip-dev
If you have to build the extension by hand, first make sure you have the following installed:

PEAR/PECL (which includes the pecl executable)
The GeoIP C library with development files
Build tools (including GCC, make, etc.)
php development files
Then run the following command:

sudo pecl install geoip
Finally, add the following to your php.ini file:

extension=geoip.so
Once the PECL extension is installed, you must configure it. Add the following to your php.ini file:

geoip.custom_directory=/path/to/piwik/misc
Replace /path/to/piwik with the path to your Piwik installation.

And finally, if you are using the GeoLite City database there is one more thing you need to do. The PECL extension won’t recognize the database if it’s named GeoLiteCity.dat so make sure it is named GeoIPCity.dat.

Restart the webserver and the GeoIP extension should now be loaded and working in Piwik > Settings > Geolocation.

  • 写回答

1条回答

  • qq_18691129 2016-02-22 09:32
    关注

    明天回复 官方的链接http://piwik.org/faq/how-to/#faq_164

    评论

报告相同问题?

悬赏问题

  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch