How to build a Linux-based Discuz! Forum

CrossdayDiscuz! Board (referred to as Discuz!) Is a common set of system software community forum Sing-ups Beijing Technology Co., Ltd. launched. Since its launch in June 2001, Discuz! Already has more than 15 years of application history and more than 200 million cases of site users, is the world's highest maturity, coverage is one of the largest forum software system. The latest version of Discuz! X3.3 official version on January 1, 2017 release, is a stable version of X3.2.

Free vouchers

Step one: Create a cloud server

I am here to buy Tencent cloud server, find examples of console

Find the following information: a cloud server instance user name and password; cloud server instance public network IP.

Step two: build a LAMP environment

For CentOS system, Tencent cloud provides synchronization software installed CentOS official sources, bear with the software is the most stable version can be quickly installed via Yum.

I used here is the cloud server connected Xshell

1. Enter the following command to install the necessary software together (the Apache, MySQL , PHP):

The installation is complete, the window will prompt "Complete!". You can slide the scroll bar to view the current version of the installation package:

2. Start Services

service httpd start
service mysqld start
service php-fpm start

3. Configure MySQL database we need a program to create a separate database to store data and user Discuz!, The previous step has started database service, this step needs to set a MySQL root password, the root user can access the database.

mysqladmin -u root password "XXXXXXXX" (此处的密码可进行自定义)设置好 MySQL 的密码后, 对账号密码进行验证。
mysql -u root -p输入刚刚设定好的密码,可以登录到 MySQL 中,则说明配置正确。退出 MySQL:
exit

4. Verify environment configuration

In general, when this step, the environment has been successfully configured, and ensure to confirm the success of setting up the environment, can be verified by the present step.

(1) Use the following command to create the default root directory in the Apache "/ var / www / html" in test.phpthe test file:

vim /var/www/html/test.php

(2) Press the letter "I" key or the "Insert" key to switch to an editing mode, write the following:

<?php echo "<title>Test Page</title>"; phpinfo() ?>输入完成后,按“Esc”键,输入 “:wq”,保存文件并返回。

(3) in the browser, access to the test.phpfile, view the environment is configured successfully:

http: // cloud server's public IP / test.php the following page, the configuration was successful LAMP environment.

Step three: Install Discuz!

1. Download the installation package

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

2. Extract the installation package

unzip Discuz_X3.2_SC_UTF8.zip

3. Unzip the "upload" to copy all the files under the folder to "/ var / www / html /".

cp -r upload/* /var/www/html/

4. Write privileges granted to other users. These directories after files uploaded to the server, by default only the root user has write permissions.

chmod -R 777 /var/www/html

5. So far, the forum has been completely set up and ready to be installed in the browser.

(1) Input Discuz in the Web browser's address bar! IP address (cloud server instance public IP address) of the site, you can see Discuz! Installation interface. Click [I agree] to enter the installation steps Step One: Check the installation environment.

(2) Confirm the current state of normal, click Next, step into the operating environment settings

(3) select a new installation, click Next, create the database into the steps.

(4) for the Discuz! Create a database, use the steps provided 2.2 root account and password to connect to the database. And set up the system mail, administrator account, password, and Email. Click Next to begin the installation.

Note : Please remember your administrator user and password.

(5) the installation is complete, click your forum has been installed, click here to access] to access the forum.

Guess you like

Origin www.cnblogs.com/arisono/p/11646663.html