In order to use these automated tools you must have the following PERL
modules on your server:


perl 5.00404 : These are command line tools that are dependent upon perl.

DBI-1.06+ : These are the perl modules used by WWWThreads to 
communicate with the SQL server.
http://www.perl.com/CPAN/modules/by-module/DBI/

The DBI-SQL driver.  If you are using mySQL then you can grab the Msql-Mysql
modules
http://www.perl.com/CPAN-local/modules/by-module/Mysql/

Data-Dumper-2.09+  :
http://www.perl.com/CPAN-local/modules/by-module/Data/

Data-ShowTable-3.3+ :
http://www.perl.com/CPAN-local/modules/by-module/Data/

Follow these steps in the order listed below:

1.  If the SQL server is not already installed then you need to install the
SQL server. 

2.  Make sure perl version 5.004 is installed properly on your machine.  If it 
isn't, be sure to update your package.  To find out where perl is located, type
whereis perl or which perl.  You can get the latest version of perl at 
http://language.perl.com/info/software.html

3.  Install the DBI package.

4.  Install the Data-ShowTable and the Data-Dumper modules.

5.  Install the SQL driver modules.  When you are prompted for which modules 
you want to install, choose item number 1. 

Installation Procedures for the above modules are included in each of their
respective packages.  

--------------------------------------------------------------------------


1.  Edit the w3tvars.pm file to fit your server config.

2.  Change the file permissions on all of the .pl files so that they can be read
and executed by everyone.  You can do this by issuing the command chmod 755 *.pl

3.  If you set $config[subscriptions] to 1 then you need to set up the cron
task to run subscriptions.pl nightly.  You need to edit /etc/crontab so the 
script will run nightly.  Something like the following will work on most 
systems. 

0 1 * * * root /home/httpd/html/wwwthreads.com/php/cron/subscriptions.pl 

You would possibly need to change the path to the script or the user it runs as,
 but this would run the script at 1 AM every morning.

You also might need to edit unshift line in subscriptions.pl.  You might need 
to change the path to the actual location of the main wwwthreads directory:

    unshift(@INC, "/home/httpd/html/wwwthreads.com/php/cron");

9. If you want to have nightly expiration of outdated threads you will need
to set up doexpire.pl to run out of cron as well.  You need to edit 
/etc/crontab so the script will run nightly. Something like the following will 
work on most systems:

0 2 * * * root /home/httpd/html/wwwthreads.com/php/cron/doexpire.pl

You would possibly need to change the path to the script or the user it runs as,
 but this would runn the script at 2 AM every morning. 

You also might need to edit unshift line in doexpire.pl.  You might need
to change the path to the actual location of the main wwwthreads directory:

    unshift(@INC, "/home/httpd/html/wwwthreads.com/php/cron"); 


