Install Discuz! X

更新时间:
复制 MD 格式

Discuz! X is a general-purpose community forum software system. It uses a PHP and MySQL architecture to provide an efficient forum solution.

Prerequisites

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

  1. Obtain host information.

    1. Log in to the Alibaba Cloud Web Hosting console.

    2. Find the Alibaba Cloud Web Hosting instance where you want to install Discuz! X, and then click Manage in the Actions column.

    3. In the left-side navigation pane, click Site Information.

    4. In the Site Information section, find the host information.

      AreaDescription
      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.
  2. 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:

    After the package is uploaded and decompressed, the program files appear in the /htdocs directory.

    Note

    The 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.

  3. Install Discuz! X.

    1. In a web browser, go to your domain name.

    2. Optional: If you are using a temporary domain name, enter the required information on the verification page and then click Confirm Access.

    3. Read the license agreement and click I Agree.

    4. 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 as mysqli_connect() and fsockopen() are supported). All items must pass these checks.

    5. 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.

    6. 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.