Archives for : PHP

Using php5-geoip on Debian

Here is a straight way to get a fully functionnal GeoIP module for PHP5 on Debian:

apt-get install php5-geoip geoip-database-contrib

The second package is actually a download facility to fetch the various free databases from Maxmind. Once it’s done, edit the php.ini configuration file to append:

geoip.custom_directory = "/usr/share/GeoIP/"

Reload the web server and it should now work.

ownCloud media player not working?

Thanks to this post on the ownCloud ML, if you have troubles using the embedded media player, install the getid3 PHP extension (Debian package php-getid3) and it should works.
Successfully tested on ownCloud 3.0.2.