[mapserver-users] php error

bascom49 charles at weareland.com
Wed Jan 13 18:35:05 EST 2010




Alan Boudreault wrote:
> 
> PHP mapscript hasn't been compiled with php 5.2.9. You'll have to 
> rebuild the module with the proper php lib. You probably have a old php 
> 4.x on your system too.
> 
> Alan
> 
> bascom49 wrote:
>> I am installing mapserver 5.4.2. My php version is 5.2.9.
>>
>> I am getting an error message with the following code :
>>
>> php
>> if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
>>             $dllversion = 'php_mapscript.dll';
>> } else {
>>             $dllversion = 'php_mapscript.so';
>> }
>> if (!extension_loaded('MapScript')) {dl($dllversion);}
>> phpinfo();
>> ?>
>>
>> A link to the file producing this error is at :
>> http://174.120.238.19/info.php
>>
>> You can view my php configuration at this link:
>> http://174.120.238.19/info.php
>>
>>
>> Does anyone have experience with the following php issue ?
>>
>>
>> [13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
>> library
>> '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
>>                                                 [13-Jan-2010 14:00:04]
>> PHP
>> Warning:  PHP Startup: UõSHìè: Unable to initialize module
>> Module compiled with module API=20020429, debug=0, thread-safety=0
>> PHP    compiled with module API=20060613, debug=0, thread-safety=0
>> These options need to match
>>
>>
>> Thanks,
>> Charles
>>   
> 
> 
> -- 
> Alan Boudreault
> Mapgears
> http://www.mapgears.com/ 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

I had installing mapscript with php by following this link:
http://mapserver.org/installation/php.html 
and must have misunderstood that I could compile against
php5. I do have a php4 binary on my server. Is this as simple as 
compiling mapserver with the php4 binary to produce php_mapscript.so
and keeping php5 on my system or do I have to reinstall php4 as well ?



-- 
View this message in context: http://n2.nabble.com/php-error-tp4380950p4385574.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list