PreviousNextHome

5. Installation
  1. 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.
  2. Locate and change to your cgi directory (usually 'cgi-bin' or 'cgi-local' which depends on your web host).
  3. Create a subdirectory called 'arcount' under cgi directory to hold the counter files by entering the following command:
  4. Change the permission of the directory by entering the following command (Appendix B explains how to set file permissions):
  5. Upload the following files in ASCII mode to the directory created in step 3 above:
  6. Change the permission of 1.dat, cgi-lib.pl, arcount.cfg, and arcount.cgi by entering the following commands:
  7. Create subdirectories admin under the directory created in step 3 by entering the following commands:
  8. Change the permission of the above subdirectories by entering the following commands:
  9. Upload admin.cgi in ASCII mode to the subdirectory 'admin'.
  10. Change the permission of admin.cgi by entering the following command:
  11. Create subdirectories images under the directory created in step 3 by entering the following commands:
  12. Change the permission of the above subdirectories by entering the following commands:
  13. Upload the following images in BINARY mode to the images directory :
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)


http://www.argala.com PreviousNextHome
Copyright(C) 2000 Argala.com All rights reserved.