search
HomeCMS TutorialDiscuzIntroduction to how to install and configure discuz

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

After the installation is complete, start the MySQL service:

service mysqld restart

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'

Set MySQL to automatically start at boot:

chkconfig mysqld on

Second Step: Install the Apache component

Use yum to install the Apache component:

yum install httpd -y

After installation, start the httpd process:

service httpd start

Set httpd to start automatically at boot:

chkconfig httpd on

Step 3: Install PHP

Use yum to install PHP:

yum install php php-fpm php-mysql -y

After installation, start the PHP-FPM process:

service php-fpm start

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

netstat -nlpt | grep php-fpm

Set PHP-FPM to start automatically at boot:

chkconfig php-fpm on

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

After the download is completed, decompress the compressed package

unzip Discuz_X3.2_SC_UTF8.zip

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/

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

chmod -R 777 /var/www/html

Restart Apache

service httpd restart

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/

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!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use