Step 1 Creating an image
Service List > Image Management Service
Step 2 Applying the created image to a MySQL server
vim script.txt
#!/bin/bash
cd /root
yum install -y httpd php php-fpm php-server php-mysql
systemctl start httpd.service
systemctl start php-fpm.service
systemctl enable httpd.service
systemctl enable php-fpm.service
wget https://labfiles-singapore.obs.ap-southeast-3.myhuaweicloud.com/Discuzenglish.zip
unzip Discuzenglish.zip
mv root/Discuz/* /var/www/html
chmod -R 777 /var/www/html
systemctl restart httpd