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