<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=380505216-15122004><FONT face=Arial color=#0000ff size=2>Can
you/have you done an ldd on the mapserv executable? Does it run at the command
live with mapserv -v ? I susspect that mapserv is missing a shared object. It
may be possible that your shell environment has a proper LD_LIBRARY_PATH but
your webserver doesn't. Do your httpd error logs have any additional info? My
experience is that the error log will just have an "ended prematurely"
error in the case of the library path problem. Most of the time when you get a
500 error I find that the CGI core dumped.</FONT></SPAN></DIV>
<DIV><SPAN class=380505216-15122004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=380505216-15122004><FONT face=Arial color=#0000ff
size=2>-e</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Bob
Bruce - Programmer<BR><B>Sent:</B> Tuesday, December 14, 2004 10:52
PM<BR><B>To:</B> MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B>
[UMN_MAPSERVER-USERS] Internal Server Error - UNIX CGI - But not PHP
MapScript<BR><BR></FONT></DIV>
<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></BLOCKQUOTE></FONT></TD></SPAN></BODY></HTML>