• Create an Alibaba Cloud account. To create an Alibaba Cloud account, go to the Sign up to Alibaba Cloud page.
• Create an ECS instance with a public IP address and deploy it with a LAMP environment. For detailed information, refer to the Build a LAMP stack on a CentOS 7 instance.
Drupal is an open-source content management framework (CMF) written in PHP. It includes a content management system (CMS) and a PHP framework. Drupal allows you to create dynamic websites with various features and services. It is widely used in applications ranging from personal blogs to large communities.
This article is designed for users who are familiar with Linux but new to web development on Alibaba Cloud ECS instances. Alternatively, you can also build a Drupal website using an Alibaba Cloud Marketplace image. For more information, refer to the Build a Drupal website based on an Alibaba Cloud Marketplace image.
In this example, the following instance configurations and software versions are used. However, the actual operations may vary depending on your instance configurations and software versions.
• Instance type: ecs.c6.large
• Operating system: CentOS 7.8 64-bit
• Apache HTTP Server: 2.4.6
• MySQL: 5.7.31
• PHP 7.0.33
• Drupal 8.3.4
1. Access http://<Public IP address of the instance>/phpMyAdmin
by using your browser.
You can find the public IP address of the instance in the IP Address column 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:
CREATE DATABASE <DrupalDBName>;
CREATE user '<UserName>'@'<IP>' IDENTIFIED BY '<UserPassWord>';
FLUSH PRIVILEGES;
Configure the following parameters in the SQL statement:
<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.Note: You can execute the SQL statement show variables like 'validate_password%';
to check the password strength rules for the database.
5. Click Execute.
For more information about the remote connection methods, see Connect to an instance by using VNC.
a) Download the Drupal installation package.
cd
wget http://ftp.drupal.org/files/projects/drupal-8.1.1.zip
b) Decompress the Drupal installation package and move the installation files to the root directory of your Apache website.
yum install unzip -y
unzip drupal-8.1.1.zip
mv drupal-8.1.1/* /var/www/html
c) Download the Chinese translation package.
cd /var/www/html
wget -P profiles/standard/translations http://ftp.drupal.org/files/translations/8.x/drupal/drupal-8.26.zh-hans.po
d) Modify the owner and group of the sites directory.
chown -R daemon:daemon /var/www/html/sites
e) Restart Apache.
systemctl restart httpd
a) User a local browser to access <Public IP address of the ECS instance>
and go to the Drupal installation page. Select the required language from the Choose Language drop-down list, and click Save and continue.
b) Select Standard, and click Save and continue.
c) Enter the information of the configured database, click Save and continue.
d) After the installation is complete, go to the website settings page, enter website information, and then click Save and continue.
After the installation is complete, you can customize your website pages.
Deploying a Java Web Environment on a CentOS 7 Instance Manually
Build a Magento E-commerce Website on an ECS Instance Manually
1,062 posts | 261 followers
FollowAlibaba Cloud Community - January 11, 2024
Alibaba Clouder - May 31, 2019
Alibaba Clouder - February 24, 2020
Alibaba Clouder - June 3, 2019
Alibaba Clouder - June 2, 2020
Alibaba Clouder - July 12, 2018
1,062 posts | 261 followers
FollowElastic and secure virtual cloud servers to cater all your cloud hosting needs.
Learn MoreAlibaba Cloud Function Compute is a fully-managed event-driven compute service. It allows you to focus on writing and uploading code without the need to manage infrastructure such as servers.
Learn MoreHigh Performance Computing (HPC) and AI technology helps scientific research institutions to perform viral gene sequencing, conduct new drug research and development, and shorten the research and development cycle.
Learn MoreA HPCaaS cloud platform providing an all-in-one high-performance public computing service
Learn MoreMore Posts by Alibaba Cloud Community