AMH cloud host management panel Linux automatically deploys LNMP environment WebUI open source host panel

Linux server management panel, using AMH to automatically deploy LNMP environment

It is the first in China to support flexible multi-environment panels, software modular architecture design, and high expansion flexibility. Automatic deployment, the panel supports different WEB application environments such as LNMP, LAMP, LNGX, and LNAMP. AMH has provided free version support for 10 years without interruption, and the latest version once again provides commercial licenses for free licensing. Previously paid authorized software, including exception monitoring, database and file synchronization, traffic protection management, load balancing, etc., are all available for free.

AMH It is a fast, simple and lightweightThe server management panel is suitable for beginners to use. Visual software installation is simple and convenient, which saves a lot of moneymaintenance time.

Below using AMH on RedHat 7,Cloud Azure.com provides free Standard B1s (1 vcpu, 1 GiB memory), the Linux version only supports up to RedHat 7.7

For beginners, it is enough to use and can be usedFree blog blog. You can also install mysql5.6 and php7.4, although there is only 100G of outbound traffic per month,Pictures in can be usedCDN distributed to all over the world.

AMH official website:https://amh.sh/

Use AMH to automatically deploy LNMP environments

For this test, AMH automatically deployed the LNMP environment using Azure's B1s server.

Configure the basic Linux environment

First, configure the basic Linux environment of Azure's B1s server.

For SSH remote connection, please refer to:Azure Linux Microsoft cloud host uses Root super user login

Install the YUM enhancement tool. Because it is RedHat 7, the DNF command has not been launched at that time, so you can only use the YUM command for software installation.

The DNF command (Dandified yum) is the next generation version of the traditional YUM package manager for RedHat-based systems. It is Fedora 22, and the default package manager for RHEL8.

yum install yum-utils yum update

Install dnf command

yum install dnf

Installand remi software sources, the dnf repolist all command can view all data sources

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm dnf install https://rpms.remirepo.net/enterprise/remi-release-7.rpm dnf makecachea

Install DNF command to automatically update

dnf install dnf-automatic systemctl start dnf-automatic.timer

Install the development tools package group

dnf group install 'Development Tools' -y

Configure SWAP virtual memory

The swap partition in Linux is similar toVirtual memory, when the physical memory is insufficient, the problem of too small memory can be solved by creating a swap partition.

use free -m Check the server virtual memory. Microsoft B1s enables 2G virtual memory by default. If you feel that the 2G SWAP swap partition is too small, delete the Swap swap partition and re-create a 4G or larger virtual memory SWAP swap partition.

use swapon-s command to view the location of the swap partition.

# Stop Swap swap partition swapoff /mnt/resource/swapfile # Delete the swap partition rm -rf /mnt/resource/swapfile # Delete the boot /etc/fstab configuration content sed -i "/'\/mnt/resource/swapfile swap swap defaults 0 0'//" /etc/fstab

Create Swap partition

# Create a Swap swap partition virtual memory of 8G size sudo dd if=/dev/zero of=/swapfile bs=1024 count=8388608 # View the Swap swap partition size ls -lh /swapfile # Change the permissions of the swap file sudo chmod 600 /swapfile # format the Swap file sudo mkswap /swapfile # enable the Swap file sudo swapon /swapfile # set the boot echo '/swapfile swap swap sw 0 0' | sudo tee -a /etc/fstab

Modifying the server time zone is very important. Sometimes the client and server times are different, and some software will not work.

sudo timedatectl set-timezone Asia/Shanghai

Permanently turn off the firewall. If you need the firewall function, you can set the firewall in the network options on the cloud platform of the Azure B1s server. The firewall settings on the cloud platform are more flexible.

# View the firewall status systemctl status firewalld # Close the firewall systemctl stop firewalld # Permanently close the firewall systemctl disable firewalld

After the basic configuration is completed, reboot the server and start installing the LNMP environment.

Automatically deploy LNMP environments

Enter the AMH panel installation page:https://amh.sh/install.htm

Click Customize Installation and select the version to be installed. Here, select nginx1.20 for the web server software, musql5.6 for the database software, and php8.0 for php.

AMH云主机Linux管理面板-国内首款开源的WebUI主机面板-1

Log in to the Linux server using the root account and execute the following command to install AMH:

wget http://dl.amh.sh/amh.sh && bash amh.sh nginx-1.20,mysql-5.6,php-8.0

Installation tips

Install amh if prompted wget: command not found

Please execute the following command to install the wget command before installing AMH:

#centos system yum install -y wget #Ubuntu system apt-get install -y wget

During the installation of amh, if the server cannot resolve the amh.sh domain name,

Please change the server firstThen install AMH. Execute the following command to complete the replacement of DNS resolution:

echo -e "options timeout:1 attempts:1 rotate\nnameserver 8.8.8.8\nnameserver 114.114.114.114" >/etc/resolv.conf;

If you are unable to access the panel after successfully installing amh, please check whether the hosting provider has security group/firewall related restrictions. Please open ports, such as opening ports 8888 and 9999 on the panel.

AMH7.0 compile and install supported systems

Supported currently ,Ubuntu, All stable versions that have been released fully support systems using x86/x86_64, aarch64/arm64 architecture:

  • 9 x64 New
  • CentOS Stream 8 x64
  • CentOS 7x64
  • Debian 11 x64 (bullseye)
  • Debian 10 x64 (buster)
  • Debian 9 x64 (Stretch)
  • Debian 8 x64 (Jessie)
  • Debian 8 i386 (Jessie)
  • Debian 7 x64 (wheezy)
  • Debian 7 i386 (wheezy)
  • Ubuntu 22 x64 New
  • Ubuntu 20x64
  • Ubuntu 18x64
  • Ubuntu 16x64
  • Ubuntu 16 i386
  • Ubuntu 14x64
  • Ubuntu 14 i386

 

