码迷,mamicode.com
首页 > 其他好文 > 详细

搭建Discuz服务器

时间:2014-07-28 16:41:44      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:discuz

系统信息:
# cat /etc/redhat-release
CentOS release 6.4 (Final)

Discuz官网:
http://www.discuz.net/forum.php

1.安装所需软件
yum install httpd mysql php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-pear.noarch php-mysql.x86_64

service mysqld start
mysql_secure_installation

2.创建论坛数据库
mysql -u root -p

create database bbs;
grant all privileges on bbs.* to ‘bbs‘@‘localhost‘ identified by ‘bbs‘;
flush privileges;

mysql -u bbs -p
SHOW DATABASES;

3.开机自启动
chkconfig httpd on
chkconfig mysqld on

4.解压
yum list | grep unzip
yum install unzip.x86_64

cp /softs/Discuz_X3.0_SC_UTF8.zip /var/www/html/
cd /var/www/html/

unzip Discuz_X3.0_SC_UTF8.zip
chown -R apache:apache /var/www/*

5.设置域名
vim /etc/httpd/conf/httpd.conf
--------------------------------------
DirectoryIndex index.html index.html.var index.php
--------------------------------------
vim /etc/httpd/conf.d/virtual.conf
--------------------------------------

<VirtualHost *:80>
    ServerAdmin webmaster@ncg.com
    DocumentRoot "/var/www/html/upload"
    ServerName  bbs.ncg.com
    ErrorLog "logs/bbs-error_log"
    CustomLog "logs/bbs-access_log" common
</VirtualHost>

--------------------------------------

6.添加主机名
vim /etc/hosts
--------------------------------------

192.168.16.201   bbs.ncg.com

--------------------------------------

7.重启并访问
/etc/init.d/httpd restart
http://bbs.ncg.com

8.在浏览器中安装配置

本文出自 “不作恶” 博客,请务必保留此出处http://vflong.blog.51cto.com/8622347/1531220

搭建Discuz服务器,布布扣,bubuko.com

搭建Discuz服务器

标签:discuz

原文地址:http://vflong.blog.51cto.com/8622347/1531220

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!