Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PECL getting marked as "not installed" #6998

Closed
cryptiklemur opened this issue Jan 13, 2015 · 6 comments
Closed

PECL getting marked as "not installed" #6998

cryptiklemur opened this issue Jan 13, 2015 · 6 comments
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@cryptiklemur
Copy link

I installed geoip through pecl, exactly how the instructions say to do it, but i can't seem to use it on the UI

image

Is something not right?

@diosmosis
Copy link
Member

Is it being loaded in your php fpm or cgi's php.ini?

@cryptiklemur
Copy link
Author

i've put it in both fpm/php.ini and cli/php.ini

i've also tried in /etc/php5/mods-enabled/geoip.ini which gets autoloaded.

if it matters, GeoIP (PHP) is marked as installed.

@diosmosis
Copy link
Member

Just to make sure, you restarted php-fpm after editing the INI config right?

Piwik detects the PECL extension by looking for the geoip_db_avail() function. If it says it's not installed, the function must not exist for some reason.

@cryptiklemur
Copy link
Author

yup, restarted several times... not sure why its not showing up as installed.

@cryptiklemur
Copy link
Author

That function definitely doesn't exist though, ill close this out

@diosmosis
Copy link
Member

Can you check what the result of echo (int)function_exists('geoip_db_avail'); is when executed by cli and from php-fpm? Don't add the code to Piwik since you already know it doesn't show up there. Looking at the output of phpinfo() may also help you find the problem. Other than that though, I don't think there's much else I can suggest.

This looks like a server configuration issue, so I'm closing for now. If you find it's caused by a problem in Piwik, feel free to re-open.

EDIT: Beat me to it :)

@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants