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.
Error 500 is an elegant error message to website visitor but it does not help developer like you. :) You may consider viewing the details of the error and debug it by setting up the web.config file. Check out the link below for more information.
http://jeeshenlee.wordpress.com/2010/10/27/how-to-show-the-details-of-error-500-on-web-server/
Tested it on GoDaddy and it’s working. :)