WebRefer Installation Guide

This manual is for system administrator to install WebRefer as a remote service in the form of ASP (Application Service Provider). Such installation enable your web site to host WebRefer service for your web pages.

Requirements

  1. A web server (HTTP)
  2. A mail server (SMTP)
  3. PHP should be supported.
  4. The mail() in PHP should be configured to use your SMTP server. By default, PHP will take care of this. But if you want to get more details, please check here: http://www.php.net/manual/en/ref.mail.php
  5. To enable logging, you should allow PHP to write text log into disk.
  6. Have gnu WGET ulility installed. http://www.gnu.org/software/wget/wget.html

Installation

  1. Get the package: http://saintus.com/webrefer/download.php Select the server modules and download it.
  2. Extract the web_refer.tgz to a web server document directory.
  3. Suppose your HTML documents is installed under "/usr/local/apache/htdocs", and you extract WebRefer under "/usr/local/apache/htdocs/WebRefer/".
  4. Edit "/usr/local/apache/htdocs/WebRefer/web_refer.conf". Replace the value of variable "$WGET_BIN" to the file path where "wget" located.
  5. Review "/usr/local/apache/htdocs/WebRefer/conf/host.list" and "/usr/local/apache/htdocs/WebRefer/cont/client.list" to set appropriate access control.
  6. Download the "embeded HTML" from http://saintus.com/webrefer/manual/sample.zip

Create WebRefer embeded text

    Edit "/usr/local/apache/htdocs/WebRefer/sample.txt":
  1. Replace all occurrances of http://saintus.com/web_refer/web_refer.gif with your own image, i.e. http://host.yourdomain/WebRefer/web_refer.gif
  2. Replace all occurrances of http://saintus.com/web_refer/mail_form with your own image, i.e. http://host.yourdomain/WebRefer/mail_form.php
  3. Review the "embeded HTML" varialbes before releasing embed HTML code file to your web designer. For the meanings of variables, please read user's manual.

Access log

You can find detailed access log at "/usr/local/apache/htdocs/WebRefer/log". The log is grouped by month. Each line is an entry. Each entry is consisted of these attributes:

Language support

WebRefer is designed to support multi-languages. You can create your own language interface by adding a message table file.

For example, suppose you want to add an Arabic interface. Please check the content of "/usr/local/apache/htdocs/WebRefer/conf/msg_table.en". Create a new file named "/usr/local/apache/htdocs/WebRefer/conf/msg_table.arabic". Translate each line of original msg_table.en into msg_table.arabic.

Change the variable "language" in the embeded WebRefer script in web pages. Set its value to "arabic".