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

My counter, bbs, guestbook, etc isn't working.

These problems are generally due to incorrect permissions on either the directory, file(s) or cgi...

How do I use FormMail?

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

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

Can I run my own software on my site?

All plans allow running scripts in languages such as Perl or PHP. You can also run "cron" jobs...

Powered by WHMCompleteSolution