WebGUI – Multiple sites on the same server

Running multiple WebGUI sites on the same Web server is quite simple but not immediately obvious in the configuration files. All you need to do is move the WebGUI installation directory to a central location available to all virtual hosts such as /var/www/lib/WebGUI.

[root@boost WebGUI]# pwd
/var/www/lib/WebGUI
[root@boost WebGUI]# ls -al
total 28
drwxr-xr-x 6 root root 4096 Aug 3 17:33 .
drwxr-xr-x 5 root root 4096 Aug 3 17:22 ..
drwxr-x--- 3 sean apache 4096 Jul 13 11:44 docs
drwxr-x--- 2 sean apache 4096 Aug 3 17:34 etc
drwxr-x--- 14 sean apache 4096 Jul 13 18:45 lib
drwxr-x--- 3 sean apache 4096 Aug 3 16:34 sbin
-rwxrwx--- 1 root apache 217 Aug 3 17:33 WebGUI.log
[root@boost WebGUI]#

Next, create a new index.pl in the root of each virtual host and a new configuration file for each virtual host in the WebGUI etc directory.

[root@boost etc]# pwd
/var/www/lib/WebGUI/etc
[root@boost etc]# ls -al
total 28
drwxr-x--- 2 sean apache 4096 Aug 3 17:34 .
drwxr-xr-x 6 root root 4096 Aug 3 17:33 ..
-rw-r----- 1 sean apache 2776 Jul 1 19:47 WebGUI.conf
-rw-r----- 1 sean apache 2860 Aug 3 17:34 www.hamorhollow.com.conf
-rw-r----- 1 sean apache 2840 Aug 3 17:33 www.trunkmonkeyracing.com.conf
[root@boost etc]#

By changing the name of each configuration file a new FileCache directory will be created in /tmp/FileCache.

[root@boost FileCache]# pwd
/tmp/FileCache
[root@boost FileCache]# ls -al
total 24
drwxrwxrwx 5 apache apache 4096 Aug 3 17:26 .
drwxrwxrwt 9 root root 8192 Aug 3 19:16 ..
drwxrwxrwx 18 apache apache 4096 Aug 3 17:32 International
drwxrwxrwx 3 apache apache 4096 Aug 3 17:25 www.hamorhollow.com.conf
drwxrwxrwx 4 apache apache 4096 Aug 3 17:31 www.trunkmonkeyracing.com.conf
[root@boost FileCache]#

As long as preload.perl is loaded and FileCache is enabled, running multiple WebGUI Web sites on the same server will be perfectly manageable. An AMD Athlon XP 2400+ with 512MB RAM is perfectly capable of serving over thirty thousand hits per day off of multiple WebGUI, PostNuke and static HTML Web sites.