[ka-Map-users] Re: Precache.php fails: "This build of mapscript can't be load as a 'cli' module..."

Paul Spencer pspencer at dmsolutions.ca
Wed Jul 19 22:28:48 EDT 2006


Thanks Steve.  Would you be willing to make a page in the wiki with  
this information?

http://ka-map.ominiverdi.org/wiki/index.php/Main_Page

perhaps linking from the troubleshooting and pre-caching system pages?

Cheers

Paul

On 19-Jul-06, at 8:26 PM, Steve Walker wrote:

> 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
>
>
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+






More information about the ka-Map-users mailing list