httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artiom Morozov <art...@phreaker.net>
Subject Re: Apache 2.0, CGI, and error 500
Date Sun, 17 Mar 2002 12:02:21 GMT
Ok, then i'd advise you to use strace(1) to attach to server children 
and see what's going on. See man strace

On 2002.03.17 13:31 Mike Price wrote:
> LogLevel IS at debug and ScriptLog IS set. The
> log file appears:
> 
> %% [Sun Mar 17 03:19:06 2002] GET /cgi-bin/shscript
> HTTP/1.0
> %% 500 /home/httpd/cgi-bin/shscript
> %request
> Referer: http://www.---.com/Home.html
> Connection: Keep-Alive
> User-Agent: Mozilla/4.79 [en] (WinNT; U)
> Host: www.---.com
> Accept: image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, image/png, */*
> Accept-Encoding: gzip
> Accept-Language: en
> Accept-Charset: iso-8859-1,*,utf-8
> Extension: Security/Remote-Passphrase
> %response
> 
> Note that nothing follows the %response line - the
> script appears not to produce any output. If I run
> the script as the server user, it works fine. The
> script file is NOT being accessed (as reported by ls
> -lu).
> 
> --- Artiom Morozov <artiom@phreaker.net> wrote:
> > Ok, you're at the final stage - set LogLevel to
> > debug and enable
> > ScriptLog (beware of permissions for scriptlog! =).
> > There then will
> > your answer be (excuse my english ;-)
> >
> > On 2002.03.17 13:17 Mike Price wrote:
> > > I checked httpd -l and it's using mod_cgi.
> > >
> > > --- Artiom Morozov <artiom@phreaker.net> wrote:
> > > > probably you compiled mod_cgid instead of
> > mod_cgi
> > > >
> > > > îÁ 2002.03.17 12:57 Mike Price ÎÁÐÉÓÁÌ:
> > > > > I am unable to get CGI programs to work under
> > > > > Apache 2.0.32. All of these programs work
> > under
> > > > > Apache 1.3.23. Under 2.0.32 they all produce
> > error
> > > > > "500 Premature end of script headers". The
> > > > ScriptLog
> > > > > output shows nothing following the %response
> > line
> > > > -
> > > > > the scripts produce no output at all. An "ls
> > -lu"
> > > > > shows
> > > > > that the script files are NOT being accessed.
> > The
> > > > > error log shows the correct file name for the
> > > > script -
> > > > > it's as though Apache cannot execute the file.
> > > > > Permissions are 755 on the scripts and 711 on
> > the
> > > > > directory. User/group is consistent on both
> > and
> > > > > different from the server user/group.
> > ScriptAlias
> > > > > points to the directory.
> >
> >
> >
> ---------------------------------------------------------------------
> > The official User-To-User support forum of the
> > Apache HTTP Server Project.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message