Table of contents
1. First open it as NAT and set the address to DHCP automatic allocation.
2. Close the firewall configuration yum source
3. IP a automatically assigns an address
6. Install yum install -y httpd mariadb mariadb-server php php -mysql
9. Install discuz forum package
1. First open it as NAT and set the address to DHCP automatic allocation.
2. Close the firewall configuration yum source
3. IP a automatically assigns an address
4. Install yum install -y php php-mysql
5. Modify the time zone and enter vim /etc/php.ini to comment out; and change the time zone to ShangHai
6. Install yum install -y httpd mariadb mariadb-server php php- mysql
7. Restart
systemctl start httpd
systemctl start mariadb
8. Writing a test page
cd /var/www/html
Enter vim index.php to change the content
If the following interface is successfully accessed after the change, the test page is successful.
Enter vim conn.php under cd /var/www/html and enter
9. Install discuz forum package
First unzip Discuz_X3.3_SC_UTF8.zip
In mobile mv upload/* /var/www/html/
Change the owner to apache or both the owner and the array to apache chown -R apache /var/www/html/*
10. Start the service
systemctl restart httpd
systemctl restart mariadb
Client accesses web server