All Products
Search
Document Center

Simple Application Server:Create a Linux server and build an Apache service by using an OS image

Last Updated:Sep 30, 2025

This topic describes how to create a Linux server using an OS image, and build an Apache service. An Alibaba Cloud Linux image is used as an example.

Prerequisites

Step 1: Create a simple application server

  1. Go to the Servers page in the Simple Application Server console.

  2. In the middle of the page, click Create Server.

  3. On the Simple Application Server page, configure the server.

    The following table describes the parameters. For more information about the parameters, see Create a simple application server.

    Parameter

    Example

    Description

    Region

    Singapore

    Select a region that is close to your customers to improve network access speed. Regions outside the Chinese mainland, such as China (Hong Kong) and Singapore, provide international bandwidth. If you use the server in the Chinese mainland, you may experience high network latency. For more information, see Regions and network connectivity.

    Instance

    • Instance family: General-purpose

    • Plan: $5/month

    Select a type for instance. Click image to view more instance families. For more information, see Instance families.

    image

    Images

    • OS Images: Alibaba Cloud Linux

    • Version: 3.21.04

    On the OS Images tab, select an image.

    Note

    Click Show Other Images to view more images.

    image

    Purchase Settings

    • Quantity: 1

    • Duration: 1 Month

    Select quantity and subscription duration. Auto-renewal is enabled by default.

  4. After the configuration, click Buy Now and follow the instructions to complete the payment.

    After you complete the payment, return to the Simple Application Server console. If the server status changes to Running, it has been successfully created.

    image

Step 2: Remotely connect to the simple application server

Use Workbench to remotely connect to a Linux server. For more information about remote connection methods, see Remotely connect to a Linux server.

  1. On the server card, click Remote Connection.

    image

  2. In the Remote Connection dialog box, select Connect with One-click on Workbench and click Log on Now.

    image

  3. Enter commands in the terminal to manage the server.

Important

When you use the one-click password-free logon feature, you are logged on as the Admin user by default. The Admin user has limited permissions for operations that require root privileges. To connect to the Linux instance as the root user, first set a password or set a key pair.

Step 3: Set up the environment

This section uses Apache service as an example to describe how to set up a server environment. Simple application server provides detailed tutorials about how to set up an environment and build a website.

  1. Install the Apache service.

    sudo yum install -y httpd
  2. Start the Apache service and enable it to start automatically on startup.

    sudo systemctl start httpd
    sudo systemctl enable httpd
  3. Check the status of the Apache service.

    systemctl status httpd

    Apache service is running correctly if you see:apache active

  4. Access the Apache service. On your local computer, open a browser and enter http://<Public IP address of the simple application server> to test access to the Apache service homepage.

    Obtain the public IP address of the simple application server from the server card.

    Apache service is successfully deployed if you see:

    image