I'm trying to configure my apache server to handle cgi scripts. However I get the 
following error :

**********************************************
[Fri Oct 11 10:40:57 2002] [error] (2)No such file or directory: exec of 
/var/www/cgi-bin/first.cgi failed
[Fri Oct 11 10:40:57 2002] [error] [client 192.168.0.13] Premature end of script 
headers: /var/www/cgi-bin/first.cgi
**********************************************

The script which I am using for testing is given below:

**********************************************
#!/usr/bin/perl
        print "Content-type: text/html\r\n\r\n";
        print "Hello, World.";
**********************************************

The access permissions for the script are: -rwxrwxrwx

I've tried making the following changes to httpd.conf:

*********************************************
ScriptAlias /cgi-bin/ /var/www/cgi-bin/

<Directory /var/www/cgi-bin>
        Options +ExecCGI
</Directory>

AddHandler cgi-script cgi pl

AllowOverride Options
*********************************************

I've also added the line below to .htaccess file:

Options +ExecCGI

The .htaccess earlier contained the line:

deny from all


However all attempts have been totally unsuccesful.
Any solutions will be really appreciated.

Regards
Kapil Karekar
Omkar e-nnovative software solutions
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Tel: (091-022) - 8012861 (O)
     (091-022) - 8677305 (R)

_______________________________________________
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to