Utilizing the LEMP stack and Webmin on CentOS 7.9
AWS-Marketplace
https://aws.amazon.com/marketplace/pp/prodview-qgki7rn65gky2#pdp-usage
Usage Instructions
*Note
Please replace the instance ID with the actual instance ID of your running EC2 instance, and the Public IP your actual public DNS address.
1.Log in to webmin
https://{public-ip}:10000
Username: root, password: instance ID.
2.Detailed user guide
2.1.Webmin Dashborad
2.2.Command Shell
2.3.File Manage
2.4.UpLoad and Download
2.5.Network configure
2.6. Disk
2.7. More information
Refer to the official course: https://webmin.com/docs/
3.Configuring the WEB Server
3.1.Configuring Nginx
Access path: Servers -> NginX Web Server
3.2.Optimize php performance
Access path: Search -> php
3.3.Configuring mysql
Access path: Servers -> MySQL Database Server
You can use webmin to manage mysql, create users, and configure permissions
Username: root, password: Fleximg!123
3.4.Configuring ssl_certificate
Access path: webmin->webmin configuration->ssl Encryption
3.4.Related commands
- To check php8.0-fpm status: `sudo systemctl status php-fpm`
- To start php8.0-fpm: `sudo systemctl start php-fpm`
- To stop php8.0-fpm: `sudo systemctl stop php-fpm`
- To restart php8.0-fpm: `sudo systemctl restart php-fpm`
- To check nginx status: `sudo systemctl status nginx`
- To start nginx: `sudo systemctl start nginx`
- To stop nginx: `sudo systemctl stop nginx`
- To restart nginx: `sudo systemctl restart nginx`
- To check mysql status: `sudo systemctl status mysqld.service`
- To start mysql: `sudo systemctl start mysqld.service`
- To stop mysql: `sudo systemctl stop mysqld.service`
- To restart mysql: `sudo systemctl restart mysqld.service`
- To restart mysql: `sudo systemctl enable mysqld`
systemctl enable mysqld
- To check Webmin status: `sudo service webmin status`
- To start Webmin: `sudo service webmin start`
- To stop Webmin: `sudo service webmin stop`
- To restart Webmin: `sudo service webmin restart`
- To start php8.0-fpm: `sudo systemctl start php-fpm`
- To stop php8.0-fpm: `sudo systemctl stop php-fpm`
- To restart php8.0-fpm: `sudo systemctl restart php-fpm`
- To check nginx status: `sudo systemctl status nginx`
- To start nginx: `sudo systemctl start nginx`
- To stop nginx: `sudo systemctl stop nginx`
- To restart nginx: `sudo systemctl restart nginx`
- To check mysql status: `sudo systemctl status mysqld.service`
- To start mysql: `sudo systemctl start mysqld.service`
- To stop mysql: `sudo systemctl stop mysqld.service`
- To restart mysql: `sudo systemctl restart mysqld.service`
- To restart mysql: `sudo systemctl enable mysqld`
systemctl enable mysqld
- To check Webmin status: `sudo service webmin status`
- To start Webmin: `sudo service webmin start`
- To stop Webmin: `sudo service webmin stop`
- To restart Webmin: `sudo service webmin restart`
4.Visit your web homepage
https://{public-ip}:10000