linux web services and open source forum Discuz

Installing Apache

yum -y install httpd    //安装
systemctl start httpd  //启动
systemctl enable httpd  //开机自启
systemctl stop firewalld     //关闭防火墙
setenforce 0

httpd -v // View version

Forum deployment system discuz

sed -ri '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config 
setenforce 0
systemctl stop firewalld.service 
systemctl disable firewalld.service

LAMP installation

 yum -y install httpd mariadb-server mariadb php php-mysql gd php-gd
 systemctl start httpd mariadb
 systemctl enable httpd mariadb

Installation Discuz
1. Import discuz website source

wget http://download.comsenz.com/DiscuzX/2.5/Discuz_X2.5_SC_UTF8.zip
mkdir /webroot/discuz    
unzip  Discuz_X3.4_SC_UTF8.zip      //解压
cp -rf upload/* /webroot/discuz/  
chown -R  apache.apache  /webroot/discuz/

2.Apache virtual host configuration

vim /etc/httpd/conf.d/discuz.conf
<VirtualHost *:80>
   ServerName www.discuz.com
   DocumentRoot /webroot/discuz
</VirtualHost>

<Directory "/webroot/discuz">
   Require all granted
</Directory>
systemctl restart httpd  //重启一下

3. Prepare the database

mysql
MariaDB [(none)]> create database discuz ;
exit    //退出

4. Install Discuz
Here Insert Picture Description
Do not fill the database password
database password is not filled, the next step to complete the installation
test

Published 13 original articles · won praise 103 · views 20000 +

Guess you like

Origin blog.csdn.net/weixin_45508789/article/details/104784117