Building Discuz based on lamp environment

Source: Internet
Author: User

======================== written in front of the words =========================

1.LAMP Environment Construction Please check this log:http://blog.163.com/wangke_email/blog/static/150335003201610315142268/

2. This is just a simple discuz installation tutorial, in-depth content will be covered later.

3.discu-3.2 Download path:http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip

========================= Now open Dry ==============================

Idea: Set up a Web site Directory > unzip and copy the site project package > empower the Site Directory > create a database and user > Configure the httpd vhosts Virtual host > visit the website to complete the installation according to the boot

1. Create a Site Directory

Mkdir/data/discus

2. Unzip and copy the Web project package

① Decompression

unzip–d/usr/local/src/discuz3.2 Discuz_x3.2_sc_utf8.zip

② Copy

cp–r/usr/local/src/discuz3.2/upload/*/data/discus/

#-R option is recursive meaning

3. Assigning rights to the site Directory

Chown–r Daemon:daemon/data/discus/config/data/discuz/data/data/discuz/uc_client/data/discus/uc_server

The #-R option is recursive, because Discuz uses the httpd user, and the HTTP user is daemon, so here daemon is empowered.

4. Establish the Discuz database and set up users and passwords

① establishing Discuz Database

Create DATABASE discus;

#命令中的discus是数据库的名称, this can be customized according to your needs.

② Creating a user

Create user discus identified by ' discuz123 ';

#命令中discuz是用户名, discuz123 is the password, which can be customized according to your own needs.

③ permissions granted to a database by an authorized user

Grant privileges on discus.* to ' discuz ' @ ' localhost ' identified by ' discuz123 '

5. Configure APACHE-HTTPD Add Discuz virtual machine

① loading httpd-vhosts.conf files

Vim/usr/local/apache/conf/httpd.conf

#编辑httpd the. conf file, locate the # include conf/extra/httpd-vhosts.conf line and remove the row from the previous #.

② Modifying httpd-hosts.conf files

Vim/usr/local/apache/extra/httpd-vhosts.conf


#编辑httpd The-vhosts.conf file, delete the virtual machine configuration inside, and then copy the following content.


<VirtualHost *:80>ServerAdmin [email protected]            #管理邮箱地址DocumentRoot   "/data/discuz"                         #网站根目录ServerName   discuz.expeak.com                       #网站主域名ServerAlias  bbs.expeak.com                        #网站其他域名 # errorlog  "Logs/dummy-host.example.com-error_log"         #错误日志, not open here customlog  "Logs/dummy-host.example.com-access_log"  common  #访问日志, this does not open <Directory  "/data /discuz ">options indexes followsymlinks includes execcgiallowoverride allrequire  all granted</directOry></virtualhost> 



======================= Copy the above content ============================


7. Access Discuz by setting the primary domain name, based on the Boot initialization forum

① If the domain name does not apply, please join the hosts file.

② If the directory hint cannot be written, grant permissions to the directory.

③ database information is set before filling in.

④ The first time you visit the background, you will be prompted to delete the install/index.php file.




This article is from the "Wang Ke's Technical blog" blog, please be sure to keep this source http://wangxiaoke.blog.51cto.com/5150707/1870112

Building Discuz based on lamp environment

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.