Home > CMS Tutorial > Discuz > body text

Introduction to how to install and configure discuz

青灯夜游
Release: 2021-02-22 17:57:23
forward
7526 people have browsed it

This article will introduce you to the discuz installation configuration. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

Introduction to how to install and configure discuz

Related recommendations: "discuz tutorial"

discuz installation configuration

Prepare the LAMP environment

LAMP is the abbreviation of Linux, Apache, MySQL and PHP. It is the basic operating environment that the Discuz forum system relies on. Let’s prepare the LAMP environment first

If you don’t have a cloud server, you can use Tencent Cloud’s trial server, address: https://cloud.tencent.com/developer/labs/lab/10030

Step one: Install MySQL

Use yum to install MySQL:

yum install mysql-server -y
Copy after login

After the installation is complete, start the MySQL service:

service mysqld restart
Copy after login

This experiment uses the mysql default account Name and password, you can also set your own MySQL account name and password:
, refer to the following content:

/usr/bin/mysqladmin -u root password 'XXXXXXX'
Copy after login

Set MySQL to automatically start at boot:

chkconfig mysqld on
Copy after login

Second Step: Install the Apache component

Use yum to install the Apache component:

yum install httpd -y
Copy after login

After installation, start the httpd process:

service httpd start
Copy after login

Set httpd to start automatically at boot:

chkconfig httpd on
Copy after login

Step 3: Install PHP

Use yum to install PHP:

yum install php php-fpm php-mysql -y
Copy after login

After installation, start the PHP-FPM process:

service php-fpm start
Copy after login

After starting, you can use the following command to check which port the PHP-FPM process is listening on

netstat -nlpt | grep php-fpm
Copy after login

Set PHP-FPM to start automatically at boot:

chkconfig php-fpm on
Copy after login

Step 4 : Install Discuz

CentOS 6 does not have the yum source of Discuz, so we need to download a Discuz compressed package:

wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
Copy after login

After the download is completed, decompress the compressed package

unzip Discuz_X3.2_SC_UTF8.zip
Copy after login

After decompression, you can see the source code of discuz in the upload folder

Step 5: Configure Discuz

Since PHP accesses /var/www by default /html/ folder, so we need to copy all the files in the upload folder to the /var/www/html/ folder

cp -r upload/* /var/www/html/
Copy after login

Give permissions to the /var/www/html directory and its subdirectories

chmod -R 777 /var/www/html
Copy after login

Restart Apache

service httpd restart
Copy after login

Step 6: Domain name registration and domain name resolution. If domain name resolution is not performed, access directly through the IP address

http://119.29.192.40/install/
Copy after login

Step 7: Install discuz
Introduction to how to install and configure discuz
Introduction to how to install and configure discuz
Introduction to how to install and configure discuz
Introduction to how to install and configure discuz## Done!

For more programming-related knowledge, please visit:

Programming Teaching! !

The above is the detailed content of Introduction to how to install and configure discuz. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!