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.
For more information about Drupal, visit the official Drupal website.
You can also manually build a Drupal website on an ECS instance. For more information, see Build a Drupal website on an Alibaba Cloud Linux 2, Alibaba Cloud Linux 3, or CentOS 7.x instance.
Procedure
Step 1: Use a Drupal image from Alibaba Cloud Marketplace to create an ECS instance
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.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
On the Instance page, click Create Instance.
In the Image section of the Custom Launch tab, choose
.Enter
Drupal on LAMP CentOS 7.4 Lite
in the search box and then click Search. Select a Drupal image from the search results.NoteBy 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.
Click Select.
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.
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
Connect to the ECS instance that you created.
For more information, see Use Workbench to connect to a Linux instance over SSH.
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****.
Install Drupal.
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.Select Standard and click Save and continue.
Enter the database information obtained in Step 2 and then click Save and continue.
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.