Build Discuz Forum on the basis of LNMP

Source: Internet
Author: User

In this example, discuz Forum is built on the basis of LNMP,lnmp Environment of the building, in the previous blog has been introduced, here is not to repeat.

the address of the download discuz Source package is: HTTP://WWW.COMSENZ.COM/DOWNLOADS/INSTALL/DISCUZX

In this example, the latest version of the 3.2 is selected , and after downloading, the files in the upload are uploaded to the bbs directory.

[Email protected] ~]# Mkdir/usr/src/discuz

[Email protected] ~]# Unzip discuz_x3.2_sc_utf8.zip-d/usr/src/discuz

[Email protected] ~]# cp-r/usr/src/discuz/upload/*/usr/local/nginx/html/bbs/

[Email protected] ~]# chmod-r 777/usr/local/nginx/html/bbs/config/

[Email protected] ~]# chmod-r 777/usr/local/nginx/html/bbs/data/

[Email protected] ~]# chmod-r 777/usr/local/nginx/html/bbs/uc_client/data/cache/

[Email protected] ~]# chmod-r 777/usr/local/nginx/html/bbs/uc_server/data/

[[Email protected] ~]# service Nginx restart

Discuz is a dynamic Web site based on PHP , and much of the data needs to be kept in the database. Therefore, we need to create a forum database for the forum in the MySQL database and create a database management account and password:/usr/local/mysql/bin/mysql-u root-p

Create database BBS;

' bbs_admin ' @ ' % '  identified by   ' admin123 '

The client accesses http://10.10.10.128/bbs/install/index.php through the browser

Completes the initialization operation.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/2B/wKiom1V1TIGj-SptAAP8ONQJiac418.jpg "title=" 1.png " alt= "Wkiom1v1tigj-sptaap8onqjiac418.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/27/wKioL1V1TjGTpTmSAAKBQnUaniI853.jpg "title=" 2.png " alt= "Wkiol1v1tjgtptmsaakbqnuanii853.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/27/wKioL1V1Tj7DNgqZAAGtn7CTwM4954.jpg "title=" 3.png " alt= "Wkiol1v1tj7dngqzaagtn7ctwm4954.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/2B/wKiom1V1TKqQEno7AAJU4iHCsuE620.jpg "title=" 4.png " alt= "Wkiom1v1tkqqeno7aaju4ihcsue620.jpg"/>

After you have completed the above initialization, be sure to delete the/usr/local/nginx/html/bbs/install/index.php to prevent multiple initialization operations. At this time the client through the browser to access the forum,http://10.10.10.128/bbs/index.php, You can login forum home.


Build Discuz Forum on the basis of LNMP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.