Actions

Toolpack Installation:toolpack validate CentOS7 A: Difference between revisions

(Created page with "'''<big>Applies to version(s) v2.8 to v2.9</big>''' {{DISPLAYTITLE:Toolpack Install Validation for CentOS 7}} <span style="color:#B22222"> ''WARNING'': The system must have g...")
 
(The command needs to be mariadb)
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:
== Yum Packages ==
== Yum Packages ==


*Validation of the following package on the system using yum:
*Validate that '''Toolpack-Prerequisites''' is installed:
  yum list installed mysql-devel zlib-devel rubygems ruby-devel libxml2-devel lighttpd lighttpd-fastcgi fcgi mysql-server mysql-connector-odbc ruby unixODBC-devel rubygem-fcgi
  #yum group list


Output (Depending of the architecture, it is possible that only 1 package version is installed):  
Result should contain:  
[root@srv-test-install-centos54-x64-1 tblab]# yum list installed mysql-devel zlib-devel rubygems ruby-devel libxml2-devel lighttpd lighttpd-fastcgi fcgi mysql-server mysql-connector-odbc ruby unixODBC-devel rubygem-fcgi
  Installed Groups:
  Installed Packages
    Toolpack-Prerequisites
fcgi.i386                                                          2.4.0-12.el5                                                  installed
fcgi.x86_64                                                        2.4.0-12.el5                                                  installed
libxml2-devel.i386                                                  2.6.26-2.1.2.8.el5_5.1                                        installed
libxml2-devel.x86_64                                                2.6.26-2.1.2.8.el5_5.1                                        installed
lighttpd.i386                                                      1.4.18-1.rf                                                    installed
lighttpd.x86_64                                                    1.4.18-1.rf                                                    installed
lighttpd-fastcgi.i386                                              1.4.18-1.rf                                                    installed
lighttpd-fastcgi.x86_64                                            1.4.18-1.rf                                                    installed
mysql-connector-odbc.i386                                          5.1.5r1144-8.el5                                              installed
mysql-connector-odbc.x86_64                                        5.1.5r1144-8.el5                                              installed
mysql-devel.i386                                                    5.1.47-5.el5                                                  installed
mysql-devel.x86_64                                                  5.1.47-5.el5                                                  installed
mysql-server.x86_64                                                5.1.47-5.el5                                                  installed
ruby.i386                                                          1.8.7.299-4.el5                                                installed
ruby.x86_64                                                        1.8.7.299-4.el5                                                installed
ruby-devel.i386                                                    1.8.7.299-4.el5                                                installed
ruby-devel.x86_64                                                  1.8.7.299-4.el5                                                installed
rubygem-fcgi.x86_64                                                0.8.7-1.el5                                                    installed
rubygems.noarch                                                    1.3.7-1.el5                                                    installed
unixODBC-devel.i386                                                2.2.11-7.1                                                    installed
unixODBC-devel.x86_64                                              2.2.11-7.1                                                    installed
zlib-devel.i386                                                    1.2.3-4                                                        installed
zlib-devel.x86_64                                                  1.2.3-4                                                        installed
[root@srv-test-install-centos54-x64-1 tblab]#


'''NOTE''': If the version of 1 or more packages doesn't match, please update your system using the command:
*Make sure you repository point on '''tb-base''':
#yum repolist


  yum clean metadata
Result should contain:
  yum update
  repo id                                                                                      repo name                                                                              status
  !tb-base/7/x86_64                                                                            TB7 - Base                                                                            1,097


== Verify 3rd Party Software Version ==
== Verify 3rd Party Software Version ==


=== lighttpd ===
=== lighttpd ===
*lighttpd version should be 1.4.18 or higher
*lighttpd version should be 1.4.35 or higher
  [root@srv-test-install-centos54-x64-1 tblab]# lighttpd -v
  #lighttpd -v
  lighttpd-1.4.18 (ssl) - a light and fast webserver
  lighttpd/1.4.35 (ssl) - a light and fast webserver
  Build-Date: Nov 29 2010 18:05:08
  Build-Date: Mar 12 2014 17:19:32
[root@srv-test-install-centos54-x64-1 tblab]#


=== ruby ===
=== ruby ===
*ruby version should be 1.8.7 or higher
*ruby version should be 1.8.7 or higher
Example:
  #ruby --version
  [root@srv-test-install-centos4-x64-1 pkg]# ruby --version
  ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
  ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
[root@srv-test-install-centos4-x64-1 pkg]#


=== rubygems ===
=== rubygems ===
*rubygems version should be 1.3.7 or higher
*rubygems version should be 1.3.7 or higher
Example:
  #gem --version
  [root@srv-test-install-centos4-x64-1 pkg]# gem --version
  1.3.7
  1.3.7
[root@srv-test-install-centos4-x64-1 pkg]#


=== gem Installation ===
=== gem Installation ===
*execute the following command:
*execute the following command:
  gem list --local
  gem list --local
: Result should contain:
Result should contain:
  *** LOCAL GEMS ***
  *** LOCAL GEMS ***
   
   
Line 117: Line 90:


*Verify if the server is running
*Verify if the server is running
  service mysqld status
  systemctl status mariadb
: Result:
: Result:
mysqld (pid 5101) is running...
  ● mariadb.service - MariaDB database server
  Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
  Active: active (running) since Thu 2021-07-01 02:03:41 HKT; 37min ago
...


=== SELinux ===
=== SELinux ===

Latest revision as of 14:42, 30 June 2021

Applies to version(s) v2.8 to v2.9


WARNING: The system must have gone through the CentOS 7 Prerequisites Guides.

WARNING: This procedure requires internet access


If any of those steps fails, refer to the CentOS 7 Prerequisites Guides

Yum Packages

  • Validate that Toolpack-Prerequisites is installed:
#yum group list

Result should contain:

Installed Groups:
   Toolpack-Prerequisites
  • Make sure you repository point on tb-base:
#yum repolist

Result should contain:

repo id                                                                                      repo name                                                                              status
!tb-base/7/x86_64                                                                            TB7 - Base                                                                             1,097

Verify 3rd Party Software Version

lighttpd

  • lighttpd version should be 1.4.35 or higher
#lighttpd -v
lighttpd/1.4.35 (ssl) - a light and fast webserver
Build-Date: Mar 12 2014 17:19:32

ruby

  • ruby version should be 1.8.7 or higher
#ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]

rubygems

  • rubygems version should be 1.3.7 or higher
#gem --version
1.3.7

gem Installation

  • execute the following command:
gem list --local

Result should contain:

*** LOCAL GEMS ***

bundler (1.2.3)
fcgi (0.8.7)
json (1.7.7)

ODBC Configuration

  • Verify that the following file exists:
ls -al /usr/lib64/libmyodbc5.so
  • Verify odbc config file:
cat /etc/odbcinst.ini
For 32 bits systems, result should contain:
# Driver from the MyODBC package
# Setup from the unixODBC package
[MySQL]                                                   <----- This line must NOT start with a '#'
Description     = ODBC for MySQL
Driver          = /usr/lib/libmyodbc5.so
Setup           = /usr/lib/libodbcmyS.so
FileUsage       = 1
For 64 bits systems, result should contain:
# Driver from the MyODBC package
# Setup from the unixODBC package
[MySQL]                                                   <----- This line must NOT start with a '#'
Description     = ODBC for MySQL
Driver          = /usr/lib64/libmyodbc5.so
Setup           = /usr/lib/libodbcmyS.so
FileUsage       = 1

MySQL Configuration

  • Verify MySQL config file:
cat /etc/my.cnf
Result should contain under [mysqld]:
log-bin
server-id=[UniqueId]

Note: server-id value may vary, but server-id needs to be a non-zero value and unique when using more than one host.

  • Verify if the server is running
systemctl status mariadb
Result:
 ● mariadb.service - MariaDB database server
  Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
  Active: active (running) since Thu 2021-07-01 02:03:41 HKT; 37min ago

...

SELinux

Check SELinux status

 sestatus

It should be disabled or in 'permissive' mode.