If a script entered in the cgi_bin gives “Internal Server Error” at every attempt that is carried out

All the cgi must:                                                               
1) be transferred via FTP in ASCII or AUTO mode
2) have 755 permissions

See the details on.

If one of these rules is not respected, the detected error will be Internal Server Error.
If the error persists we advise you to use the function "Visualize Errors Log" from the control panel of hosting linux to this address
http://www.yourdomain.com/login.
Similar considerations are valid in the case of script in php which gives Internal Server Error.