I get a Server Error when I run my cgi script. How can I fix that?
First, make sure that the permissions on the file are set properly for execute permission. By default, the permissions are 644 (rw-r–r–) and do not allow execution. You need to change the permissions, or the mode, on your cgi script to 755 (rwxr-xr-x). Some FTP programs allow you to change file permissions, if yours doesn’t, then you can use the File Manager in your Control Panel to change the permissions. Second, make sure that you uploaded your cgi file using ASCII mode instead of Binary mode. If the permissions are set properly and you uploaded the file properly, then the Error Log may give you an indication about what and/or where the problem is that is causing the Server Error. On cPanel accounts, log into your Control Panel to view the contents of the Error Log. On Ensim accounts, the error log is /var/log/httpd/error_log.