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.

Image_1

2.Detailed user guide

2.1.Webmin Dashborad

Image_2

2.2.Command Shell

Image_3

2.3.File Manage

Image_4

2.4.UpLoad and Download

Image_5

2.5.Network configure

Image_6

2.6. Disk

Image_7

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

Image_8

3.2.Optimize php performance

Access path: Search -> php

Image_9

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

Image_10

3.4.Configuring ssl_certificate

Access path: webmin->webmin configuration->ssl Encryption

Image_11

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`

4.Visit your web homepage

https://{public-ip}:10000