Click to See Complete Forum and Search --> : apache cgi problem


groundzero
03-22-2001, 01:09 PM
Look at this log entry and tell me what you see thanx:
[Sat Jan 22 07:13:03 2000] [error] (2)No such file or directory: exec of /var/www/cgi-bin/mailform.pl failed
[Sat Jan 22 07:13:03 2000] [error] [client 216.12.87.86] Premature end of script headers: /var/www/cgi-bin/mailform.pl
:eek:
My CGI is failing....... Internel Server Error

Kadesh
03-22-2001, 03:16 PM
When I got internal server errors like that, it was because I used plain old "unzip" instead of "unzip -a". If that's not the case, check your permissions. Also, check your httpd.conf to make sure you have mod_perl and that those <directory ...> </directory> have Options ExecCGI in there.

Red Hat
03-24-2001, 12:55 AM
Originally posted by groundzero:
Look at this log entry and tell me what you see thanx:
[Sat Jan 22 07:13:03 2000] [error] (2)No such file or directory: exec of /var/www/cgi-bin/mailform.pl failed


Change the first line in the script to point to where Perl is on your system. ;)

micxz
03-24-2001, 11:44 PM
Originally posted by groundzero:
Look at this log entry and tell me what you see thanx:
[Sat Jan 22 07:13:03 2000] [error] (2)No such file or directory: exec of /var/www/cgi-bin/mailform.pl failed
[Sat Jan 22 07:13:03 2000] [error] [client 216.12.87.86] Premature end of script headers: /var/www/cgi-bin/mailform.pl
:eek:
My CGI is failing....... Internel Server Error

Is the #!/usr/bin/perl part really point to perl? . If you script isn't a secret could you post it? maybe we can see the problem.

groundzero
03-26-2001, 04:25 PM
I restarted this post.....check here
Thanx,
GZ http://64.4.30.250/cgi-bin/linkrd?_lang=EN&lah=1223ef712409f5bae19278a2d1b33d25&lat=985638252&hm___action=http%3a%2f%2fwww%2elinuxnewbie%2eorg%2 fcgi%2dbin%2fubbcgi%2fultimatebb%2ec gi%3fubb%3dget_topic%26f%3d21%26t%3d001761