-
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
'arcount' under cgi directory to hold the counter 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:
-
1.dat
-
cgi-lib.pl
-
arcount.cfg
-
arcount.cgi
-
Change the permission of 1.dat, cgi-lib.pl,
arcount.cfg,
and arcount.cgi by entering the following commands:
-
chmod 666 1.dat
-
chmod 644 cgi-lib.pl
-
chmod 644 arcount.cfg
-
chmod 755 arcount.cgi
-
Create subdirectories admin
under the directory created in step 3 by entering the following
commands:
-
Change the permission of the
above subdirectories by entering the following commands:
-
Upload admin.cgi in
ASCII
mode to the subdirectory 'admin'.
-
Change the permission of admin.cgi
by entering the following command:
-
Create subdirectories images
under the directory created in step 3 by entering the following
commands:
-
Change the permission of the
above subdirectories by entering the following commands:
-
Upload the following images in BINARY mode to the images directory :
-
0.gif
-
1.gif
-
2.gif
-
3.gif
-
4.gif
-
5.gif
-
6.gif
-
7.gif
-
8.gif
-
9.gif
The directory structure of 'arcount'
looks like :
arcount (drwxr-xr-x)
|____admin
(drwxr-xr-x)
|
|___admin.cgi (-rwx-r-xr-x)
|____images
(drwxr-xr-x)
|
|___0.gif (-rwx-r-xr-x)
|
|___1.gif (-rwx-r-xr-x)
|
|___2.gif (-rwx-r-xr-x)
|
|___3.gif (-rwx-r-xr-x)
|
|___4.gif (-rwx-r-xr-x)
|
|___5.gif (-rwx-r-xr-x)
|
|___6.gif (-rwx-r-xr-x)
|
|___7.gif (-rwx-r-xr-x)
|
|___8.gif (-rwx-r-xr-x)
|
|___9.gif (-rwx-r-xr-x)
|____1.dat
(-rw-r--r--)
|____cgi-lib.pl
(-rw-r--r--)
|____arcount.cfg
(-rw-r--r--)
|____arcount.cgi
(-rwxr-xr-x)
Copyright(C) 2000 Argala.com All rights reserved.