Discuz! X is a general-purpose community forum software system. It uses a PHP and MySQL architecture to provide an efficient forum solution.
Prerequisites
- You have purchased and initialized an Alibaba Cloud Web Hosting instance. For more information, see Purchase an Alibaba Cloud Web Hosting instance.
- You have an FTP client installed. We recommend using FileZilla. For more information, see Manage website files by using FileZilla.
- You have a domain name ready for your website.
- If you do not have a registered and verified domain name, you can use the free temporary domain name provided by Alibaba Cloud. For more information, see What is a temporary domain name?.
- If you have a registered and verified domain name, you must first bind it to your Alibaba Cloud Web Hosting instance. For more information, see Bind a domain name.
You have downloaded the Discuz! X installation package. You can download it from the official Discuz! website.
Background
This topic demonstrates how to install Discuz! X3.3 on a Linux-based Standard Enhanced edition of dedicated web hosting. If you are installing a different version of Discuz! X, the steps may vary based on the user interface (UI).
Procedure
Obtain host information.
Log in to the Alibaba Cloud Web Hosting console.
Find the Alibaba Cloud Web Hosting instance where you want to install Discuz! X, and then click Manage in the Actions column.
In the left-side navigation pane, click Site Information.
In the Site Information section, find the host information.
Area Description ① The temporary domain name. ② FTP login host address, FTP login username, and FTP login password. Use this information to log in to the FTP client. ③ Database name, database address, database username, and database password. Use this information to configure your website.
Use an FTP client to upload the Discuz! X installation package.
The website root directory for a Linux-based Alibaba Cloud Web Hosting instance is /htdocs. You must upload the installation package to this directory.
Depending on the size of the installation package, choose one of the following methods to upload it:
- If the package is small, you can upload the files directly. For more information, see Upload website files to a Linux-based Alibaba Cloud Web Hosting instance.
- If the package is large, compress it before uploading it to the Alibaba Cloud Web Hosting instance. Then, decompress the package in the Alibaba Cloud Web Hosting console. For more information, see Compress and upload website files.
After the package is uploaded and decompressed, the program files appear in the /htdocs directory.
NoteThe Discuz! X installation package includes the following default database configuration files:
config/config_global.php
uc_server/data/config.inc.php
config/config_ucenter.php
If you reset the database password in the Alibaba Cloud Web Hosting console, you must also update the password in these configuration files.
Install Discuz! X.
In a web browser, go to your domain name.
Optional: If you are using a temporary domain name, enter the required information on the verification page and then click Confirm Access.
Read the license agreement and click I Agree.
Review the environment information and click Next.
The environment information includes three types of checks: an environment check (operating system, PHP version, attachment uploads, GD library, cURL library, OPcache, disk space, and more), a directory and file permission check (confirming that about 25 directories, such as
./config/,./data/, and./uc_server/data/, are writable), and a function dependency check (confirming that functions such asmysqli_connect()andfsockopen()are supported). All items must pass these checks.Select whether to install UCenter Server, and then click Next.
UCenter Server is a user management center for websites. You can use UCenter Server to enable one-stop user registration, login, logout, and interaction with other community data. For more information, visit the official Discuz! website.
In this example, New installation of Discuz! X (including UCenter Server) is selected.
Configure the database information, and then click Next.
The following table describes the key parameters.
Parameter
Description
Database server
Enter the database connection address. For information on how to obtain the address, see Step 1.
Database name
Enter the database name. For information about how to obtain the database name, see Step 1.
Database username
Enter the database username. For instructions on how to obtain the username, see Step 1.
Database password
Enter the database password. If you have forgotten the password, you can reset it. For more information, see Reset the database password for an Alibaba Cloud Web Hosting instance.
Table prefix
A prefix for the database table names. The default value is pre_. For security, we recommend changing it to a different prefix.
Administrator account
Set the administrator username for logging in to the website backend. The default is admin.
Administrator password
Set the administrator password for logging in to the website backend.
Results
Discuz! X is installed successfully. You can click Your forum has been installed. Click here to visit. to access your website immediately, or visit it later by entering your domain name in your browser's address bar.
Next steps
After you install Discuz! X, you need to configure other website parameters:
If you want to use email to retrieve your Discuz! login password, see Configure the email feature for Discuz!.
To deploy modules or configure system settings, log in to the Discuz! X website backend. For more information about how to use Discuz! X, visit the official Discuz! website.
To set the default homepage, configure the 404 error page, or enable PHP functions, log in to the Alibaba Cloud Web Hosting console. For more information, see Overview of the Alibaba Cloud Web Hosting console.