<!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>&nbsp;</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>&nbsp;</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>&nbsp;</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&amp;map_web_imagepath=/home/m/murals/html/tmp/&amp;map_web_imageurl=/tmp/&amp;mode=map">http://murals.bighostbox.com/cgi-bin/mapserv?map=/home/m/murals/html/MapServerRecipes/hello.map&amp;map_web_imagepath=/home/m/murals/html/tmp/&amp;map_web_imageurl=/tmp/&amp;mode=map</A></FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=075540804-15122004><!--StartFragment -->&nbsp;<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>&nbsp;</DIV>
<DIV><SPAN class=075540804-15122004><!--StartFragment -->&nbsp;<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>&nbsp;</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>&nbsp;&nbsp;&nbsp; NAME HELLO<BR>&nbsp;&nbsp;&nbsp; STATUS 
ON<BR>&nbsp;&nbsp;&nbsp; EXTENT 0 0 4000 3000<BR>&nbsp;&nbsp;&nbsp; SIZE 400 
300<BR>#&nbsp;&nbsp;&nbsp; IMAGECOLOR 200 255 255<BR>&nbsp;&nbsp;&nbsp; 
IMAGECOLOR 255 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGETYPE 
GIF<BR>&nbsp;&nbsp;&nbsp; WEB<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
IMAGEPATH 
"/home/m/murals/html/tmp/"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
IMAGEURL "/tmp/"<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEPATH 
"/var/www/html/tmp/"<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL 
"/tmp/"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
LAYER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 
"credits"<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;&nbsp;&nbsp; 
END<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; 
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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Bob Bruce</FONT></SPAN></DIV>
<DIV><SPAN class=075540804-15122004><FONT face=Arial 
size=2>&nbsp;</DIV></FONT></TD></SPAN></BODY></HTML>