[mapserver-users] php_mapscript not being loaded

Stefan Schwarzer stefan.schwarzer at unep.org
Sun Jul 8 22:41:52 PDT 2012


>> 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!




More information about the mapserver-users mailing list