Drupal is a free and open-source content management framework written in PHP and distributed under the GNU General Public License. Drupal provides a back-end framework for at least 2.3% of all websites worldwide – ranging from personal blogs to corporate sites. This article describes how to setup Drupal manually on a CVM.
To manually setup a Drupal-based personal website, you need to be familiar with Linux commands, such as using YUM to install software on CentOS. You should also be familiar with software usage and compatibility.
This article describes how to install the following software
You need a Linux CVM. If you have not purchased one yet, see this article for information on how to get started with a Linux CVM.
Log in to a Linux instance using WebShell (recommended). You can also use other login methods that you are comfortable with:
After logging in, set up LAMP so you can run Drupal. Refer to this article for details.
cd /var/www/html/
wget wget http://ftp.drupal.org/files/projects/drupal-8.1.1.zip
unzip drupal-8.1.1.zip
mv drupal-8.1.1/ drupal/
vi /etc/httpd/conf/httpd.conf
AllowOverride None
in Directory "/var/www/html"></Directory>
and replace it with the following:AllowOverride All
The result is shown below:apache
.chown -R apache:apache /var/www/html
systemctl restart httpd
Instructions for configuring MariaDB user credentials may vary depending on different versions. Consult official MariaDB website for details.
mysql
drupal
.CREATE DATABASE drupal;
user
and set its password to 123456
.CREATE USER 'user'@'localhost' IDENTIFIED BY '123456';
user
all privileges to drupal
.GRANT ALL PRIVILEGES ON drupal.* TO 'user'@'localhost' IDENTIFIED BY '123456';
FLUSH PRIVILEGES;
\q
root
mysql
root
.MariaDB 10.4 for CentOS now allows
root
account to log in without password. Run the following command to set a password forroot
and record it in a secure location.
ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD('your_pasword');
\q
Open a browser window on your local machine and visit the following address to install Drupal.
http://CVM_Public_IP/drupal
Select the language of your preference and click Save and continue
Select Standard installation and click Save and continue
Input relevant database information configured in Configuring a database for Drupal. Click Save and continue
Drupal installation now checks to see if all installation criteria are met. If so, installation starts. If not, error messages appear. Resolve them before continuing.
The configuration page loads automatically after installation is completed. Input information and click Save and continue
Record your maintenance username and password.
The homepage of your Drupal loads automatically. Use the maintenance username and password to log in
You have now successfully set up your Drupal website. Customize your experience as you see fit.
If you encounter a problem when using CVM, refer to the following documents for troubleshooting based on your actual situation.
Was this page helpful?