“A man is not old until his regrets take place of his dreams.”
Tutorial Overview: This article will teach you step-by-step how to configure the system environment, install the open-source AMH hosting panel, and ultimately deploy a WordPress blog running on PHP 8.0 on a brand new Linux server (like Azure B1s).
Before installing the panel, we need to do some necessary initialization on the Linux server. This tutorial uses Azure B1s (CentOS/AlmaLinux based) as an example; other VPS operations are similar.
For servers with small memory (like 1GB on Azure B1s), enabling Swap is key to preventing database crashes. It is recommended to configure 4GB - 8GB of Swap.
Visit the AMH Official Installation Page to get the latest command, or directly use the following customized command (Nginx 1.20 + MySQL 5.6 + PHP 8.0):
After installation is complete, access http://YourIP:8888 or https://YourIP:9999 via a browser. Use the default account and password outputted in the terminal to log in.
Click on File Management in the panel, and navigate to the website root directory (usually /home/wwwroot/lnmp01/domain/your_domain/web/).
Use the Remote Download feature:
1
https://wordpress.org/latest.tar.gz
(Changed to English package link instead of zh_CN)
After the download is complete, select the file and click Smart Extract. After extracting, move all files inside the wordpress folder to the web root directory, and delete the default index.html.
This step is crucial: In File Management, check the web directory, click Permissions, change the owner to www, the user group to www, and check Recursive processing.
Open a browser and visit your domain. You should see the WordPress installation welcome screen. Set up your site title, administrator account, and password, then click Install!