next up previous
Next: Beginning CGI Programming in Up: CGI Scripting Previous: CGI Scripts on Macintosh

CGI Scripts on UNIX

The process of installing CGI scripts is similar to that of HTML pages, except different directories and URLs are used.

project_cgi-bin
-- Files place in this directory will be accessible only within the department.

public_cgi-bin
-- Files place in this directory will be viewable on the whole Internet. This is where you would create your Home Page.

Creating a project_cgi-bin

Initially you will have to create and change access permissions on a project_cgi-bin.

All CGI scripts should be placed in a directory project_cgi-bin.

Here's how to create the directory:

Running Individual CGI scripts

Simply place (FTP) the CGI script in the project_cgi-bin.

Every CGI script will need to have certain access modes changed. This can be done from Macintosh (with Fetch) or on UNIX (via BetterTelnetPPC connection).

To set file access modes from Fetch (just before FTP transfer):

To Set CGI file permissions from UNIX:

You should now be able to access the script using URL: http://www.cs.cf.ac.uk/User/A.B.Surname


next up previous
Next: Beginning CGI Programming in Up: CGI Scripting Previous: CGI Scripts on Macintosh
Dave Marshall
9/28/2001