[mapserver-users] php_mapscript not being loaded

William Kyngesburye woklist at kyngchaos.com
Tue Jul 10 07:59:53 PDT 2012


On Jul 10, 2012, at 9:15 AM, Stefan Schwarzer wrote:

>>> 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.
>>> 
>> I wonder if Apache is still using the system PHP?  The PHP version at the top of phpinfo() should match what you installed (OS X 10.7 system PHP is 5.3.10, on 10.6 is 5.3.8).
>> 
>> Also, if the Apache log doesn't have anything, look at Console.app to see if there are any system errors (maybe it can't load a needed library).
> 
> Ha, good one. Thanks a lot! Indeed, the phpinfo shows 5.3.8, the php -i shows 5.3.10. I am on OS X 10.7, however. 
> 
> What does that mean? I have a mixture of 10.6 and 10.7 on my machine? I have my Snow Leopard still installed on a spearate drive in the machine; does Apache load the php from there?

My PHP installer is supposed to switch the PHP, but sometimes it doesn't.  Possibly because the apache config file was altered in a way to break my grep.  System updates are not supposed to change the apache config, but it's a possibility.

You can try running the script manually from the PHP disk image:

  sudo /Volumes/PHP\ 5/phpenable.sh cgi5

then

  sudo apachectl graceful


-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Earth: "Mostly harmless"

- revised entry in the HitchHiker's Guide to the Galaxy




More information about the mapserver-users mailing list