AMH云主机Linux管理面板-国内首款开源的WebUI主机面板-1

On the Chinese installation interface, enter Y and press Enter to install AMH.

The compilation and installation speed is a bit slow, please be patient and wait for a while.

AMH云主机Linux管理面板-国内首款开源的WebUI主机面板-1

The AMH panel in the LNMP environment was successfully installed in 37 minutes.

Enter the access address to log in to the host panel: https://20.231.211.35:9999

AMH username: admin

AMH password: 70dddd708f17

AMH云主机Linux管理面板-国内首款开源的WebUI主机面板-1

There are five items on the main panel, server CPU information, server disk information, server network card traffic chart, server memory information, and server system information. First synchronize the server's system time in the server system information.

Next, you can manage the website and database on the server on the AMH panel. You do not need to use SSH to connect to the server. You can control all settings on the server on the host panel.

AMH云主机Linux管理面板-国内首款开源的WebUI主机面板-1

Click Settings in the upper right corner. In the settings, you can modify the access port and register an authorized account. The current authorized account for AMH isYes, you just need to register on the official website.

AMH云主机Linux管理面板-国内首款开源的WebUI主机面板-1

Registration for an authorized account is also very simple. After entering the account password, verify the mobile phone! After that, you can install the server application software in the software store. Some of the software that requires the purchase of licenses are professional-level software. Novice users basically cannot use it. You can recharge and purchase it when you need it.

AMH云主机Linux管理面板-国内首款开源的WebUI主机面板-1

In the software store, there are some software that can be installed, which can be installed on demand.

AMH云主机Linux管理面板-国内首款开源的WebUI主机面板-1

If you want to successfully build a blog site, you need to install the following software in the software store.

CDN reverse

Updated to lngx-2.6 version. Added WebSocket (ws) anti-generation option, fixed the problem of closing or starting the cache https configuration without updating, added ipv6 monitoring option, fixed the nginx error when changing the environment when the website has concurrency limit, broadband speed limit or traffic protection CDN mode, fixed the virtual host list Click the rule file to jump to the environment management issue. AMH-LNGX reverse proxy environment module. LNGX is Linux+Nginx+X, where X is unqualified. The lngx website environment provides support for cache management and setting up anti-generation sites, supports online keyword addition and replacement, supports setting different types of file replacement, and supports adding custom first and last html code blocks, etc. You can create a lngx environment as a front-end for other environment applications, such as establishing lngx environments in different locations and turning on caching as a CDN accelerated mirror for the site.

pseudo-static rules

Updated to amrewrite-2.0 version, added anti-leeching rule setting options, simplified command line operation, fixed the problem that the subdomain host rule list does not display the association problem, optimized domain name jump and URL rewriting options, adjusted and added 4 default new rules . AMRewrite is the AMH panel environment host URL rewriting module. The module provides adding, editing, deleting rules, maintaining rule files and verifying the correctness of the rules.

SSL certificate management

Updated to amssl-3.6 (v17) version, updated to fix the problem that the default site of the application certificate is not opened, and fixed the problem that ipv4 fails to open http2 when there is ipv6 monitoring. AMSSL is the HTTPS/SSL certificate support module of the AMH panel. It supports custom configuration certificates, automatic and rapid deployment of Lets Encrypt certificates (file verification or DNS verification pan-domain wildcard certificates), automatic renewal function, certificate optimization, http /2. Force https (HSTS) and other functions. Supported AMH environments include LNMP, LAMP, LNMH, and LNGX. HTTPS is a secure and encrypted HTTP channel based on SSL, which is a secure version of HTTP. The AMSSL module supports online custom generation of KEY private keys, CSR signatures, and CRT certificate files, supports data input methods to manage certificates, and enables HTTPS/SSL access support for virtual hosts in the environment.

Memcached caching software

Updated to version 1.6.18 to be compatible with the latest gcc12.2 installation. Memcached is a high-performance distributed memory object caching system for dynamic web applications to reduce database load. It improves the speed of dynamic, database-driven websites by caching data and objects in memory to reduce the number of database reads.

Memcached PHP client enhanced version

Updated and upgraded to pecl_memcached-3.1 (v5) version, supporting the latest PHP8.0. Both pecl_memcache and pecl_memcached are PHP extensions of Memcached software. There are some differences in their functions. The latter is an enhanced version of the former. Memcached (client/php extension) is a caching project that can handle any number of connections and uses non-blocking network IO. Since its working mechanism is to open up a space in the memory and then create a HashTable, Memcached will manage these HashTables by itself.

Redis caching software

Updated to the latest Redis-6.2.6 (v3) version, optimized the stop procedure, and solved the problem of failure to stop redis when a password is used. Redis is a high-performance open source key-value database. Redis is written in ANSI C language, supports network, is a memory-based and persistent log-type Key-Value database, and provides APIs in multiple languages. Redis is similar to Memcached. It supports storing relatively more value types, including string (string), list (linked list), set (collection), zset (ordered set) and hash (hash type).

Redis PHP client

Upgrade to pecl_redis-5.3 version, which is compatible with the latest php8.0. You can choose to install pecl_redis version 2.2, 4.3 or 5.3. pecl_redis is the PHP environment extension module of the AMH panel Redis software. Redis is a high-performance open source key-value database. pecl_redis is the PHP environment interface extension module of Redis. This extension needs to be installed to use Redis in the PHP environment.

If you need email service, you also need to install dovecot+postfix+amsmtp to build an SMTP post office!

score

Leave a Reply

Your email address will not be published. Required fields are marked *