×
Community Blog Build a Drupal Website Based on an Alibaba Cloud Marketplace Image

Build a Drupal Website Based on an Alibaba Cloud Marketplace Image

This article describes how to build a Drupal e-commerce website on an Elastic Compute Service (ECS) instance that uses an Alibaba Cloud Marketplace image.

By Alibaba Cloud ECS Team

This article describes how to build a Drupal e-commerce website on an Elastic Compute Service (ECS) instance that uses an Alibaba Cloud Marketplace image.

Background Information

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.

The procedure described in this article applies to users who are familiar with Linux operating systems, but are new to web development on Alibaba Cloud ECS instances and want to build a website quickly.

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

  • Operating system: CentOS 7.3 64-bit
  • Apache 2.4.45
  • MySQL 5.6.36
  • PHP 5.6.30
  • Drupal 8.3.4

Procedure

To build a Drupal website based on an Alibaba Cloud Marketplace image, perform the following steps:

  1. Step 1: Create an ECS instance
  2. Step 2: Select a Drupal website image
  3. Step 3: Install Drupal

Step 1: Create an ECS instance

Create an ECS instance to build a small-sized website for personal use. Then, you can upgrade the configurations of the instance or optimize the architecture as your requirements increase. In this example, an ECS instance of the ecs.c6.large instance type is used.

Step 2: Select 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 a region.
  4. On the Instances page, click Create Instance.
  5. In the Image section of the Custom Launch tab, choose Marketplace Image > Select from Alibaba Cloud Marketplace (including operating system).
  6. Enter Drupal in the search box and click Search to select a Drupal website image.
  7. Click Use.
  8. On the Custom Launch tab, you can see that the Alibaba Cloud Marketplace image that you selected is displayed in the Image section. Assign a public IP address to the instance and complete other settings to create the instance. For more information, see Create an instance by using the wizard.

Step 3: Install Drupal

1.  Access http://<Public IP address of the instance>/phpMyAdmin by using your browser.

You can obtain the public IP address of the instance from the IP Address column corresponding to the instance on the Instances page in the ECS console.

2.  Use the username and password of MySQL provided by the Alibaba Cloud Marketplace image to log on to phpMyAdmin.

3.  In the left-side navigation pane, click NEW. In the top navigation bar, click SQL.

4.  Create a database and user for Drupal.

Enter the following SQL statements in the field and configure the following parameters:

  • drupalDBName: Specify a name for the database.
  • UserName: Specify a user for the database.
  • IP: Enter localhost or 127.0.0.1 if you perform the operations on your computer.
  • UserPassWord: Specify a password for the database.
CREATE DATABASE drupalDBName;
CREATE USER UserName;
GRANT ALL PRIVILEGES ON *.* TO 'UserName'@'IP' IDENTIFIED BY 'UserPassWord' WITH GRANT OPTION;
FLUSH PRIVILEGES;

5.  Click Go.

6.  Access http://<Public IP address of the instance>/drupal by using your browser to go to the Drupal installation page. Select an installation language from the Choose language drop-down list and click Save and continue.

1

7.  Select the standard installation method and click Save and continue.

8.  Enter the information of the created database and click Save and continue.

2

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

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

0 1 0
Share on

Alibaba Cloud Community

889 posts | 199 followers

You may also like

Comments

Alibaba Cloud Community

889 posts | 199 followers

Related Products