Cloud Computing 6 min read

Deploy Discuz! Forum on Huawei Cloud in 6 Simple Steps

This step‑by‑step guide shows how to set up a Discuz! forum on a Huawei Cloud CentOS 7.6 server, covering cloud login, security group configuration, installation of Apache, PHP, MariaDB, downloading and deploying Discuz! source, and final web‑based installation.

Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Deploy Discuz! Forum on Huawei Cloud in 6 Simple Steps

Discuz! is a widely used forum software that many enterprises deploy as an internal community. This tutorial explains how to quickly build a Discuz! forum on Huawei Cloud without requiring professional hardware.

Step 1: Log in to Huawei Cloud (free registration)

Open the Huawei Cloud website and log in or register a new account.

Step 2: Choose a cloud service

Select the free "Cloud Yao" service, choose CentOS 7.6, and let the system generate a password.

Step 3: Configure the security group

Enter the server details page, click the security group, and then modify the inbound rules to open the required ports.

Step 4: Open inbound ports

In the inbound rule section, click "One‑click open" and confirm to allow the necessary ports.

Step 5: Remote login

Use the generated root username and password to log in via the remote console.

Install Apache

yum -y install httpd

Start Apache and enable it at boot:

service httpd start
chkconfig httpd on

Install PHP and PHP‑MySQL

yum -y install php
yum -y install php-mysql

Install MariaDB

yum -y install mariadb-server mariadb

Start MariaDB and set it to start on boot:

systemctl start mariadb
systemctl enable mariadb

Create a database and user

Enter the MySQL console: mysql Execute the following SQL to create a user, a database named kunpeng, and grant privileges (replace 123456 with your desired password):

GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION; CREATE DATABASE kunpeng; FLUSH PRIVILEGES;

Exit the console after the commands succeed.

Download and deploy Discuz! source

wget https://sandbox-experiment-resource-north-4.obs.cn-north-4.myhuaweicloud.com/kunpeng/Discuz_SC_UTF8.zip
unzip ./Discuz_SC_UTF8.zip
mv Discuz_SC_UTF8/upload/* /var/www/html/
chmod -R 777 /var/www/html/*

Restart Apache to apply the changes:

service httpd restart

Finish installation via web browser

Open a browser and navigate to http://<em>your_external_ip</em>/install/. Follow the on‑screen prompts, enter the database credentials created earlier, and complete the Discuz! setup.

Note: The forum is not ICP‑recorded; it should be used for testing only and not exposed publicly.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxPHPApacheHuawei CloudWeb DeploymentMariaDBDiscuz
Huawei Cloud Developer Alliance
Written by

Huawei Cloud Developer Alliance

The Huawei Cloud Developer Alliance creates a tech sharing platform for developers and partners, gathering Huawei Cloud product knowledge, event updates, expert talks, and more. Together we continuously innovate to build the cloud foundation of an intelligent world.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.