Hello, I have CGI scripts that I am trying to run but I just get 500 Internel Server Error on them. I have them in the cgi-bin directory and I call them correctly. I run Plesk 8.0.1 Can anyone suggest the problem?
Have you made sure they are chmod 755? You should check your server's error_log as well. Just about any error, whether it be bad permissions, or bad code will return a 500 error.
Are you giving out proper header? Like: print "Content-type: text/html\n\n"; You can also try: Open the script in your text editor, and under the path to Perl on the first line, place this: use CGI::Carp qw(fatalsToBrowser); This should show you the reason for the error, and it will be easier to fix. Then upload the script again, set it to executable and point your browser Make sure to remove that line once you have the error known. Bye