All Products
Search
Document Center

Elastic Compute Service:Use an Alibaba Cloud Marketplace image to build a Drupal website

Last Updated:Jan 26, 2025

Drupal is an open source content management framework (CMF) written in PHP. Drupal consists of a content management system (CMS) and a PHP development framework. You can use Drupal to build dynamic websites that provide various features and services. Drupal is commonly used in a variety of applications from personal blogs to large communities. This topic describes how to build a Drupal e-commerce website on an Elastic Compute Service (ECS) instance by using an Alibaba Cloud Marketplace image.

Note

Procedure

Step 1: Use a Drupal image from Alibaba Cloud Marketplace to create an ECS instance

Note

If you want to build a Drupal website on an existing ECS instance and the instance does not contain important data, use a Drupal image from Alibaba Cloud Marketplace to replace the operating system of the instance. For more information, see Replace the operating system (system disk) of an instance.

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. On the Instance page, click Create Instance.

  5. In the Image section of the Custom Launch tab, choose Marketplace Images > Select Image from Alibaba Cloud Marketplace (with Operating System).镜像

  6. Enter Drupal on LAMP CentOS 7.4 Lite in the search box and then click Search. Select a Drupal image from the search results.

    Note

    By default, RedHat is selected for the search of Alibaba Cloud Marketplace images. You can clear RedHat.

    You can click the name of a Cloud Marketplace image in the search results to go to the details page of the image and obtain configuration information of the image. In this example, the Alibaba Cloud Marketplace image has the following configuration information:

    • Operating system: CentOS 7.4 64-bit

    • Apache: 2.4.6

    • MySQL: 10.3.4-MariaDB

    • PHP: 7.0.27

    • Drupal: 8.3.7

    For more information about the Drupal image, visit the Drupal on LAMP CentOS 7.4 Lite image details page.

  7. Click Select.

  8. On the Custom Launch tab, configure the parameters as prompted.

    Take note of the following parameters. For information about other parameters, see Create an instance on the Custom Launch tab.

    • Image: The Alibaba Cloud Marketplace image that you selected is displayed in the Image section.

    • Public IP Address: Select Assign Public IPv4 Address and specify a bandwidth value based on your business requirements.

  9. Select security groups that contain inbound rules to open TCP port 80 and port 3306. If the selected security groups do not contain the rules, add the rules to the security groups. For information about how to add a security group rule, see Add a security group rule.

Step 2: Install Drupal

  1. Connect to the ECS instance that you created.

    For more information, see Use Workbench to connect to a Linux instance over SSH.

  2. Run the following command to view database information.

    • db name: The name of the database is drupaldb.

    • drupaldb database user: The user of the database is drupaldb.

    • password: The password of the database is Hae2caev****.

    image

  3. Install Drupal.

    1. Open a browser on your computer and enter http://<Public IP address of the ECS instance> in the address bar to go to the Drupal installation page. Select English from the Choose language drop-down list and then click Save and continue.

      image

    2. Select Standard and click Save and continue.

      image

    3. Enter the database information obtained in Step 2 and then click Save and continue.

      image

    4. After Drupal is installed, enter the site information on the site configuration page and click Save and continue.

      Then, you can log on to the Drupal website to customize the settings.

      image