I.ve updated to 4.0.1.
In /home/e-smith/files/primary/cgi-bin/ have the file Edit1.cgi contents:
#!/usr/bin/perl
print "content-type: text/html\n\n";
print "
CGI Test\n";
print "\n";
print "
Hello World!
\n";
print "\n\n";
I ran chmod 755 Edit2.cgi (too much I know but needed to try).
Ran:
perl /home/e-smith/files/primary/cgi-bin/Edit2.cgi
and output looked fine - no errors.
Have in /home/e-smith/files/primary/html/ the file test2.html contents:
CGI Test PageCGI Test Page
Click the button and get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
The lines this error puts in the error.log are:
19 12:04:24 2000] [error] (2)No such file or directory: exec of /home/e-smith/files/primary/cgi-bin/Edit2.cgi failed
[Tue Dec 19 12:04:24 2000] [error] [client 10.0.0.157] Premature end of script headers: /home/e-smith/files/primary/cgi-bin/Edit2.cgi
I can't figure this out. Where could I be going wrong?
Thanks,
-Neil-