Setting up a new server

To run ResourcePlanner, you need a web server, and a copy of MySql server version 4.1 or later. Any web server which will run CGI executables will do, but Apache is probably the simplest to set up (and is free). Currently supported operating systems for the server are x86 Linux and Microsoft Windows. Clients may use any O/S, although full drag and drop functionality is currently only available in selected browsers at the moment.

The instructions that follow assume you are reasonably familiar with installing programs on your server, and running programs from the command line.

Setting up a Linux server

Requirements: No particular tuning of MySQL is required - all you need is a root or other login with permission to create databases and users.

For Apache, you need to change or add the following settings in the Apache configuration file (usually httpd.conf or apache.conf, in /etc or /etc/httpd or /etc/apache, depending on the distribution of Linux you are running).

Setting up a Microsoft Windows server with Apache

Requirements: No particular tuning of MySQL is required - all you need is a root or other login with permission to create databases and users.

For Apache, you need to change or add the following settings in the Apache configuration file (C:\Program Files\apache group\apache2\conf\httpd.conf), and you need to make sure Apache is running as a service.

Tips:

Setting up a Microsoft Windows server with IIS

Requirements: No particular tuning of MySQL is required - all you need is a root or other login with permission to create databases and users.

Creating a new plan

Start mysql as root (or another user with full privileges), and perform the following commands:
CREATE DATABASE demo;
GRANT ALL PRIVILEGES ON demo.* TO 'resplan'@'%';
SET PASSWORD for 'resplan' = PASSWORD('SteveLee');
The above commands assume you wish to create a new database called >demo, and your standard ResourcePlanner SQL user name and password are resplan and SteveLee respectively.

Now you have created the database, load it with empty tables using the following command:

mysql -uresplan -pSteveLee demo <resplan.create.sql
You also need to add a URL to your home page to point to the new plan, which should look like this:
<A HREF="http://your.server.com/resplan/?DBNAME=demo">Resource Planner</A>

Configuring ResourcePlanner

You will find a file called ".resplan.cfg" in your /resplan directory - this contains configuration information for ResourcePlanner. It can be edited with any text editor, and contains the following configuration variables:
CGI_DIR
This should be set to the pathname of the Apache (or other web server) cgi-bin directory, followed by "/resplan/" - e.g. /usr/lib/cgi-bin/resplan/ or C:/Program Files/Apache Group/Apache2/cgi-bin/resplan/.
WWW_DIR
This should be set to the pathname of the Apache (or other web server) document root directory, followed by "/resplan/" - e.g. /var/www/resplan/ or C:/Program Files/Apache Group/Apache2/htdocs/resplan/.
TEMPLATE_DIR
This should be set to the ResourcePlanner template directory - e.g. /usr/lib/cgi-bin/resplan/templates/ or C:/Program Files/Apache Group/Apache2/cgi-bin/resplan/templates/.
DOC_DIR
This should be set to the relative path from the document root to the directory where documents are stored - e.g. documents/.
LOGFILE
This should be set to the absolute path where resplan should store its debug log file - e.g. /var/www/resplan/logs/resplan.log or C:/Program Files/Apache Group/Apache2/htdocs/resplan/logs/resplan.log.
ERRFILE
This should be set to the absolute path where resplan should store its error log file - e.g. /var/www/resplan/logs/errors.log or C:/Program Files/Apache Group/Apache2/htdocs/resplan/logs/errors.log.
DBHOST
This should be set to the host name of the MySQL server - e.g. localhost.
DBNAME
This should be set to the database name to connect to if none is supplied in the ResourcePlanner URL - e.g. demo.
DBUSER
This should be set to the user name to connect to the MySQL server - e.g. resplan.
DBPASS
This should be set to the password for MySQL - e.g. SteveLee.
DBPORT
This should be set to the port number MySQL is running on, or 0 for the default - e.g. 0.
EXPIRE_INTERVAL
This should be set to the length of time before a user's login will time out for inactivity - e.g. 1 HOUR. Note this interval is in MySQL DATE_ADD format, so the interval may be MINUTE, HOUR, DAY, MONTH or YEAR (always singular, not plural)
Note that all the directory variables MUST end with a slash / character.

Customizing ResourcePlanner

The entire user interface of ResourcePlanner is contained in HTML pages, either in the resplan directory in the document root, or in the resplan/templates directory under cgi-bin. The help is in resplan/help in the document root. All the web pages use CSS (Cascading Style Sheets), so the look and feel can easily be customized. The templates allow more detailed changes to be made to the information shown on all the dynamic pages, and even the main menu can be changed.

A customization document which explains all the styles used, all the template tokens, etc. is available from [email protected].

Of course, if you customize these files, your customizations will be overwritten if you upgrade ResourcePlanner to the next version - you need to keep track of your changes with a tool such as CVS.