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.

Where do I put CGI scripts?

Put your cgi-bin scripts in the public_html subdirectory named "cgi-bin".

How do I run my own CGI programs?

Put your CGI programs in the cgi-bin directory. Make sure you upload them in ASCII mode. Change...

Do you offer any ready to run cgi-scripts?

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

How do I use FormMail?

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

Powered by WHMCompleteSolution