CentOS6 install Discuz! X32 details

Source: Internet
Author: User
Tags file info
: This article mainly introduces how to install Discuz in CentOS6! For details about X32, you can refer to PHP tutorials. 1. install mysql

1. install mysql

Yum install mysql-server

2. start mysql

/Etc/init. d/mysqld start

For more information about mysql password modification and remote logon settings, see install MySQL5.6 in RPM mode.

II. install Apache components

1. install apache

Yum install httpd

2. start Apache

/Etc/init. d/httpd start

Note: In CentOS, the default Apache root directory is/var/www/html, and the configuration file/etc/httpd/conf/httpd. conf is used. Other configurations are stored in the/etc/httpd/conf. d/directory.

3. install PHP

1. install php

Yum install php

2. install the php-mysql connection tool

Yum install php-mysql

If this tool is not installed, the following error will be reported when Discuz checks the environment: mysqli_connect () does not support advice_mysqli_connect

3. restart Apache

/Etc/init. d/httpd restart

In the default Apache root directory is/var/www/html, create the following file info. php:

Phpinfo ();
?>

Then access: http: // ip: /Info. php:


4. install Discuz

1. download the tar package

Wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_ SC _UTF8.zip

2. decompress the package

Unzip Discuz_X3.2_ SC _UTF8.zip

3. copy all files in the decompressed upload folder to/var/www/html/

Cp-r upload/*/var/www/html/

4. grant permissions to html files and subfiles

Chmod-R 777/var/www/html

5. restart Apache

/Etc/init. d/httpd restart

Access http: // ip: /Install start to install Discuz. after the following page appears, complete the installation of discuz according to the prompts on the page.


The above describes how to install Discuz in CentOS6! X32 details, including content, hope to be helpful to friends who are interested in PHP tutorials.

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.