Installation: Perl + CGI by FTP


Here is the environment we use to explain the installation.

Your Web server www.yours.com
Document directory /home/yours/public_html
Directory for Witness Log File /home/yours/public_html/log
Witness Log File name index.wit
Directory for LogWriter.cgi /home/yours/cgi_bin
LogWriter LogWriter.cgi
Method to execute LogWriter CGI
  1. Login to www.yours.com by FTP
  2. Put(Copy) LogWriter.cgi to /home/yours/cgi_bin
  3. Create the directory for Witness Log File

    /home/yours/public_html
    log
  4. Change permission of log directory

    chmod 777 log
    or
    chmod 775 log
  5. Change permission of LogWriter.cgi

    chgmod 775 /home/yours/cgi_bin/LogWriter.cgi
  6. Write tags into html file

    <HEAD>
    </HEAD>
    <BODY>

    <script>
    <!--
    document.write("<IMG SRC=\"/cgi_bin/LogWriter.cgi?log=./log/index.wit&DIFF=JST-&PREV=",document.referrer,"\" width=1 height=1>");
    // -->
    </script>

    At this point, if /home/yours/public_html/index.html is accessed, it invokes /home/yours/cgi_bin/LogWriter.cgi, and /home/yours/cgi_bin/LogWriter.cgi writes log record to index.wit in /home/yours/public_html/log
  7. Access index.html by internet browser
    If installation is successful, you can see log records in /home/yours/public_html/log/index.wit

If no log records found in Witness Log File(index.wit), please check follows.

  1. Permission of Witness Log File, 777
  2. Permission of LogWriter.cgi, 755
  3. The path of LogWriter.cgi in html file
  4. Witness Log File ends with .wit