CentOS6.5安装MRBS


//--------------------------------------安装必须软件-----------------------------------//

# yum install –y mysql mysql-server mysql-devel httpd php php-mysql

# wget http://jaist.dl.sourceforge.net/project/mrbs/mrbs/MRBS%201.4.11/mrbs-1.4.11.tar.gz

//--------------------------------------安装必须软件-----------------------------------//

//-------------------------------------修改mysql密码----------------------------------//
# chgrp -R mysql /var/lib/mysql
# chmod -R 770 /var/lib/mysql
# service mysqld start

# mysql

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('secret_password');
quit
# mysql -u root -p
Enter password:newpassword
mysql><登录成功>

//-------------------------------------修改mysql密码----------------------------------//

//-------------------------------------开机启动Mysql----------------------------------//
//查看监听端口
# netstat -lntp
# chkconfig --add mysqld
# chkconfig --levels 235 mysqld on
//-------------------------------------开机启动Mysql----------------------------------//

//----------------关闭selinux--------------------------//

# vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled

//----------------关闭selinux--------------------------//

//----------------开机启动apache--------------------------//
# chkconfig --levels 235 httpd on
//----------------开机启动apache--------------------------//


//----------------配置MRBS--------------------------//
# tar zxvf mrbs-1.4.11.tar.gz
# cd mrbs-1.4.11
# cp -r web /var/www/html/mrbs
# vi /var/www/html/mrbs/config.inc.php

//去掉$timezone = "XXXXXXX"的注释,并修改成$timezone = "Asia/Shanghai";

//修改以下内容。
$dbsys = "mysql";
$db_host = "localhost";
$db_database = "mrbs";
$db_login = "root";
$db_password = '111111';
$db_tbl_prefix = "mrbs_";
//尾部添加
$auth["type"]="db";

# mysql -u root -p

CREATE DATABASE `mrbs` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
quit
# mysql -uroot -p mrbs < ~/Desktop/mrbs-1.4.11/tables.my.sql
# mysql -uroot -p mrbs < ~/Desktop/mrbs-1.4.11/sample-data.sql
//----------------配置MRBS---------------------------//

//----------------开启80端口--------------------------//
# /etc/init.d/iptables stop
# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
# /etc/rc.d/init.d/iptables save
# /etc/init.d/iptables status
# /etc/init.d/iptables restart

//----------------开启80端口--------------------------//

# /etc/init.d/mysqld restart

# /etc/init.d/httpd restart

访问http://localhost/mrbs

第一个注册的就是管理员账号.

tail /var/log/httpd/error_log 

相关内容