部署racktables
安装配置lamp环境
yum -y install httpd php mysql mysql-server php-mysql
安装apache扩展和php扩展,使其更好支持其他的软件
yum install httpd-manual mod_ssl mod_perl mod_auth_mysql -y
yum install php-gd php-snmp php-bcmath -y
下载安装racktables
下载地址:
wget https://jaist.dl.sourceforge.net/project/racktables/RackTables-0.21.1.tar.gz
tar zxf RackTables-0.21.1.tar.gz
mv RackTables-0.21.1/ /var/www/racktables
配置数据库
创建racktables数据库
create database racktables;
grant all on racktables.* to root;
grant all on racktables.* to [email protected];
grant all on racktables.* to rackuser;
grant all on racktables.* to [email protected];
exit
yum安装php需要升级php
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi,remi-php55 install php-fpm php-common php-devel php-mysqlnd php-mbstring php-mcrypt php-gd php-bcmath php-snmp
php -v 查看版本
配置httpd虚拟主机
mkdir /etc/httpd/vhosts
vim /etc/httpd/vhosts/racktables.conf
<VirtualHost *:80>
DocumentRoot “/var/www/racktables/wwwroot”
ServerAdmin [email protected]
Servername localhost.localdomain
#ErrorLog “/var/httpd/logs/racktables_error_log”
#CustomLog “/var/httpd/logs/racktables_access_log” common
</VirtualHost》
<Directory /var/www/racktables.wwwroot>
Require all granted
</Directory》
重启生效
service httpd restart
配置racktables
浏览器访问安装IP
然后安装步骤进行到第三步
touch /var/www/racktables/wwwroot/inc/secret.php
chmod 666 /var/www/racktables/wwwroot/inc/secret.php
retry进行到第四步:
chown apache.apache /var/www/racktables/wwwroot/inc/secret.php
chmod 400 /var/www/racktables/wwwroot/inc/secret.php
继续第五步:
第六步:
第七步:
输入admin的密码
完成后登陆