On Mon, Mar 01, 2010 at 05:58:45PM -0600, Andres Salazar wrote:
> Iam using OpenBSD 4.6 i386 with apache1, php5-core 5.2.11 and
> pecl-geoip-1.0.7. I cannot get the function below to produce any
> output (blank page) on the web-.. but if I run it by terminal with php
> script.php it does display "GEO-106FREE 20090201 Build 1 Copyright (c)
> 2007 MaxMind LLC All Rights Reserved"
>
> <?php
> error_reporting("E_ALL");
> if (geoip_db_avail(GEOIP_COUNTRY_EDITION))
> print geoip_database_info(GEOIP_COUNTRY_EDITION);
> ?>
>
>
> Has anybody had trouble with the jail on this library in the ports?
You probably need to edit geoip.ini and set
geoip.custom_directory
to the directory where the GeoIP database resides (which should be
within the Apache chroot area).