file permissions
When using scripts on your website, you will be required to set file permissions in order for your scripts to run properly on a Unix server. The most common setting for CGI/Perl scripts is 755. When working with scripts, you may receive an Internal Server Error when you try to run it. Many times, this error is caused by improperly set file
permissions.
Permissions:
- Read – 4 or r
- Write – 2 or w
- Execute – 1 or x
- None – 0 or -
- Read permissions are enabled with the number 4 or the letter r.
- Write permissions are enabled with the number 2 or the letter w.
- Execute permissions are enabled with the number 1 or the letter x.
- No permissions are enabled with the number 0 or a dash.
Each of these permissions will be set for each of the following:
- Owner
- Group
- Other
Below is an example of a script that requires the permissions to be set to 755:
7 – Represents the permissions for the Owner (you). The owner has been given Read, Write and Execute permissions. 4+2+1=7.
5 – Represents the permissions for the Group (individuals with access to your server). The Group has been given Read and Execute permissions. 4+1=5.
5 – Represents the permissions for the Others (website visitors). The Others have been given Read and Execute permissions. 4+1=5.
Related posts:
- what is ftpFTP is an acronym for File Transfer Protocol. As the name suggests, FTP is used to transfer files between computers on a network. You can use FTP to exchange files...
- more about ftp clientsTo make an FTP connection you can use a standard Web browser (Internet Explorer, Mozilla Firefox, Google Chrome, Opera etc.) or a FTP Client. To establish an FTP connection you...
- transferring filesTo navigate through your folders, simply double click on them. To transfer your files, either double click on the file or highlight it and then click on the transfer files...
- changing file permissionsIf you would like to set your file permissions through your FTP program, you can do so like this: a. Log into your server and locate the directory that contains...
| Print article | This entry was posted by admin on April 18, 2010 at 14:59, and is filed under learn more about hosting. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.