1. Prepare the LAMP environment
LAMP is the abbreviation of Linux
, Apache
, MySQL
and PHP
, and is the basic operating environment on which the Discuz forum system depends. Let's prepare the LAMP environment first
yum install mysql-server -y
After the installation is complete, start the MySQL service:
service mysqld restart
Use mysql default account name and password, you can also set your own MySQL account name and password
/usr/bin/mysqladmin -u root password 'Password'
Set MySQL to start automatically at boot:
chkconfig mysqld on
yum install httpd -y
After installation, start the httpd process:
service httpd start
Set httpd to start automatically after booting:
chkconfig httpd on
yum install php php-fpm php-mysql -y
After installation, start the PHP-FPM process:
service php-fpm start
After startup, you can use the following command to see which port the PHP-FPM process is listening on
netstat -nlpt | grep php-fpm
Set PHP-FPM to start automatically after booting:
chkconfig php-fpm on
Two, install and configure Discuz
wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip
After the download is complete, unzip the compressed package
unzip Discuz_X3.2_SC_UTF8.zip
After unzipping, you can see the source code of discuz in the upload
folder
Go to Discuz official website to find an installation package and copy the installation package download path, here we use Discuz_X3.2_SC_UTF8.zip
/var/www/html/
folder by default, we need to copy all the files in the upload
folder to the /var/www/html/
foldercp -r upload/* /var/www/html/
Grant permissions to the /var/www/html
directory and its subdirectories
chmod -R 777/var/www/html
service httpd restart
Finally, you can check through the IP address: http://IP address/install
Tencent Cloud new user benefits: https://cloud.tencent.com/act/cps/redirect?redirect=1040
Recommended Posts