What file permissions do I need for my CGI script?

CGIs 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.

Was this answer helpful?

 Print this Article

Also Read

Can I run Perl/CGI scripts outside the cgi-bin?

No, for security reasons all Perl and CGI scripts must be run from your cgi-bin folder.

How do I use FormMail?

FormMail-clone is clone of Matt Wright's FormMail.cgi under a less restrictive license. It should...

Do you offer any ready to run cgi-scripts?

Yes, we offer several ready to run scripts with our hosting plans. These scripts include...

What type of CGI can be allowed?

You can use Perl or PHP scripts. We keep both languages updated to the latest stable versions.

What is CGI access?

CGI scripts (Common Gateway interface) are used to provide things like counters, form responses,...

Powered by WHMCompleteSolution