You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Building websites
Building AMH and setting up a website
Copy page
Download PDF
Building AMH and setting up a website
AMH is a Linux server and virtual host management system that enables web-based server control and management. This topic describes how to set up an AMH website for a production environment on the Linux operating system.​
Software versions​
  • Operating system: In the example provided in this topic, CentOS 7.6 is used.​
  • PHP: A server-side scripting language embedded in HTML documents. In the example provided in this topic, PHP 7.0.33 is used.​
  • AMH: In the example provided in this topic, AMH 6.2 is used.​
Prerequisites​
A Linux instance is purchased, and the associated security group has an inbound rule configured with the TCP protocol and port 8888, as shown in the following table.​
​
Direction​
Protocol/Application​
Port/Range​
Source address​
Inbound​
TCP​
8888​
0.0.0.0/0​
​
Step 1: Download and install AMH​
  1. Execute the following command to download AMH.​
  • ​
    wget http://amh.sh/amh.sh && bash amh.sh​
    ​
  • The following output is displayed:​
  • ​alt​​
  1. Enter 1 and press Enter to complete the installation.​
  1. After the installation is successful, the following output is displayed. Record the AMH address and the usernames and passwords for the AMH administrator and the database.​
  • ​alt​​
tip​
If you forget your password, you can execute the amh amh-6.2 admin change_amh_password new_pass command (replace new_pass with your desired password) to specify a new password.​
Step 2: Access and configure AMH​
  1. Enter http://<ECS instance EIP>:8888 in the local browser to access AMH.​
  • If the following output is displayed, AMH is set up successfully.​
  1. Enter the account and password of the AMH administrator as prompted.​
  • If the following output is displayed, the login is successful.​
  1. Configure the virtual host.​
  1. Click lnmp01 in the "LNMP Environment List".​
  1. The virtual host configuration page is displayed. Specify a value for the "Host identifier domain" and "Associated domain" parameters and retain the default settings for other parameters. As shown in the following figure, click the "Save" button.​
tip​
  • If you use an IP address to access the virtual host, you can enter the IP address in both the "Host identifier domain" and "Associated domain" fields.​
  • If you use a domain name to access the virtual host, make sure that an ICP filing is complete for the domain name and the domain name is resolved to your ECS instance.​
  1. Configure a database.​
  1. Follow the path below and click the "Download and install" button.​
  1. After the installation is complete, click "Database > phpAdmin management", and then click the "phpAdmin" button.​
  1. Go to the database homepage and click the "Account" button in the right navigation bar.​
  1. Click the "Add user account" button. Configure the parameters as shown in the following figure, select "Create a database with the same name as the user and grant all database permissions to the user", and then click the "Execute" button at the bottom to create the database and account.​
  1. Configure FTP.​
  1. Follow the path below and click the "Manage" button.​
  1. Select all options and click the "OK" button​
  1. After the installation is complete, click "FTP Management > Account Management" and add a new FTP account.​
  1. Enter the account information and click the "Save" button.​
  1. Click the "File Management" button corresponding to the account.​
  1. Enter the FTP username and password, and then click the "Log in" button.​
  1. Select the default homepage files ErrorPages and index.html in AMFTP, and then click the "Delete" button, as shown in the following figure.​
  1. Upload website files. In the example provided in this topic, DEDECMS files are uploaded. You can upload system files based on your business requirements.​
  1. Select the DEDECMS files, and click the "Intelligent Extraction" button.​
Step 3: Install the website​
  1. Use a local browser to access the domain name specified in Step 2: Access and configure AMH, and install the DEDECMS content management system.​
  1. Select "I have read and agree to this agreement", and then click the "Continue" button.​
  1. Perform an environment check, and then click the "Continue" button.​
  1. Use the database created in Step 2: Access and configure AMH, and configure the database information.​
  1. Configure the administrator username and password, and then click the "Continue" button.​
  1. After the installation is complete, the following output is displayed, indicating that the installation is successful.​
  1. Click the "Visit website homepage" button to access the website homepage.​
  1. Click the "Log in to website backend" button to access the backend management page of the website.​
Step 4 (Optional): Enable HTTPS for the website.​
When a user accesses your website over the HTTP protocol, the browser warns the user that the connection is not secure. We recommend that you enable HTTPS secure communication for your website. This ensures encrypted data transmission between users and your website, effectively defending against network hijacking, information leakage, and other threats.​
To enable HTTPS, you need to deploy an SSL certificate on your website. You can apply for a free SSL certificate in the Volcano Engine Certificate Center. For more information, see Applying for free certificate and Downloading and installing certificate.​
Last updated: 2026.06.18 17:48:26