Install Discuz and Discuz

Source: Internet
Author: User

Install Discuz and Discuz

======================================Preface======================================

1. LAMP environment setup please view this log: http://blog.163.com/wangke_email/blog/static/150335003201610315142268/

2. This is just a simple Discuz installation tutorial, which will be discussed later.

3. Discu-3.2 download path: http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_ SC _UTF8.zip

 

 

======================================Start now====================================

 

Idea: create a website storage directory> decompress and copy the website project package> grant permissions to the website directory> Create a database and a user> Configure the httpd vhosts VM> access the website and complete the installation based on instructions

 

1. Create a website storage directory

1 mkdir /data/discus

2. decompress and copy the website project package

① Decompress

1 unzip –d /usr/local/src/Discuz3.2 Discuz_X3.2_SC_UTF8.zip

② Copy

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

#-The r option indicates recursion.

3. Grant website directory permissions

1 chown –R daemon:daemon /data/discus/config /data/discuz/data /data/discuz/uc_client /data/discus/uc_server

# The-R option indicates recursion. Because discuz uses httpd users, while http users use daemon, daemon is authorized here.

4. Create a discuz database and set the user and password

① Create a discuz Database

1 create database discus;

# The discus in the command is the name of the database, which can be customized as needed.

② Create a user

1 create user discus identified by 'discuz123';

# In the command, discuz is the user name and discuz123 is the password, which can be customized as needed.

③ Authorize the user permissions on the database

1 grant privileges on discus.* to 'discuz'@'localhost' identified by 'discuz123';

 

5. Configure apache-httpd to add a discuz VM

① Load httpd-vhosts.conf files

1 vim /usr/local/apache/conf/httpd.conf

# Edit the httpd. conf file, find the # Include conf/extra/httpd-vhosts.conf line, and remove the # above the line.

② Modify the httpd-hosts.conf File

1 vim /usr/local/apache/extra/httpd-vhosts.conf

# Edit the httpd-vhosts.conf file, first Delete the virtual machine configuration inside, and then copy the following content.

 

=====================================Copy the following content (if you have any questions, do not copy # comment) ======================================

<VirtualHost *: 80> # virtual host ServerAdmin webmaster@dummy-host.example.com # manage mail address DocumentRoot "/data/discuz" # website root directory ServerName discuz.w.ak.com # website main domain name ServerAlias bbs.w.ak.com # Website other domain name # ErrorLog "logs/dummy-host.example.com-error_log "# error log, # CustomLog "logs/dummy-host.example.com-access_log" common # access log, <Directory "/data/discuz"> # Set the Directory permission Options Indexes FollowSymlinks except des ExecCGI # The container parameter option AllowOverride ALL #. htaccess file option Require all granted # Allow all requests </Directory> </VirtualHost>

 

 

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

 

7. Access Discuz through the configured primary domain name and initialize the Forum according to the instructions

① If the domain name is not applied, add the hosts file.

② If the directory prompts that the data cannot be written, grant the directory permission.

③ Set the database information.

④ The first access to the background will prompt you to delete the install/index. php file.

 

 

 

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.