What file permissions do I need for my CGI scripts?
CGI scripts must be set with executable file permissions, or requests for the script from the web server will result in an Internal Server Error.
Scripts that need to be executable should have their permission set with chmod 755. This sets the file's permissions so that the file's owner may read, write, and execute the file; and anyone else can only read and execute it