Home About Us Web Hosting Plans & Pricing Satisfied Customers Support & Help Contact Us
Active-Sites Support


Help Desk
Publishing your Web Site
Using FTP
Using Frontpage
Using SSL (Secure Web Sites)

Database
MySQL
Domain Names
New Domain Name
Transferring a Domain Name
Domain Registration Agreements

Server Side Includes
Random Image Generator
Random Link Generator
Random Text Generator

General Information
Frequently Asked Questions
Security Advisory Whitepaper

Email
Basic Start
Using Outlook
Using Outlook Express
Using Netscape Messenger

CGI Scripts
Installing your own CGI Scripts
Text Clock
Domain Lookup
Guestbook
Form Mail

If you need to contact us directly, or if you have an emergency with your service, you may call us at the numbers below.

Sales & Customer Service
General Administrative Offices
2431 Becket Circle
Stow, Ohio 44224
330-688-4209


Technical Services & Support
159 East State Street
Barberton, Ohio 44203
216-276-0586


email us at: support@active-sites.com

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.



USER GROUP OTHER
read
write

exec

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.

TODAY'S DATE: 2008-August-28, Thursday, 13:36:28



Copyright 2008 ® Active-Sites.com All Rights Reserved

About Us | Terms Of Use Policy | Privacy Policy | Web Hosting Packages


Contact Us

cheap web hosting by Active-Sites on linux web hosting affordable hosting solutions