Premature end of script headers...

enri Zhou enri at 163.COM
Mon Jan 3 17:11:27 PST 2005


Hi guys,

I met the same problem when I compiled the MS4.4 on FC3, but at last I
got across it. I found when I compile the cgi and the php_mapscript at the
same time, I always got the problem if I use the cgi mapserv. But if I
complie them separately, it works fine. For your information, here give
you my config(Apache2.0.52, PHP5.0.3 as DSO):

for CGI:
./configure --prefix=/usr --with-freetype --with-zlib --with-png --with-
jpeg --with-xpm --with-libiconv=/usr --with-gd --with-pdf --with-
proj=/usr --with-threads --with-geos=/usr/bin/geos-config --with-
ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-tiff --
with-postgis=/usr/bin/pg_config --with-wfs --with-wcs --with-wmsclient --
with-wfsclient --with-curl-config --with-fastcgi --with-
httpd=/usr/sbin/httpd --with-ming

for php_mapscript

./configure --prefix=/usr --with-freetype --with-zlib --with-png --with-
jpeg --with-xpm --with-libiconv=/usr --with-gd --with-pdf --with-
proj=/usr --with-threads --with-geos=/usr/bin/geos-config --with-
ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-tiff --
with-postgis=/usr/bin/pg_config --with-wfs --with-wcs --with-wmsclient --
with-wfsclient --with-curl-config --with-httpd=/usr/sbin/httpd --with-
ming --with-php=/usr -with-php-regex-dir=/usr/src/php-5.0.3/regex

¡¡¡¡

ZHOU, Xu

======= 2005-01-04 06:06:51 you wrote£º=======

>Hi Jeff,
>
>Did you make you're tmp directory? If you're working with apache, it
>should be in you're htdocs, AND internet users must have (limited) acces
>to this folder. You set this permissions by installing the IIS from win
>xp and then rightclick on the tmp folder. There you chose share for web
>(or something like that). There is another way, but actually, i don't
>know what...
>This is just a guessing, so don't shoot me if I'm wrong ;)
>
>Grtz
>Wouter Schaubroeck
>
>Wim Blanken wrote:
>
>> Hi Jeff,
>>
>> I think mpr.dll is not your problem. Look at the following thread:
>>
>> http://lists.gis.umn.edu/pipermail/mapserver-users/2004-
February/010300.html
>>
>>
>> I quess something else is screwing up your dll-dependencies.....but I
>> have
>> no clue
>> which one...maybe someone else?
>>
>> Regards,
>>
>> Wim Blanken
>> The Netherlands
>>
>> ----- Original Message -----
>> From: "Jeff Portwine" <jdport at VERITIME.COM>
>> To: <MAPSERVER-USERS at LISTS.UMN.EDU>
>> Sent: Monday, January 03, 2005 7:00 PM
>> Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers...
>>
>>
>>> It is giving the error for mapserver.   I actually already had tried
the
>>> dependancywalker program and corrected the missing .dll that you
>>> mentioned.
>>> At this point, it does not show any missing .dll files.   It does,
>>> however,
>>> show one .dll  "red" instead of black like all of the others
>>> (mpr.dll) and
>>> there is a message:  "Warning:  At least one module has an unresolved
>>> import
>>> due to a missing export function in a delay-load dependant
>>> module."     I
>>> really don't know what that means or if that is causing the problem,
>>> but I
>>> searched for a more up to date version of mpr.dll and couldn't find
>>> anything.
>>>
>>> Thanks,
>>> Jeff
>>>
>>> ----- Original Message -----
>>> From: "Wouter Schaubroeck" <wouter.schaubroeck at GMAIL.COM>
>>> To: <MAPSERVER-USERS at LISTS.UMN.EDU>
>>> Sent: Monday, January 03, 2005 12:39 PM
>>> Subject: Re: [UMN_MAPSERVER-USERS] Premature end of script headers...
>>>
>>>
>>>> Hello Jef,
>>>>
>>>> It's important that you know what kind off premature end of scrip
>>>> headers it is, is it mapserv.exe or perhaps php? If its mapserv.exe,
>>>> then you download this program: http://www.dependencywalker.com/.
Check
>>>> what file mapserv.exe is missing, in my case, it was something like
>>>> ms***.dll. Search for the file (even on the internet) en put it in the
>>>> right map.
>>>>
>>>> grtz
>>>> Wouter Schaubroeck
>>>> Belgium
>>>>
>>>> Wim Blanken wrote:
>>>>
>>>>> Hello Jeff,
>>>>>
>>>>> My experience untill now is that you have to copy all dll's into the
>>>>> directory WINDOWS\SYSTEM32.
>>>>> I think that the webserver user (apache?) has no rights to load the
>>>>> dll's
>>>>> from your mapserver directory.
>>>>> How did you install mapserver on linux, did you get compile errors of
>>>>> some
>>>>> kind?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Wim Blanken
>>>>> The Netherlands
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Jeff Portwine" <jdport at VERITIME.COM>
>>>>> To: <MAPSERVER-USERS at LISTS.UMN.EDU>
>>>>> Sent: Monday, January 03, 2005 4:03 PM
>>>>> Subject: [UMN_MAPSERVER-USERS] Premature end of script headers...
>>>>>
>>>>>
>>>>>> I was having a lot of problems with my linux install of mapserver,
>>>>>> simply
>>>>>> trying to get the demo to run, so finally I changed my approach and
>>>>>> attempted to install mapserv on a windows xp web server (apache 2).
>>>>>> When
>>>>>> I run mapserv without any options, I get the proper response from
>>>>>> mapserv
>>>>>> but as soon as I try to make it run the demo, mapserv crashes and
>>>>>> I get
>>>>>> "internal server error" and the following shows up in my web error
>>>>>> logs:
>>>>>>
>>>>>> [Mon Jan 03 09:54:11 2005] [error] [client 208.251.242.95] Premature
>>>>>> end
>>>>>> of
>>>>>> script headers: mapserv40.exe, referer:
>>>>>> http://solo.veritime.com/workshop/
>>>>>>
>>>>>> When I first installed mapserver, I was having the same problem even
>>>>>> when
>>>>>> I
>>>>>> ran mapserv.exe without any options.   Copying all of the dll's into
>>>>>> the
>>>>>> directory mapserv.exe was being called from fixed that... but now
>>>>>> I get
>>>>>> this
>>>>>> as soon as I attempt to view a map.   If anybody has any
>>>>>> suggestions it
>>>>>> would be greatly appreciated, I'm  really struggling to get this
>>>>>> working
>>>>>> and
>>>>>> to learn how to use it.
>>>>>>
>>>>>> Thanks,
>>>>>> Jeff
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

= = = = = = = = = = = = = = = = = = = =



More information about the MapServer-users mailing list