| Home | About Us | Web Hosting Plans & Pricing | Satisfied Customers | Support & Help | Contact Us |
| Active-Sites Support | ||||||||||||||||||||
|
Installing Your own CGI Scripts 1. All Perl and CGI files should be uploaded to the /cgi-bin directory. This will ensure that all scripts are executed, however you may place executable scripts in any directory. Here are the paths to the common server resources that CGI scripts require: Sendmail: /usr/sbin/sendmail Perl5: /usr/bin/perl Date: /bin/date Java: /usr/bin/java Python: /usr/bin/python 2. Permissions: Most scripts shouldn't require more then 755 permission settings. DO NOT set your permissions to 777 for executable files, this will disable execution through the web server. a. Explanation of Unix Style File Permissions On Unix and Linux servers there are 3 diffrent types of people. 1. is "U" or user (you) 2. is "G" for group 3. is "O" for others (non server residents or viewers) Now typically when you go to CHMOD a file what you will see is 3 columns and they look like this.
Now your probably saying, why do they say "set permissons to 755 when all I see is text?" Well here is the breakdown of our math. Read = 4 points Write = 2 points Exec = 1 point So when we say 755 which is 3 numbers it really breaks down to the USER GROUP OTHER fields. For U (user) give it 7 points.. ok.. read is 4 and write is 2 and exec is 1 that's 7 points. So for USER it's READ WRITE EXEC are marked. Now for G (GROUP) we request you use a 5 .. READ is 4 points and EXEC is 1 point so that means for GROUP we set READ and EXEC. Last but not least, OTHER. Again you see 5 for OTHER, which just like GROUP means set READ and EXEC permissions only. (other examples, reading permissions) r = 4 w = 2 x = 1 rwx = 7 -rwxr-xr-x Ignore the first dash, then break up the above into three groups of letters. If there's a dash where a letter should be, it means that there is no permission for those people. Remember: the first 3 apply to user, the second 3 apply to group, and the third 3 apply to others. That's all there is to CGI and Permissions. |
|||||||||||||||||||
| Copyright 2008 ® Active-Sites.com All Rights Reserved About Us | Terms Of Use Policy | Privacy Policy | Web Hosting Packages Contact Us |