-
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
'arform' under cgi directory to hold the form 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
-
arform.cfg
-
arform.cgi
-
Change the permission of config.pl,
arform.cfg,
and arform.cgi by entering the following commands:
-
chmod 644 cgi-lib.pl
-
chmod 644 config.pl
-
chmod 644 arform.cfg
-
chmod 755 arform.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'.
-
Change the permission of
form.htmt by entering the following commands:
The directory structure of 'arform'
looks like :
arform (drwxr-xr-x)
|____admin
(drwxr-xr-x)
|
|___admin.cgi (-rwx-r-xr-x)
|____data(drwxr-xr-x)
|
|___form.htmt (-rw-r--r--)
|____cgi-lib.pl
(-rw-r--r--)
|____config.pl
(-rw-r--r--)
|____arform.cfg
(-rw-r--r--)
|____arform.cgi
(-rwxr-xr-x)
Copyright(C) 2000 Argala.com All rights reserved.