Building the Discuz forum under Lamp architecture

Source: Internet
Author: User

Successful creation of a discuz forum in a virtual machine requires multiple software support, including Apache, MySQL, and PHP. The installation of these software has been introduced in my previous articles and can be found in the previous articles.

Compile and install Apache

Compiling and installing the MySQL database

Compiling and installing PHP

Pre-build preparation

One Linux virtual machine (Red Hat Enterprise 6.5)

Install Apache, MySQL, PHP and other supporting software.

Preparing the Discuz Package

Start building a forum

Go to MySQL database and create a database called BBS

CREATE DATABASE bbs;

Grant the permissions of all the tables in the BBS database to Bbsuser, and set the password to admin123

GRANT all ON bbs.* TO ‘bbsuser‘@‘%‘ IDENTIFIED BY ‘admin123‘;

Refreshing the database

flush privileges;

Locate the folder named upload in the extracted Discuz folder and copy it to the Apache home file to rename it to BBS

 cp -r upload/ /usr/local/apache/htdocs/bbs

Modify the owner of the file under this directory (Cd/usr/local/apache/htdocs/bbs)

chown -R daemon ./configchown -R daemon ./datachown -R daemon ./uc_clientchown -R daemon ./uc_server/data


Discuz Installation

Enter the virtual machine IP address on the host to enter the installation interface

If the next step is not writable, go to the virtual machine to check if the owner of the file is set correctly



Next Create the database

Installation Complete

Re-enter the address to enter the forum we created.

Building the Discuz forum under Lamp architecture

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.