Install file for PRE-0.2


To run PRE, install the package somewhere accessible by the apache server. So far it works on both Apache 1 and 2. Before running open a console and edit the files described bellow located in the root of the PRE installation

###########################################
#  Edit ssh2server.inc.php
###########################################

#You might have to completely remove (comment this) if your ssh2 libraries are installed systemwide
#Modify This
dl ("../../../../../apps/ssh2-0.10/modules/ssh2.so");

#These fields are the host,user and pass fo the database server
#Modify This
$dbhost = "";
$dbuser = "";
$dbpass = "";

#This is the upload temporary directory. Change to something where the connecting user has read/write access
#Modify This
$uploaddir = $_SERVER['DOCUMENT_ROOT']."/dev/PRE/tmp/";

#This is the system wide ssh user and pass
#Modify This
$ssh2user = "";
$ssh2passwd = "";
$ssh2host = "";


###########################################
#  Edit prec/ssh2compute.inc.pl
###########################################

#It is required that the user for the database must be also located on any remote machine
#Modify This
$dbuser = '';
$dbpwd = '';
$dbserver = '';

#Limit the time files can stay in the storage
#Maximum 365 days
#Modify This
$cronlim = '';


Once this is done, copy the directory prec, to every machine that you want to be able to use as a remote compute node. Remember, that PRE-academic version supports only a single ssh user throught the whole network. Also, the dbuser must be the same on all machines. Once you copied the files on the remote machines, you must open a browser and add machines and commands to your database. The machines are the machines that have the prec folder copied onto and allows the ssh2 user to connect.

Also, if you wish to have your compute nodes cleaned regularly you can run the compute script 'ssh2.cron.pl --init'. This will generate the correct crontab and will clean every friday at midnight the stored results.

Done

for any questions email denabhoth@yahoo.com



