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 |
-
Login to www.yours.com
by FTP
-
Put(Copy) LogWriter.cgi to
/home/yours/cgi_bin
-
Create the directory for Witness
Log File
/home/yours/public_html
log
-
Change permission of log
directory
chmod 777 log
or
chmod 775 log
- Change permission of LogWriter.cgi
chgmod 775 /home/yours/cgi_bin/LogWriter.cgi
- 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
- 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.
-
Permission of Witness Log
File, 777
-
Permission of LogWriter.cgi,
755
-
The path of LogWriter.cgi
in html file
-
Witness Log File ends with
.wit
|