For the complete documentation index, see llms.txt. This page is also available as Markdown.

Toolpack prerequisite CentOS4 2-5

This page shows the Toolpack 2-5 prerequisites for CentOS 4.

Toolpack Prerequisite

Toolpack Basic packages

The software listed below is required by the host machines.

yum install gcc zlib-devel openssl-devel perl-DBI

Toolpack System Database

The Toolpack system database is used by the main host and requires mySQL database server. The system database packages are as follows:

a. For 32 bits sytem:

wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysql-server-5.0.68-1.el4_6.i386.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysql-devel-5.0.68-1.el4_6.i386.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysql-5.0.68-1.el4_6.i386.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysql-libs-5.0.68-1.el4_6.i386.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/perl-DBD-MySQL-2.9004-3.1.centos4.i386.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysqlclient14-4.1.22-1.el4s1.1.i386.rpm
rpm -ivh mysql-server-5.0.68-1.el4_6.i386.rpm mysql-devel-5.0.68-1.el4_6.i386.rpm mysql-5.0.68-1.el4_6.i386.rpm mysql-libs-5.0.68-1.el4_6.i386.rpm perl-DBD-MySQL-2.9004-3.1.centos4.i386.rpm mysqlclient14-4.1.22-1.el4s1.1.i386.rpm

b. For 64 bits sytem:

wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysql-server-5.0.68-1.el4_6.x86_64.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysql-devel-5.0.68-1.el4_6.x86_64.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysql-5.0.68-1.el4_6.x86_64.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysql-libs-5.0.68-1.el4_6.x86_64.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/perl-DBD-MySQL-2.9004-3.1.centos4.x86_64.rpm
wget -c http://download.distribution.telcobridges.com/3rdparty/prerequisite/bin/centos/mysqlclient14-4.1.22-1.el4s1.1.x86_64.rpm
rpm -ivh mysql-server-5.0.68-1.el4_6.x86_64.rpm mysql-devel-5.0.68-1.el4_6.x86_64.rpm mysql-5.0.68-1.el4_6.x86_64.rpm mysql-libs-5.0.68-1.el4_6.x86_64.rpm perl-DBD-MySQL-2.9004-3.1.centos4.x86_64.rpm mysqlclient14-4.1.22-1.el4s1.1.x86_64.rpm

Then, install the encryption package.

Depending on the CentOS installation, the command paths for the database (i.e. mysql_install_db, mysqladmin, mysql) and system tools (chkconfig, service, etc) may not be included in the active PATH environment variable. MySql is usually installed in /usr/bin and system tools in sbin.

  1. start and enable mysql

    chkconfig mysqld on service mysqld start

  2. Install the database.

    mysql_install_db

IMPORTANT: By default CentOS allow anonymous connections.Please read the 'Securing the Initial MySQL Accounts' article to learn how to manage users and privileges.

  1. Log onto mysql, create a tbdb user. The [HostName], [DatabaseUsername] and [DatabasePassword] will need to be supplied to the toolpack installer. If you cannot log in it is possible that the host name is not configure properly, use an IP Address instead of the [HostName].

    mysql -u root -h '[HostName]' -p CREATE USER '[DatabaseUsername]'@'%' IDENTIFIED BY '[DatabasePassword]'; GRANT ALL PRIVILEGES ON . TO '[DatabaseUsername]'@'%' IDENTIFIED BY '[DatabasePassword]'; FLUSH PRIVILEGES; exit

ex.

To verify if the user is created:

4.Install odbc driver and driver manager

4a. For 32 bits sytem:

4b. For 64 bits sytem:

5. Manually configure the odbc manager.

Set the mysql odbc driver to its new value. Make sure mysql driver is enable(removing the comments for the mysql driver)

Here is an example:

  1. Driver from the MyODBC package

  2. Setup from the unixODBC package [MySQL] <----- This line must NOT start with a '#' Description = ODBC for MySQL Driver = /lib/tb/toolpack/3rdparty/odbc-connector/libmyodbc3_r-3.51.27.so Setup = /usr/lib/libodbcmyS.so FileUsage = 1

  3. Configure mysql to support database replication (Will not interfere if your system do not use it).

    vim /etc/my.cnf

Add 2 new variable in the mysql config file

Add log-bin and server-id. The value of server-id needs to be unique on each host( do not use 0 ). Make sure it is in the [mysqld] section log-bin server-id=''[UniqueId]'' skip-name-resolve

Add max_allowed_packet to increase the maximum size of binary blobs in the database. Make sure it is in the [mysqld] section AND [mysqldump] section max_allowed_packet = 200MB

Example:

  1. Default to using old password format for compatibility with mysql 3.x

  2. clients (those using the mysqlclient10 compatibility package). old_passwords=1

    [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [root@TL-CENTOS64-02 tblab]#

    [mysqldump] max_allowed_packet = 200MB

Reboot the mysql service

Toolpack System Web Portal

The Toolpack System Web Portal is required in order to host the Toolpack Web Portal. It requires the execution of all following commands:

  1. Manually install fcgi:

    wget http://download.distribution.telcobridges.com/3rdparty/prerequisite/src/centos/fcgi-2.4.0.tar.gz tar -xzf fcgi-2.4.0.tar.gz cd fcgi-2.4.0 ./configure make make install cd ../

  2. Install pcre:

    yum install pcre

  3. Install lighttpd:

3a. For 32 bits sytem:

3b. For 64 bits sytem:

4. Install ruby

4a. For 32 bits system:

4b. For 64 bits system:

5. Install RubyGems 1.3.5

7. Install gem fcgi:

Make sure that the firewall enables these following services and ports. Failure to open those ports will render socket communication between the distributed software elements unavailable.

Service: http (12358/tcp)

Port: All ports (tcp/udp) enabled for local networks

Disabling SELinux

Check SELinux status

If SELinux is enable, see the Disabling SELinux article to disable it.

Toolpack Development Prerequisite

The Toolpack System Development prerequisite section is only required for customers that will develop their own application using the Toolpack API:

Validation Guide (Optional)

If you would like to verify your installation go to the Toolpack Validation Guide

Toolpack System installation

Now that the prerequisite are installed, now it is time to install the Toolpack system

Last updated

Was this helpful?