After you create a simple application server from an application image, you can manage preset applications on the server in the Simple Application Server console.

Prerequisites

A simple application server is created from an application image. For more information, see Create a server.

Background information

In this example, the LAMP 6.1.0 application image is used. The procedure to manage preset applications on servers created from other application images is similar to that for servers created from this application image. Perform operations based on the information displayed on the server details page.

Procedure

  1. Log on to the Simple Application Server console.
  2. In the left-side navigation pane, click Servers.
  3. Click the card of the server that you want to manage to go to the server details page.
  4. In the left-side navigation pane, choose Applications > Application Details.
    You can find the following information on the Application Details page:
    • Image information. You can find the status and image version of the server. If you encounter problems in the use of the image, you can click Contact Service Provider or Help for troubleshooting. Image information
    • The steps to use a server created from the application image. You can perform these steps to build a website on the server with ease. Image tutorial
    • Information of applications. You can find application information such as the usernames, passwords, and addresses used to configure the applications. LAMP informationFor example, for a server created from a LAMP application image, you can perform the following operations on the Application Details page:
      • Click the URL next to Host Address to check whether the server is properly configured.
        If the information shown in the following figure appears, the Apache service is running normally. Apache service
      • Click Copy and then click Connect. In the server command line window that appears, paste and run the copied command to view the logon information of the administrator for the database. MySQL information
    • The installation information of applications. The following figure shows the installation information of applications in the LAMP application image. Application installation information
  5. Configure applications.
    For example, you can create a test web page file in the .html format in the website root directory on the LAMP server and then use the public IP address of the server to access the web page.
    1. In the LAMP Information section, find the website root directory /home/www/htdocs and click Connect.
    2. Run the following command to switch to the root user:
      sudo su root
    3. Run the following command to go to the website root directory:
      cd /home/www/htdocs
    4. Run the following commands in sequence to create a test web page file named test.html and write the test information Test001 to the file:
      touch test.html
      echo 'Test001' >> test.html
    5. On your computer, access <public IP address of the simple application server>/test.html by using a browser.
      If you add or delete files in the website root directory, you do not need to restart the Apache service for the add or delete operation to take effect. If you modify the configuration files of applications, you must restart the Apache service for the modifications to take effect.
      The page shown in the following figure indicates that the web page is accessed. test001

What to do next

You can manually upload actual website projects to the website root directory on the server. If you want to use a website on the server to provide external services, you must bind a domain name to the server and resolve the domain name. For more information, see Bind and resolve domain names.

Alibaba Cloud provides best practices for building websites for your reference. For example, you can refer to best practices to deploy the Mantis Bug Tracker (MantisBT) system based on the LAMP environment or point different domain names to multiple websites deployed on a single server. For more information, see Overview.