-
Use File Transfer Protocol
(FTP) program which is used to create the necessary directories, upload
the files listed in Chapter 3 and set the file permissions. If you cannot
set the file permissions using FTP program, you need to telnet to your
server and change the file permissions.
-
Locate and change to your cgi
directory (usually 'cgi-bin' or 'cgi-local' which depends
on your web host).
-
Create a subdirectory called
'arguest' under cgi directory to hold the guestbook files
by entering the following command:
-
Change the permission of the
directory by entering the following command (Appendix
B explains how to set file permissions):
-
Upload the following files in
ASCII
mode to the directory created in step 3 above:
-
cgi-lib.pl
-
config.pl
-
arguest.cfg
-
arguest.cgi
-
Change the permission of config.pl,
arguest.cfg,
and arguest.cgi by entering the following commands:
-
chmod 644 cgi-lib.pl
-
chmod 644 config.pl
-
chmod 644 arguest.cfg
-
chmod 755 arguest.cgi
-
Create subdirectories admin
and
data
under the directory created in step 2 by entering the following
commands:
-
Change the permission of the
above subdirectories by entering the following commands:
-
chmod 755 admin
-
chmod 755 data
-
Upload admin.cgi in
ASCII
mode to the subdirectory 'admin'.
-
Change the permission of admin.cgi
by entering the following command:
-
Upload the following files in
ASCII
mode to the subdirectory 'data'.
-
display.htm
-
guestform.htm
-
thankyou.htm
-
Change the permission of display.htm,
guestform.htm
and thankyou.htm by entering the following commands:
-
chmod 644 display.htm
-
chmod 644 guestform.htm
-
chmod 644 thankyou.htm
The directory structure of 'arguest'
looks like :
arguest (drwxr-xr-x)
|____admin
(drwxr-xr-x)
|
|___admin.cgi (-rwx-r-xr-x)
|____data(drwxr-xr-x)
|
|___display.htm (-rw-r--r--)
|
|___guestform.htm (-rw-r--r--)
|
|___thankyou.htm (-rw-r--r--)
|____cgi-lib.pl
(-rw-r--r--)
|____config.pl
(-rw-r--r--)
|____arguest.cfg
(-rw-r--r--)
|____arguest.cgi
(-rwxr-xr-x)
Copyright(C) 2000 Argala.com All rights reserved.