Centos6.5 install mrbs

Source: Internet
Author: User
// ---------------------------------------- Required software installation -----------------------------------//

# Yum install-y MySQL mysql-server mysql-deve httpd PHP-MySQL

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

// ---------------------------------------- Required software installation -----------------------------------//

// --------------------------------------- Change the MySQL password ----------------------------------//
# Chgrp-r MySQL/var/lib/MySQL
# Chmod-r 770/var/lib/MySQL
# Service mysqld start
# MySQL
# Mysql> set password for 'root' @ 'localhost' = PASSWORD ('secret _ password ');
# Mysql> quit
# Mysql-u root-P
Enter Password: newpassword
Mysql> <logon successful>

// --------------------------------------- Change the MySQL password ----------------------------------//


// --------------------------------------- Start MySQL at startup ----------------------------------//
// View the listening port
# Netstat-lntp
# Chkconfig -- add mysqld
# Chkconfig -- levels 235 mysqld on
// --------------------------------------- Start MySQL at startup ----------------------------------//


#/Etc/init. d/mysqld restart

#/Etc/init. d/httpd restart


// ---------------- Disable SELinux --------------------------//
# Vi/etc/SELinux/config
Change SELinux = enforcing to SELinux = disabled

// ---------------- Disable SELinux --------------------------//


// ---------------- Start Apache --------------------------//
# Chkconfig -- levels 235 httpd on
// ---------------- Start Apache --------------------------//


// ---------------- Configure 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

// Remove the $ timezone = "xxxxxxx" comment and change it to $ timezone = "Asia/Shanghai ";

// Modify the following content. $ Dbsys = "MySQL"; $ db_host = "localhost"; $ db_database = "mrbs"; $ db_login = "root"; $ db_password = '2016 '; $ db_tbl_prefix = "mrbs _"; // Add $ auth ["type"] = "DB" at the end ";

# 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
// ---------------- Configure mrbs ---------------------------//

// ---------------- Enable port 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

// ---------------- Enable port 80 --------------------------//

Access http: // localhost/mrbs

Tail/var/log/httpd/error_log

Centos6.5 install mrbs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.