There was a problem loading the comments.

How do I set permissions on files and scripts?

Support Portal  »  Knowledgebase  »  Viewing Article

The Chmod command (changing a file's permissions) sets the level of access available for a file. This tutorial shows the process in one of the most common FTP applications called WS_FTP but the process is very similar with other FTP clients.

First, connect to your hosting via FTP using the settings provided in your setup email. Next click on the directory you have placed the CGI script in and right-click on the file you would like to set permissions for. The right-click menu is then displayed, and by clicking the "chmod" option we get to the main part of doing a chmod.

The new menu that appears has three columns - Owner, Group, and Other. Each column has three checkboxes below them - Read, Write, and Execute. eg for CGI scripts needing 755 permission - In the "Owner" column, check all three boxes. In the "Group" column check the first and third checkboxes. In the "Other" column, check the first and third boxes.

Finally, click "OK" to complete the chmod. Test your script or file again by calling it from your web browser. Everything should work correctly, but if you are still seeing an Error 500 Server Error, it isn't due to your permissions.

Share via
Did you find this article useful?  

Related Articles

© Eco Web Hosting