All Products
Search
Document Center

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

Last Updated:Mar 27, 2024

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.

Background information

The procedure described in this topic is suitable for users who are familiar with Linux operating systems and want to build websites in a quick manner.

In this example, the following operating system and software versions are used:

  • Operating system: CentOS 7.4 64-bit

  • Apache: 2.4.6

  • MySQL: 10.3.4-MariaDB

  • PHP: 7.0.27

  • Drupal: 8.3.7

If you want to build a custom Drupal website, see Manually build a Drupal website.

Procedure

Step 1: Create an ECS instance based on a Drupal website image

  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 website image from the search results.

    For information about more image environments, visit the Alibaba Cloud Marketplace website.

  7. Click Select.

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

    Take note of the following parameters. For information about more 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.

    • Security Group: Select a security group in which ports 22, 80, and 443 are open.

Step 2: Install Drupal

  1. Connect to the ECS instance that you created.

    For more information, see Connect to a Linux instance by using a password or key.

  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 on-premises computer and enter http://<Public IP address of the ECS instance> in the address bar to go to the Drupal installation page. Select English as the installation language from the Choose language drop-down list and then click Save and continue.

      image

    2. Select the standard installation method and then click Save and continue.

      image

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

      image

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

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

      image