[mapserver-users] php_mapscript not being loaded
Stefan Schwarzer
stefan.schwarzer at unep.org
Mon Jul 9 22:13:56 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!
>>
>
> 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.
Thanks for those hints. But unfortunately, nothing. I checked the Apache error log before, and there is nothing there. At least nothing I think is important. I guess the MaxClients thing is not causing my mapsever to not appear, no?
[Tue Jul 10 07:09:58 2012] [notice] caught SIGTERM, shutting down
[Tue Jul 10 07:09:59 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
WARNING: MaxClients of 150 exceeds ServerLimit value of 133 servers,
lowering MaxClients to 133. To increase, please see the ServerLimit
directive.
[Tue Jul 10 07:10:01 2012] [warn] mod_bonjour: Skipping user 'xxx' - no valid index file.
[Tue Jul 10 07:10:01 2012] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 10 07:10:01 2012] [notice] Digest: done
[Tue Jul 10 07:10:01 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 configured -- resuming normal operations
And the php -i it spitting out a long list, but no errors.
I have actually all PHP, GD, …, Mapserver from Kyngchaos. So, one single source. But strange enough, every computer seems different, and I ran into a couple of challenges.
More information about the MapServer-users
mailing list