Install discuz! Forum

Source: Internet
Author: User

4.1 Questions

This example requires the case 1, 2, 3 of the lamp server platform based on the new deployment of a set of independent virtual host web forum system to complete the following tasks:

1) Deploy Forum Code

在LAMP平台上添加一个虚拟主机 http://bbs.tedu.cn/将论坛代码部署为 /var/www/bbs/,作为此站点的网页目录新建数据库 bbsdb,并授权用户 runbbs 全权访问,密码为pwd123

2) Installation Forum Program

在 Firefox 浏览器访问 http://bbs.tedu.cn/install/根据网页提示完成 Discuz! 论坛系统安装

4.2 Steps

The implementation of this case needs to follow the steps below.

Step One: Deploy the Forum Code

1) Deploy the Forum code as/var/www/bbs/, as a Web page directory for this site

Download the discuz! Forum's code package file in advance, such as Discuz_x3.4_sc_utf8.zip, upload this file to the/root/directory of the server via the WINSCP tool and confirm it on the server.

[[email protected] ~]# ls  -lh  /root/Discuz_X3.4_SC_UTF8.zip -rw-r--r--. 1 root root 11M 12月 20 15:01 /root/Discuz_X3.4_SC_UTF8.zip

Unzip this file into the temp directory tdir.

[[email protected] ~]# unzip  /root/Discuz_X3.4_SC_UTF8.zip  -d  tdir.. ..[[email protected] ~]# ls  tdir/                              //检查解压结果readme  upload  utility

Copy the upload/subdirectory, which is deployed as/var/www/bbs.

[[email protected] ~]# cp  -rf  tdir/upload/  /var/www/bbs[[email protected] ~]# ls  /var/www/bbs                      //检查部署结果admin.php        data         m           sourceapi              favicon.ico  member.php  staticapi.php          forum.php    misc.php    templatearchiver         group.php    plugin.php  uc_clientconfig           home.php     portal.php  uc_serverconnect.php      index.php    robots.txtcrossdomain.xml  install      search.php

2) Add a virtual host on the lamp platform http://bbs.tedu.cn/

Adjust the/etc/hosts host mapping to add the lamp server's IP address to the bbs.tedu.cn record.

[[email protected] ~]# cat  /etc/hosts127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4::1         localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.70.120  tts8.tedu.cn  ne.tedu.cn  bbs.tedu.cn

Add a new configuration at the end of the virtual Web host configuration file.

[[email protected] ~]# vim  /etc/httpd/conf.d/vhosts.conf.. ..<VirtualHost  *:80>    ServerName  bbs.tedu.cn    DocumentRoot  /var/www/bbs</VirtualHost>

Restart the httpd service.

[[email protected] ~]# systemctl  restart  httpd

3) New database BBSDB, and authorized user Runbbs full access, password is pwd123

Connect the database administrator root to the native database system.

[[email protected] ~]# mysql  -uroot  -p1234567.. ..MariaDB [(none)]>

New Database Bbsdb.

MariaDB [(none)]> CREATE  DATABASE  bbsdb;Query OK, 1 row affected (0.01 sec)

Add a user Runbbs that has full access to the database Bbsdb, and the authorization password is pwd123.

MariaDB [(none)]> GRANT  all  ON  bbsdb.*  TO  [email protected]  IDENTIFIED  BY  

Disconnect the database and exit.

Step Two: Install the Forum program

1) Access http://bbs.tedu.cn/install/in Firefox browser

Make sure you see the Forum installation page, 5.

2) Complete discuz! according to the webpage prompt Forum System Installation

Click the "I Agree" button at the bottom to go to the Check Installation Environment page, 6 below. At the bottom of this page you will see "Please fix the above Red Cross section" to continue.

Depending on the page description, the permissions of the subdirectory need to be resolved first.
[[email protected] ~]# cd/var/www/bbs///Enter the Forum code directory
[Email protected] bbs]# chown-r Apache config/data/uc_server/uc_client/
Modify Dependent subdirectory Attribution
[Email protected] bbs]# ls-ld config/data/uc_server/uc_client///Confirm result
Drwxr-xr-x. 2 Apache Root 90 December 15:04 config/
Drwxr-xr-x. Apache Root 202 December 15:04 data/
Drwxr-xr-x. 7 Apache Root 106 December 15:04 uc_client/
Drwxr-xr-x. Apache Root 256 December 15:04 uc_server/
Return to the installation page displayed by the browser, press Ctrl+f5 to refresh the page, the Next button appears at the bottom, and click to continue.

The next setup run environment accepts the default "clean install", 7, click Next to continue.

Install discuz! Forum

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.