[mapserver-users] php_mapscript not being loaded

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Jul 9 05:01:41 PDT 2012


On 12-07-09 2:41 AM, Stefan Schwarzer wrote:
> 
>>> But hadn't tested mapserver yet… Did all the installation with the latest Kyngchaos libraries.
>>>
>>> Running  "http://localhost/testphp.php"; but don't see any mapserver or mapscript. Nothing in there.
>>>
>>> There is a "php_mapscript.so" in "/usr/local/php5cgi/lib/php/extensions/no-debug-non-zts-20090626". I added "extension = php_mapscript.so" to php.ini, as well as "extension_dir = "/usr/local/php5cgi/lib/php/extensions"".
>>
>> No need to set extension_dir, it defaults to the correct dir, which is not as you set it but includes the no-debug... subdir.
>>
>>> Restarted the server, "sudo /usr/sbin/apachectl restart".
>>
>> graceful is all that's needed: sudo apachectl graceful, but it probably doesn't matter.
>>
>>> But still no Mapscript in testphp.php… Did it really restart and load php.ini now?. Any way to check that? It should work that way, no?
> 
> No, indeed, didn't matter. Still no mapserver/mapscript appearing in testphp.php. Had added "extension=php_mapscript.so" to php.ini before already.
> 
> What can I do? Thanks for any hints, as I am really stuck!
> 

Whenever I get this stuck with loading mapscript, I try to:

- execute the php executable directly (php -i) and look for an error
message, sometimes it is at the bottom of that generated page
- check the Apache error logs (error.log)

I have seen this problem when users grab PHP from one location, and then
download PHP MapScript from another location - that will make your hair
go grey.

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/






More information about the mapserver-users mailing list