Installing RackTables

 In administration

Installing RackTables onto a Centos 6.5 Server

Instructions on how to install Centos 6.5 can be found here 

To install RackTables onto a Centos Server you first need to install some prerequisite services such as Apache.

Login to the server as Root with the password that you set during the Centos build.

Installing  Apache and starting the service

Code

yum install httpd -y

and press enter

service httpd start

and press enter

If you plan to access RackTables from outside of your network you will need to enable Apache through port 80.

To Test your Apache install open a web page and type

http:\\ipaddress of server

apacheNext you will need to install MYSQL

On the server still logged in as Root

Code

yum install mysql mysql-server -y

and press enter

start the mysql service and set it to start automatically after a reboot

Code

service mysqld start

and press enter

chkconfig mysqld on

and press enter

by default mysql root user doesn’t have a password, to secure the mysql installation you will need to set one

Code

mysql_secure_installation

and press enter

you will now be asked to login in as root  #press enter#

set root password? [y/n] #press enter#

new password: (type new password) #press enter#

re-enter new password: (type new password) #press enter#

it will say that the password has updated successfully, and will reload the privilege tables

by default mysql has an anonymous user account, this needs to be removed

remove anonymous user? [y/n] #press enter#

disallow root login remotely? [y/n] #press enter#

remove test database and access to it? [y/n] #press enter#

reload privilege tables now? [y/n] #press enter#

you now need to install PHP

Code

yum install php -y

and press enter

restart the httpd service

Code

service httpd restart

now install mysql support for php

Code

yum install php-mysql-y

and press enter

restart the httpd service

Code

service httpd restart

now install the following php extension

Code

yum install php-common php-cli php-ldap php-snmp php-pcntl

and press enter

log into you mysql database server and create a database and database user, I’m using racktablesdb and racktablesuser with the password of password, but you can use what ever you like, just make a note of them as you will need the information for the racktables install

Code

create database racktablesdb;

and press enter

GRANT ALL on racktablesdb.* TO racktablesuser@localhost IDENTIFIED by ‘password’;

and press enter

flush privileges;

and press enter

exit

you now need to download the latest version of racktables, check the version number Here

Code

wget http://sourceforge.net/projects/racktables/files/RackTables-0.20.8.zip

and press enter

unzip RackTables-0.20.8.zip

and press enter

the files have been extracted to your current directory, and need to be copied to the Apache root folder

Code 

cp -fr Racktables-0.20.8/wwwroot/ /var/www/html/racktables

and press enter

Set write permissions on the racktables folder

Code

chmod -R 777 /var/www/html/racktables

and press enter

next create a secret.php file and set the permissions on it

Code

touch /var/www/html/racktables/secret.php

and press enter

chmod 664 /var/www/html/racktables/secret.php

and press enter

racktables is now installed, open a webpage and go to: http//ipaddress/racktables/?module=installer

click proceed

you will now see which required modules are not installed, these are shown in red

rtins2

 

these need to be installed on the server

for the PDO extension and PDO-MYSQL extension

Code 

yum install php-mysql -y

and press enter

service httpd restart

and press enter

for the GD extension

Code

yum install php-gd -y

and press enter

service httpd restart

and press enter

gdextinstall

for Multibyte string extension

Code

yum install php-mbstring -y

and press enter

 service httpd restart

and press enter

for BC Math extension

Code

yum install php-bcmath -y

and press enter

service httpd restart

and press enter

return to your racktable install webpage and click retry

click retry and you will see the screen below

modulescomplete

click proceed and change the database name, username and password to what you set up earlier in the mysql database, click retry

step3

 

click proceed and you will see the screen below

step5

click proceed and you will see the screen below, set the racktable administrator password

step6

click retry and you will see the screen below

step7

click proceed and racktables is installed!

enter the administrator details you have just created username admin

and you will be logged into racktables and ready to go

 

 

 

finished



	
Recent Posts

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt

Start typing and press Enter to search

Choosing the right storage for your virtual platform