PHPMapscript CGI =>trouble

William K woklist at CHARTER.NET
Thu Apr 7 00:57:09 EDT 2005


This is the sort of feedback I need to tune my distribution.  So far
it's been tested on a few clean Mac OS X systems (10.3.8).

A few things I can think of-

- when you installed my mapserver package, you also installed my PHP,
gislibs, graphicslibs and postgres?  My PHP probably isn't required -
mapserver doesn't link directly to PHP - but if you use an alternate
PHP, it should be installed in the same default location as in the PHP
source: /usr/local/php.  I think entropy's PHP does, but I haven't
verified that yet.  And the PHP extension folder should be
'extensions/no-debug-non-zts-20020429' in there.  Even if you don't use
postgres, both my PHP and MapServer are linked to it, as well as GDAL.
You don't need to run postgres, just install it.

- check the phpinfo() listing to make sure that php and mapscript are
loading.  I have an example in the PHP and MapServer readmes, but
here's a recap - make a file testphp.php in your home/Sites folder
with:

<?php
dl("php_mapscript.so");
phpinfo();
?>

Point Safari at localhost/~[your_user_name]/phptest.php and you should
see all the gorey details of PHP's configuration, and in there should
be a MapScript section.

- Apple's httpd.conf is set up to use .php as the file extension for
PHP files, not phtml.  Try changing the example files to .php.


On Apr 6, 2005, at 10:17 PM, Wannes Van der Gucht wrote:

> At first I was running mapserver on the stock Apache 1.3.33 that comes
> with Mac
> OS 10.3., but because that was not working I installed Apache 2. The
> itasca demo
> (Mapserver 3.6.4) was working, but when I tried the MSrecipes demo from
> (http://www.mobilegeographics.com/mapserver/) it didn't work. (The
> requested URL
> /cgi/php/MSrecipes/hello.phtml was not found on this server)
>
> Trying to solve the problem I switched back to Apache 1.3.33 and
> installed the
> package at charter.net (after removing previous Mapserver 3.6.4). But
> now I get
> the following error when I try the demo from
> http://mapserver.gis.umn.edu/dload.html:
>
> The server encountered an internal error or misconfiguration and was
> unable to
> complete your request.
>
> Something wrong with the config file? I removed PHP4 and Mapserver,
> got a clean
> httpd.conf file and re-installed PHP4(entropy package) and Mapserver
> 4.4.1
> (charter.net package). I thought that would work but I still get the
> same error!
> Am I in trouble?!
>
> Citeren William K <woklist at CHARTER.NET>:
>
>> Don't know much about PHP + Apache 2 (or the Serverlogistics
>> distributions of these), but I recall that there are issues with
>> running MapServer in Apache 2.  I think?  Can someone else say?
>>
>> But, while their PHP and Apache 2 distributions may be fairly
>> up-to-date, that's a very old MapServer.  Do you have to use Apache 2?
>> I just recently put together a current MapServer package for Mac OS X.
>> MS 4.4.1, includes both CGI MapServer and PHP-MapScript (for PHP as an
>> Apache module, which I also include).  All support libraries included.
>> All made for the stock Apache 1.3.33 that comes with Mac OS 10.3.
>>
>> Check out my MapServer page:
>> <http://webpages.charter.net/kyngchaos/macosx/mapservinstall.html>.

-----
William Kyngesburye <kyngchaos at charter.net>
http://webpages.charter.net/kyngchaos/

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly
what the universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarrely
inexplicable.  There is another theory which states that this has
already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3709 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050406/b6762bc6/attachment.bin


More information about the mapserver-users mailing list