1、安装操作系统

选用ubuntu-13.10-server-amd64,安装时选择openssh server和lamp server,此处提示输入mysql密码。


2、新建/racktables文件夹并上传RackTables0.20.5.tar文件

mkdir /racktables


3、解压缩RackTables0.20.5.tar文件

tar xvzf RackTables0.20.5.tar


4、将解压后文件夹内wwwroot文件夹下内容全部复制至/var/www/文件夹下

cp -r /racktables/RackTables0.20.5/wwwroot/* /var/www/


5、创建数据库

#mysql -u root -p

#输入密码

>create database racktables;

>grant all on racktables.* to root;

>grant all on racktables.* to root@localhost;

>grant all on racktables.* to rackuser;

>grant all on racktables.* to rackuser@localhost;

>set password for rackuser@localhost=password('rackpw');

>\q


6、更新php插件(此部分参照其他文档,官方无此部分)

#apt-get update

#apt-get install php5-gd

#apt-get install php5-snmp

#apt-get install php5-LDAP

#apt-get install php5-curl


7、启用pcntl插件

#apt-get install dpkg-dev

#apt-get install php5-dev

#mkdir php

#cd php

#apt-get source php5

#cd php5-5.4.9/ext/pcntl/

#phpize

#./configure

#make && make install


注:此处查看/usr/lib/php5/20100515+lfs/文件夹下是否有pcntl.so文件,如果没有,需要从/php/php5-5.4.9/ext/pcntl/modules/pcntl.so复制至此。


#echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini


#vi /etc/php5/apache2/php.ini

注释掉disable_functions=pcntl_alarm,………………


8、添加secret.php文件(后续安装步骤会提示建立)

#touch /var/www/inc/secret.php

#chmod 666 /var/www/inc/secret.php


9、运行网页安装(此处未截图,借用官方图片,稍有差异)

http://IP地址/


10、step 1 of 6

提示configuration error页面,点击最后the link链接



11、step 2 of 6

检测插件项,通过为PASSED

Rackwebstep2.png


12、step 3 of 6

填写MYSQL数据库信息

TCP host:localhost

UNIX socket:默认

database:racktables

username:rackuser

password:rackpw

注:username和password也可填写为root和root密码

Rackwebstep4.png

点击proceed按钮继续

13、step 4 of 6

初始化数据库

Rackwebstep6.png


14、step 5 of 6

填写管理员密码

Rackwebstep7.png


15、step 6 of 6

完成安装


16、运行racktables

http://IP地址/

用户名:admin

密码:step 5中设置的密码

Rackwebstep10.png