MULTIPLE USER CONFIGURATION |
This document describes the process to configure any of my scripts for use in a multi-user environment.
The multi-user ability of the scripts is aimed towards Internet Service Providers or Web Hosting companies and will not be of great use to those installing the script on their own web site.
So what do I mean by multi-user support?
Multi-user support allows an ISP or Web Hosting company to install one version of the script and then allow each of their clients to run the script.
This takes away the need for each client to install a version of the script in their own cgi-bin directory.
Each client has a data directory in their own home directory which holds all the data used by the script.
So how is this accomplished?
The script is installed as described in the standard installation instructions apart from a couple of extra variables which need set.
Then each client's username and data directory are entered into the Multi-User Datafile or MUD.
I will eventually get around to preparing a document which is aimed towards client's wishing to use the script in a multi-user environment.
You can then include this document in the support section of your web site.
|
INSTALLATION |
There are only a couple of differences between the standard and multi-user installation processes.
- Start by completing the standard installation and configuration instructions. Make sure that you can get the script working in single user mode before trying to get the multi-user version working.
- Once you have it working in single user mode you can switch to the multi-user mode. Go to the 'User Variable' section of 'showsell.pl' and set the '$multi_user' variable to 1.
- Multi-user mode requires you to create a multi-user datafile which will hold a list of users and their appropriate data directory. Change the '$multiuser_dir' variable to point to your directory where you will be keeping the multi-user datafile.
e.g. /client/home/
- Create a text file in the directory you specified in Step 3 called 'xxxxxxxx.mud' where 'xxxxxxxx' is the name of the script you are installing.
e.g. showsell.mud
- Now add an entry for each user in this file in the following format:
username|datadirectory
e.g.
client1|/client/home/client1/docs/showsell/ client2|/client/home/client2/docs/showsell/ ... clientx|/client/home/clientx/docs/showsell/
- Chmod the multi-user datafile to 777.
The script is then ready to use.
|
USAGE |
The usage instructions are very similar to those in the standard installation except that the username must be specified when calling the script.
The configuration screens must be called using the following parameters:
http://www.hostsite.com/cgi-bin/xxxxxxxx.pl?screen=login&user=client1
The HTML code generator built into the configuration screens will automatically insert the user name into the source.
|
THATS ALL FOLKS!!! |