
Originally Posted by
pzelnip
Okay now the echo script works. Apparently when I changed the permissions they didn't stick as somehow they were reset to 644.
FTP clients may change the permissions of an uploaded file to match the local version, even if the local filesystem doesn't use Unix style permissions.

Originally Posted by
pzelnip
Now my problem is the other script which is in my cgi-bin directory isn't working.
Looking at the raw error logs, I see:
[28/May/2009:18:33:36 -0500] "POST /cgi-bin/mail_form.cgi HTTP/1.1" 404 - "http://pzelnip.x10hosting.com/feedback.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10"
Why there would be a 404 error is beyond me though.
Considering the error page resulting from mail_form.cgi says "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request", the 404 error in the log is probably because there's an error document directive (either in the virtual host configuration or the root .htaccess) that refers to a nonexistent file. Something like:
Code:
ErrorDocument 500 /500.html
The 404 is harmless. If it really bugs you, you can always create a custom error page.

Originally Posted by
pzelnip
The feedback.html file comes up fine, but the script it calls upon isn't working (and I know the script is valid as I have it hosted elsewhere and it works fine).
Edit: and your script had the same problem. Uploaded it, gave it 755 for permissions, and same error.
Hmmm.... Does mail_form.cgi send fatal errors to the browser? If something like the following produces a 500 error, you know the script isn't even being executed.
Code:
#!/usr/bin/perl
use CGI;
use CGI::Carp qw(fatalsToBrowser);
print CGI::header(-type => 'text/html');
print "Success?"
Also, make sure your browser isn't loading the cached error page.