corner1.gif (159 bytes) corner2.gif (159 bytes)

<< Previous Page
Permissions

Index

 

    4.1 CGI Script Installation Trouble Shooter
           4.1.1 Full Server Paths
           4.1.2 File & Directory Permissions
           4.1.3 Getting it right

 


4.1 CGI Script Installation Trouble Shooter

If you just can’t get it right then something to remember is that the programmer who wrote the script won’t go through all the trouble to write the script and distribute it as broken. It would defeat the purpose of offering the script. In this section we’ll look in detail at the most common problems when installing CGI Scripts. Don't give up! It gets really easy once you've installed a couple of scripts and scripts are usually valuable extra's that you can add to your site.

4.1.1 Full Server Paths

What is a full server path?

A full server path is the full path to a specific directory. In windows and probably 99% of all operating systems you get directories and files. Each directory or file has a path. For example, Microsoft Windows will usually be installed in the following path:
c:\windows
The above path can be thought of as the full server path where Microsoft Windows has been installed.

Let’s say you installed a game called ‘Space Invaders’. You placed the games in this location:
c:\games\space-invaders
The above can be thought of as the full server path to where the game called ‘Space Invaders’ is installed.

In unix and on most Windows systems the full server paths for CGI Scripts would normally need to be written as:
c:/windows
--or--
c:/games/space-invaders
Remember that the slash character is different.

In Unix or Linux there is normally no drive letter. The following are examples of full server paths in Linux or Unix based systems.
/home/httpd/htdocs
--or--
/home/somedomain.com/www/cgi-bin

How to find out what the full server path to a directory is on your host.

Let’s say that you are installing a script. Somewhere you have to supply a full server path to a directory you have created. If you don’t know the full server path to the specific directory the best thing to do would be to contact your host and ask them for the full server path to your Home directory. Also explain to them that you will need this path because you would like to install a CGI Script that requires a full server path to a directory that you have created.

When your host provides you with the full server path, you can easily determine what the full server path will look like to the directory you had to create for the script installation.

One of the main causes of CGI Scripts not working is due to incorrect full server paths being used. When you run into trouble with a CGI Script installation always double check the full server paths you supplied when you installed the script.

4.1.2 File & Directory Permissions

On Unix or Linux based servers or hosts you will need to set the permissions of files and directories. In many cases it can be incorrect file permissions causing a script not to function as it should. When running into installation problems always check the permissions of files and directories. Go through the installation instructions of the script again, double checking that you have set the file permissions as instructed in the installation instructions.

Remember that files and directories have permission settings. With many script installations you not only have to set permissions of files but you also need to set permissions of directories.

You can find detailed information on how to set file permissions here.

4.1.3 Getting it right

If the script refuses to work and you’re stuck, the best way to solve the problem would be to go through the installation instructions again, carefully, line by line. Read through it and make sure that you understand what is instructed and that you do exactly as instructed.


<< Previous Page
Permissions

Index


 

ffbotl.gif (1447 bytes) FocalMedia.Net Support ffbotr.gif (1456 bytes)