500 error with GoDaddy’s form mail
I was getting a 500 error when trying to submit a form mail from my web site via GoDaddy’s gdform.cgi. I turned on error logging and this is what showed up:
SoftException in Application.cpp:624: Could not execute script "/home/content/a/r/d/ardamis/html/cgi/gdform.cgi"
Caused by SystemException in API_Linux.cpp:430: execve() for program "/home/content/a/r/d/ardamis/html/cgi/gdform.cgi" failed: Permission denied
[Sun Dec 2 01:34:05 2007] [error] [client 76.224.44.87] Premature end of script headers: /var/chroot/home/content/a/r/d/ardamis/html/cgi/gdform.cgi
After some Googling, I changed the permissions on gdform.cgi to Executable by Owner and that fixed the problem. I don’t know if this exposes me to any security risks, but at the very least I should probably move or rename my scripts.
