: 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.