I have developed and tested the following method for installing a second instance of ICE (and/or IEE) on a single physical server after an initial installation with the RPM installer as RPM is not designed to install multiple copies of the same package. (It can be easily repeated for more than two instances or modified for multiple versions of ICE/IEE.) Similar efforts would be required for DEB and PKG installations but not necessary with the install-infobright.sh script included in the TAR packages.
There are really no sequential dependencies here so any of the steps can be done in any order but I find the following to be the most logical to me. If your second installation fails to start, review the server log, bh.err by default, in the data directory for your 2nd installation. It will point out what can’t be found, read, or rationalized.
Good luck!
1. install 1st instance with the rpm command per instructions found here (click link to be taken to the wiki page)
# rpm -i infobright_<version_name>.rpm
2. if you started the infobright server after installation, be sure to shut down the server for the 1st installed instance
# /etc/init.d/mysqld-ib stop
3. create 2nd symbolic link in /usr/local to infobright software directory
# ln -s /usr/local/<infobright softare> <new link>
4. create new data & cache directories (can be a copy of existing directories), be sure to preserve the mysql ownership and privileges
# cp -rp /<path>/<1dir> /<path>/<2dir>
By default, the data and cache directories are located in /usr/local/infobright. Many users run the postconfig.sh script to relocate them to somewhere like /opt/infobright so their paths are /opt/infobright/data and /opt/infobright/cache. In this case the command would look like this:
# cp -rp /opt/infobright /opt/<2dir>
5. edit new /<2dir>/data/brighthouse.ini
- change ‘CacheFolder’ value from CacheFolder = /<1dir>/cache to CacheFolder = /<2dir>/cache
NOTE: If you plan to run both instances simultaneously, you may also need to adjust the amount of memory specified for ServerManHeapSize such that the combined amounts do not exceed the total memory of the physical server.
6. copy mysql config file to a new file
# cp /etc/my-ib.cnf /etc/my-<name>.cnf
7. edit the new mysql config file, /etc/my-<name>.cnf
- change every occurrence of ‘port’ value from 5029 to a different, unused port number, say, 5030 (3 times)
- change every occurrence of ‘socket’ value from /etc/mysql-ib.sock to /etc/mysql-<name>.sock (2 times)
- change ‘infobright’ in the following line to <new link>
- basedir=/usr/local/<new link>
- change every occurrence of ‘infobright’ in the following lines to <2dir>
- datadir = /<2dir>/data
- log-error = /<2dir>/data/bh.err
- general_log_file=/<2dir>/data/general_query.log
- slow_query_log_file=/<2dir>/data/slow_query.log
8. copy infobright start/stop script to new file
# cp /etc/init.d/mysqld-ib /etc/init.d/mysqld-<name>
9. edit new start/stop script, /etc/init.d/mysqld-<name>
- change ‘conf’ value from conf=/etc/my-ib.cnf to conf=/etc/my-<name>.cnf
10. copy client script to new file
# cp /usr/bin/mysql-ib /usr/bin/mysql-<name>
11. edit new client script, /usr/bin/mysql-<name>
- change path to use new link name - /usr/local/<new link>/bin/mysql
- change defaults-file to new mysql config file -—defaults-file=/etc/my-<name>.cnf
12. restart 1st server and start 2nd server
# /etc/init.d/mysqld-ib start
# /etc/init.d/mysqld-<name> start
UPDATE: If one uses the same string for <name>, <new link> and <2dir> (as I did), this is greatly simplified.

