<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>My hosting provider
has tried to set up MapServer on a UNIX server but we have run into this
problem. I can run the the PHP MapScript MapServerRecipe examples fine but when
I try to run the MapServer CGI I get this problem. I tried to run the Itasca
workshop example and it gave this "Internal Server Error" so then I tried to run
the most basic case of the the CGI in mode=map and it still gave this
error.</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>The strange thing is
that I used exactly the same map with the first PHP Mapscript MapServerRecipe
example and it worked great. After reviewing similar error reports in the
Listserv I cannot come up with a solution, so I'm asking for help from somebody
out there.</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>My url to attempt to
generate the most simple mode=map image is:</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2><A
href="http://murals.bighostbox.com/cgi-bin/mapserv?map=/home/m/murals/html/MapServerRecipes/hello.map&map_web_imagepath=/home/m/murals/html/tmp/&map_web_imageurl=/tmp/&mode=map">http://murals.bighostbox.com/cgi-bin/mapserv?map=/home/m/murals/html/MapServerRecipes/hello.map&map_web_imagepath=/home/m/murals/html/tmp/&map_web_imageurl=/tmp/&mode=map</A></FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>(when I send the
same URL on my Windows server, with the directory names changed for the Windows
system, it displays the image properly, which leads me to believe that the map
file is OK)</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>however when I run
the php script that uses this same map file:</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2><A
href="http://murals.bighostbox.com/MapServerRecipes/hello.phtml">http://murals.bighostbox.com/MapServerRecipes/hello.phtml</A></FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>it works OK.
</FONT></SPAN><SPAN class=075540804-15122004><FONT face=Arial size=2>The world
protection on my html directory is: r-x , the world protection on my cgi-bin
directory is: r-x and the world protection on the mapserv CGI file in this
directory is: r-x. The world protection on the tmp directory where the map image
files are stored is: rwx. So I'm assuming that the protections are set up
OK.</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>When I run phpinfo()
(which you can see by going to: <A
href="http://murals.bighostbox.com">http://murals.bighostbox.com</A>), I
get:</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><!--StartFragment --> <TD
class=e>MapServer Version </TD><TD class=v>MapServer version 4.4.0 OUTPUT=GIF
OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG
INPUT=SHAPEFILE</SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><!--StartFragment --> <TD class=e>PHP
MapScript Version </TD><TD class=v>($Revision: 1.220 $ $Date: 2004/11/16
17:23:13 $)</TD> </SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>The map file
is:</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2>MAP<BR> NAME HELLO<BR> STATUS
ON<BR> EXTENT 0 0 4000 3000<BR> SIZE 400
300<BR># IMAGECOLOR 200 255 255<BR>
IMAGECOLOR 255 0 0<BR> IMAGETYPE
GIF<BR> WEB<BR>
IMAGEPATH
"/home/m/murals/html/tmp/"<BR>
IMAGEURL "/tmp/"<BR># IMAGEPATH
"/var/www/html/tmp/"<BR># IMAGEURL
"/tmp/"<BR> END<BR> <BR>
LAYER<BR> NAME
"credits"<BR> STATUS
DEFAULT<BR> TRANSFORM
FALSE<BR> TYPE
ANNOTATION<BR>
FEATURE<BR>
POINTS<BR>
200 150<BR>
END<BR> TEXT
'Hello world. Mapserver
rocks.'<BR>
END<BR>
CLASS<BR>
LABEL<BR>
TYPE
BITMAP<BR>
COLOR 0 0
0<BR>
END<BR> END<BR>
END<BR>END<BR></FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial size=2>thanks, in advance,
for your help,</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2>
Bob Bruce</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial
size=2> </DIV></FONT></TD></SPAN></BODY></HTML>