Home > Backend Development > PHP Tutorial > CentOS6 installation Discuz!X32 detailed explanation

CentOS6 installation Discuz!X32 detailed explanation

WBOY
Release: 2016-07-29 09:02:24
Original
998 people have browsed it

Install mysql qld start

I will not explain in detail the password modification of MySQL and the settings of remote login here. You can see "Installing MySQL5.6 in RPM Mode" for detailed instructions.

2. Install Apache components

1. Install apache

yum install httpd


2. Start Apache

/etc/init.d/httpd start

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

3. Install PHP

1. Install php

yum install php

2. Install php-mysql connection tool

yum install php -mysql

If you do not install this tool, when Discuz checks the environment, it will report: mysqli_connect() does not support advice_mysqli_connect error

3. Restart Apache

/etc/init.d/httpd restart


Create the following file info.php in
Apache’s default root directory is /var/www/html with the following content:

phpinfo();?>


Then visit: http://ip:/info.php If the following page appears, it means that the PHP installation is successful:



4. Install Discuz

1. Download tar packagewget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip

2. Unzip the packageCentOS6 installation Discuz!X32 detailed explanation
unzip Discuz_X3.2_SC_UTF8.zip

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

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

4. Assign the html file and sub-files Permissions

chmod -R 777 /var/www/html

5. Restart Apache

/etc/init.d/httpd restart

Visit http://ip:/install starts to install Discuz. After the following page appears, follow the prompts on the page to complete the installation of discuz

The above introduces the detailed explanation of installing Discuz!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template