Oz Web Hub : the spot for the web design beginner

Home > Web design

How to chmod a CGI script

 1. Find the location of the Perl program in your server

This is the path of the Perl interpreter in you server. You can get this information by either telnet your server (if you have the access to telnet your server because some servers don't allow you to use this facility) or by asking your system administrator. It may be something like,

# ! /usr/local/bin/perl or

# ! /usr/bin/perl5'

This will vary from server to server.
If you have telnet access you can type the following and you will find the path,

which perl


2. The server path (or root directory path) to your CGI-bin directory.

Remember this is not the URL of your CGI-bin directory, but this is the path of the the cgi-bin directory in your server. Your server administrator should tell you this if they allotted a CGI-bin directory with full access. This may look like

/home/httpd/www/cgi-bin


3. The URL of the cgi-bin directory

I know you are aware of this, you can get this also from these same people. This may be like

http://www.yourdomain.com/cgi-bin/

Now I hope you know the difference between a "Root directory path" and a URL from the two path names above.

After you have uploaded all the scripts and you are using FTP LE you right click on the file on the right of the FTP table. Then you find where it says CHMOD and click on that. At that point this image will show up.

 

how to chmod


This number is 644. How do I know that?

Each read factor = 4, write = 2 and exec =1.

So for owner you have 6, for group you have 4 and for other you also

have 4, all equalling 644.

So if you need another number follow this logic.

read =4, write = 2 and execute = 1 for each category.

Click on boxes to change the number as necessary.

If you have Cute FTP you can put in the numbers manually.

Web design ebook
Codes and scripts

straight to the top

© Jenny Campbell