Why are my scripts displaying “500 Internal Server Error”s?
CGI scripts need to be uploaded in ascii format. Delete the uploaded file and re-upload in ascii. Uploading in binary (or image) format is usually the cause of the error. Also check the file permissions on the script and make sure that they are set to 755. You can change the permissions through your FTP client or by clicking on the filename in cPanel’s File Manager and clicking ‘Change Permissions’ on the right hand side.