PHP论坛项目Discuz安装与使用

安装的环境是 centos+apache+php+mysql

配置站点域名:discuz.yshuq.com

[root@ysqblogsever httpd]# cd sites-available/
[root@ysqblogsever sites-available]# ls
discuz.yshuq.com.conf  weixin.yshuq.com.conf  wordpress.yshuq.com.conf  wordpress.yshuq.com-le-ssl.conf
[root@ysqblogsever sites-available]# vim discuz.yshuq.com.conf 
[root@ysqblogsever sites-available]# ln -s  /etc/httpd/sites-available/discuz.yshuq.com.conf  /etc/httpd/sites-enabled/discuz.yshuq.com.conf
[root@ysqblogsever sites-available]# ls
discuz.yshuq.com.conf  weixin.yshuq.com.conf  wordpress.yshuq.com.conf  wordpress.yshuq.com-le-ssl.conf
[root@ysqblogsever sites-available]# cd  ..
[root@ysqblogsever httpd]# cd  sites-enabled/
[root@ysqblogsever sites-enabled]# ls
discuz.yshuq.com.conf  weixin.yshuq.com.conf  wordpress.yshuq.com.conf
[root@ysqblogsever sites-enabled]# system restart httpd.service
-bash: system: command not found
[root@ysqblogsever sites-enabled]# systemctl restart httpd.service
[root@ysqblogsever sites-enabled]# httpd -t
[Sun Dec 15 14:48:04.067877 2019] [so:warn] [pid 8591] AH01574: module rewrite_module is already loaded, skipping
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.18.16.58. Set the 'ServerName' directive globally to suppress this message
Syntax OK
[root@ysqblogsever sites-enabled]# 

上传代码,运行如下:

我同意,下面是执行安装的过程,注意目录权限的修改。

文件目录权限的设置:

[root@ysqblogsever www]# chown -R apache:apache discuz.yshuq.com/

选中全新安装,设置数据库配置信息。

设置管理员信息: admin admin123,配置数据库名称等。下面是安装完成界面。

点击访问 开始如下:

Add a Comment

电子邮件地址不会被公开。 必填项已用*标注