It doesn't look like a problem with your web server (apache) but more a problem
with the script you are trying to run with it.

Try this, create a text file with this information inside it:

#!/usr/bin/perl -w

print ("Content-type: text/html\n\n");
print ("Hello World!\n");

save it in a file called text.pl
run the command
`chmod 755 test.pl`

put it in your cgi-bin directory, then go to it using a web broswer, it should
work.  If not, send the error messages from your error_log

Have you tried configuring the shopper cgi script?  I honestly don't think it
is a problem with apache, but a issuse with the cgi script that your it's self.

Jack



On Sat, 15 Jan 2000, Joseph T Watson wrote:
> Hello linux-newbie,
> 
> I am trying to set up RedHat 6.1's httpd to handle cgi.  I must
> have something wrong in access.conf, or srm.conf or something because
> here is the error that I get when I try a test script.  The Directory
> and file is most definitely there and the permissions are the friendly
> 755.  Hear is the error.
> 
> [Mon Jan 10 22:30:31 2000] [error] (2)No such file or directory:
>      exec of /home/httpd/cgi-bin/shopper.cgi failed
> [Mon Jan 10 22:30:31 2000] [error] [client 10.10.200.5]
>      Premature end of script headers: /home/httpd/cgi-bin/shopper$
> 
> Here are the entries that I have in httpd.conf that I think are
> relevant.
> 
> ......
> LLoadModule   cgi_module     modules/mod_cgi.so
> LoadModule   perl_module    modules/libperl.so
> ......
> AAddModule    mod_cgi.c
> AddModule    mod_perl.c
> .......
> 
> Here are the entries that I have in srm.conf that I think are
> relevant.
> 
> .......
> DDocumentRoot /home/httpd/html
> ......
> SScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> ......
> AAddHandler cgi-script .cgi
> ......
> 
> Here are the entries that I have in access.conf that I think are
> relevant.
> 
> ......
> <<Directory /home/httpd/cgi-bin>
> AllowOverride None
> Options ExecCGI
> </Directory>
> ......
> <<Location /cgi-bin>
> SetHandler cgi-script
> </Location>
> ......
> 
> If someone
> 
>  Joseph                          [EMAIL PROTECTED]

Reply via email to