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:
4. Install Discuz
1. Download tar packagewget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
2. Unzip the package
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!