hi, 
   i've issued the command perl -w checkusage.cgi and
i'm getting this message:
(offline mode: enter name=value pairs on standard
input)

and i've also check the log file :
error[2] NO such file or directory: exec of
/home/httpd/cgi-bin/checkusage.cgi failed.

premature end of script headers:
/home/httpd/cgi-bin/checkusage.cgi

headers #!/usr/bin/perl

root.root /cgi-bin/checkusage.cgi
nobody.nobody /home/httpd/html/ *.html



--- "Mark Anthony J. Mercado"
<[EMAIL PROTECTED]> wrote:
> On Mon, 19 Feb 2001, Garcia Elizabeth wrote:
> 
> > hi,
> >    how do i do that... what command should i
> issue...
> > i tried perl -c checkusage.cgi on the command line
> and
> > says Syntax OK....
> > 
> 
> syntax is ok but something goes wrong during
> runtime...
> 
> try doing it this way
> 
> perl -w checkusage.cgi
> 
> try making the program run as expected on the
> command prompt. it is easier
> to debug this way. To do this, it may be necessary
> to rig the data first.
> 
> here's a short checklist i use when things go awry
> ...
> 
> 1. does the program run in the command prompt ?
> 2. check the web server's logs for problems...
> 3. are the headers correctly set (the Content-Type :
> ... etc) ?
> 4. is the web server properly configured (is cgi
> allowed , etc)
> 5. does the web server have the necessary privileges
> ?
> 6. check the web server's logs again... and again..
> :)
> 
> to test the item #5 , login as the user that the web
> server is running at
> then run the program at the prompt. so let's say the
> web server is running
> as www, login as first as root (you really need to
> be root (or have root
> privileges to do this) ... then run "su www"
> 
> hth,
> 
> -mark
> 
>
*************************************************************************
>   Mark Anthony J. Mercado                             [EMAIL PROTECTED]
> 
>   Laguna Internet, Incorporated
>   Rm 404 Vega Centre, Lopez Avenue, Los Banos,
> Laguna, Philippines 4030
>   Ph. 63 49 536.0085                              Fax. 63 49 536.0067
>
*************************************************************************
> 
> _
> Philippine Linux Users Group. Web site and archives
> at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to
[EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to