|
HOME articles tutorials tool directory about |
|
|
|
|
How to Install a Perl CGI Script (continued)Once the file is uploaded, its permissions must be set. Permissions define who can do what to the file. If you don't specify that the script is a file that can be executed, no one will be able to make it run, even though you can see it sitting there using FTP. Setting file permissions can be accomplished using some FTP programs, but if your hosting service has provided you with a control panel for managing your site, you can set the file permissions with that as well.To make the script executable, the command to use on UNIX hosts is chmod 755, which is equivalent to rwxr-xr-x. This means that the file can be read (the r) or executed (the x) by anyone, but only the person who created the file (you) can write (the w) to it. For hosts that are running Windows NT or Windows 2000, you can set the file permissions yourself if you are using Microsoft FrontPage. Otherwise, you will probably have to ask your hosting service to do it for you.
Once you've uploaded the script and its associated files, you should be able to execute it by typing the path of the script into your Web browser like this: http://mysite.com/cgi-bin/myscript.pl
If it won't run at all - for example you get a 500 server error - by far the two most likely causes are:
|
|
|
HOME articles tutorials tool directory about (c) copyright 2000-2010 Anventure. All
Rights Reserved.
|
||