Deploy the Discz community forum web application

Deploy the Discz community forum web application

1. Create a database and authorize

mysql -u root -p

CREATE DATABASE bbs;
#创建一个数据库

GRANT all ON bbs.* TO 'bbsuser'@'%' IDENTIFIED BY 'admin123';
#把bbs数据库里面所有表的权限授予给bbsuser,并设置密码admin123

flush privileges;
#刷新数据库

show databases;
Insert picture description here

2. Unzip the forum compressed package

unzip /opt/Discuz_X3.4_SC_UTF8.zip -d /opt/dis
cd /opt/dis/dir_SC_UTF8/
cp -r upload/ /usr/local/httpd/htdocs/bbs		#上传站点更新包
Insert picture description here

3. Change the owner of the forum directory

ps aux							#查看发现论坛进程的用户名是daemon
cd /usr/local/httpd/htdocs/bbs
chown -R daemon ./config
chown -R daemon ./data
chown -R daemon ./uc_client
chown -R daemon ./uc_server/data
Insert picture description here

4. Browser access verification

论坛页面访问
http://192.168.118.12/bbs

数据库服务器:localhost     ###本地架设就用localhost,如何不是在在本机上就要填写IP地址和端口号
数据库名字:bbs
数据库用户名:bbsuser
数据库密码:admin123
管理员账号:admin
管理员密码:admin123

论坛后台管理员页面
http://192.168.118.12/bbs/admin.php
Insert picture description here


Insert picture description here