[ka-Map-users] Re: Precache.php fails: "This build of mapscript
can't be load as a 'cli' module..."
Steve Walker
walker at mfgis.com
Wed Jul 19 20:26:18 EDT 2006
This problem has been solved.
As suggested and suspected, there was a need to rebuild PHP with Apache
DSO support. It was however not clear to me what changes to the php
configuration were necessary in order to do so.
After reviewing the Mapserver user forurm (in retrospect, this question
would have been better posted there...) I came across the following
thread:
http://lists.umn.edu/cgi-bin/wa?A2=ind0508&L=mapserver-users&P=R32139&I=-3&X=32BE8F099C6A2E2350
Following the lead of the above thread, I downloaded a fresh PHP source
and configured as such:
./configure --with-apxs2=/usr/bin/apxs2
(which is presumably the configuration switch to enable Apache2 DSO
support for PHP4.)
followed, of course, with `make` **BUT NOT `make install` **
This then left me with a compiled php tree sitting in
/home/me/php-4.4.2
I then re-configured and re-built mapserver, making only the following
change:
Replaced --with-php=/usr/include/php4 (the proper install path)
with --with-php=/home/me/php-4.4.2 (my new re-build)
I then copied the newly-built php_mapscript.so to php_mapscript_dso.so and
placed it in the same directory as the original (/usr/lib/php4/20050606)
and modified (copies of) config.php and precache.php to point to
php_mapscript_dso.so
Precache.php is now faithfully churning along as I write this :)
-steve
--
Steve Walker
Middle Fork Geographic Information Services
walker at mfgis.com
360-671-2505
More information about the ka-Map-users
mailing list