[mapserver-users] unable to start mapserv (FWD)

Hockaday, John JohnHockaday at auslig.gov.au
Thu Nov 15 21:44:13 EST 2001


Teb/Pushkar,

I have the same situation this week.  Here is a snippet of the answer email:

"The problem is that /usr/local/lib is not in LD_LIBRARY_PATH.  If I add
/usr/local/lib to the LD_LIBRARY_PATH then the ./mapserv works if I run it
on the command line.  If I run it as a cgi-bin script it doesn't work.  

I have tracked the problem down to our web user, www, which doesn't have a
shell.  I added and exported the LD_LIBRARY_PATH for the www user but it
still doesn't work because the www user doesn't open a shell as itself to
run the mapserv cgi-bin script.

I then added the following lines to our apache web server:
SetEnv LD_LIBRARY_PATH "/usr/local/lib"
PassEnv LD_LIBRARY_PATH

I stopped and started the apache web server and everything started working.

Thanks to all of you who have responded.  Again it has proven to me that
this is one the most responsive lists with the most knowledgable people on a
subject.

Thanks again.

John Hockaday"

> -----Original Message-----
> From:	teb [SMTP:teb at mallit.fr.umn.edu]
> Sent:	Friday, November 16, 2001 8:13 AM
> To:	mapserver-users at lists.gis.umn.edu
> Cc:	pushkar at ERC.MsState.Edu
> Subject:	[mapserver-users] unable to start mapserv (FWD)
> 
> 
> ------------- Begin Forwarded Message -------------
> 
> Date: Thu, 15 Nov 2001 13:22:19 -0600 (CST)
> From: Pushkar Pradhan <pushkar at ERC.MsState.Edu>
> Subject: unable to start mapserv
> To: mapserver-info at lists.gis.umn.edu
> MIME-Version: 1.0
> Content-MD5: e9Z86WjLwFYy23BEVvDHuQ==
> 
> Hi,
> I have successfully compiled mapserv and other executables. I have copied 
> mapserv to the cgi-bin directory of my apache server (apache_1.3.22).
> However 
> when I request mapserv, I get an internal server error. 
> I am running my server on solaris 8. 
> I looked up apache's help for running cgi programs. I was able to run
> other cgi 
> programs successfully. This is what the log file says:
> ld.so.1: mapserv: fatal: libpng.so.2: open failed: No such file or
> directory
> [Thu Nov 15 13:18:11 2001] [error] [client 127.0.0.1] Premature end of
> script 
> headers: /rstc/user1/erc/pushkar/apache_1.3.22/cgi-bin/mapserv
> 
> Could anyone please help me out. Thanks,
> --------------------------------------------------------------------------
> ----
> PUSHKAR S. PRADHAN
> Master's Candidate in ELECTRICAL ENGINEERING,
> MISSISSIPPI STATE UNIVERSITY,
> STARKVILLE, MS 39759.
> 
> Engineering Research Center
> Box 9627
> Mississippi State, MS 39762-9627
> --------------------------------------------------------------------------
> ----
> 
> 
> ------------- End Forwarded Message -------------
> 



More information about the mapserver-users mailing list