现在主流的两种架构:
Linux + Apache + Mysql + PHP = LAMP
Linux + Nginx + Mysql + PHP/Perl/Python = LNMP
搭建论坛:
架构:LAMP=Linux+Apache+Mysql+PHP
准备工作
需要安装包:
Discuz_X3.2_SC_UTF8.zip
对应需要安装软件:
httpd.x86_64 ,mariadb-server.x86_64 ,php ,php-mysql.x86_64
开始搭建论坛
1、安装软件
主机ip为申请的IP
yum reinstall hpptd mariadb-server.x86_64 php php-mysql.x86_64 -y
systemctl restart mariadb.service
systemctl restart httpd.service
firewall-cmd --permanent --add-service=http
firewall-cmd --reload
2、解压软件
[root@server ~]# cd /var/www/html/
[root@server html]# unzip Discuz_X3.2_SC_UTF8.zip
将Discuz_X3.2_SC_UTF8.zip 解压到 /var/www/html/目录
解压后
3、给权限
cd upload/
chmod 777 -R config
chmod 777 -R data/
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/upload(/.*)?'
restorecon -FvvR /var/www/html/upload
chmod 777 uc_* -R
现在ls如下:
4、网页搭建
网页访问:http://域名/upload

全部是钩,如果有叉,定是权限部分有问题

全新安装

这里需要输入服务器数据库管理员密码,给论坛设置管理员帐号及密码点击下一步!

完成搭建
