• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Monday, June 23, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Install Drupal 7 on the One-Click LEMP Application

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
18
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Introduction
  2. Prerequisites
  3. Step one: Create a database
  4. Step two: Download the Drupal package
  5. Step three: Configure and install Drupal from your browser
  6. Want to contribute?


Introduction

Drupal is a popular open-source content management platform. In this article, we will show you how to install Drupal 7 on a Vultr server based on the One-Click LEMP application.

Prerequisites

Deploy a One-Click LEMP app on your Vultr account. Once the app has finished installing, login as the root user. You may also login as a non-root user, but you will need to use the sudo command throughout this tutorial.

Step one: Create a database

Display the MySQL root password in the terminal, then log into MySQL using that password.

cat /root/.my.cnf
mysql -u root -p

Setup a MySQL database for Drupal. Substitute the database name (drupal) and the username/password (myusername/mypassword) in the example below, if you would like.

create database drupal;
create user 'myusername'@'localhost' identified by 'mypassword';
grant all privileges on drupal.* to 'myusername'@'localhost' identified by 'mypassword' with grant option;
flush privileges;
exit;

Step two: Download the Drupal package

First, delete the default template files created by Vultr.

cd /usr/share/nginx/html/
rm -f background.jpg index.php logo.png

At the time of writing, the latest stable version of Drupal is 7.37. Download and unzip the Drupal package to a user-friendly directory by running the following commands.

wget http://ftp.drupal.org/files/projects/drupal-7.37.tar.gz
tar --strip-components=1 -zxvf drupal-7.37.tar.gz

Remove the archive file that you just downloaded.

rm -f drupal-7.37.tar.gz

Step three: Configure and install Drupal from your browser

Before the installation, you need to copy the default configuration file default.settings.php as a new file called settings.php in the same directory. Do not simply rename the default file, because you need both files for the Drupal installation.

cp sites/default/default.settings.php sites/default/settings.php

Also, you need to add write permissions to directory sites/default and file sites/default/settings.php, or you will encounter a permission error.

chmod a+w sites/default
chmod a+w sites/default/settings.php

Visit http://[SERVER_IP]/ in your browser. Substitute the [SERVER_IP] with the IP address of your VPS. Follow the on-screen instructions to configure Drupal.

On the step of “Choose profile”, you can choose “Standard” to use the standard settings. If you are an experienced Drupal user, you can choose “Minimal” to customize your installation. Click the button labeled “Save and continue”.

On the step of “Choose language”, click “Save and continue” to use English (built-in). If you want to use a language other than English, click the “Learn how to install Drupal in other languages” link.

On the step of “Set up database”, you need to input database parameters as specified below.

Remember to replace the database name drupal, the database username myusername, the database password mypassword, and the table prefix drupal_ with your own ones. Do not modify other fields.

Database type: MySQL, MariaDB, or equivalent
Database name: drupal
Database username: myusername
Database password: mypassword
Database table prefix: drupal_

On the step of “Configure site”, the installation wizard will notify you to remove write permissions to directory sites/default and file sites/default/settings.php. Input the following commands in your terminal window:

chmod a-w sites/default
chmod a-w sites/default/settings.php

Next, input the site name, site email address, administrator’s username, password, and email address from your browser. Select the default country and time zone. Click “Save and continue” to proceed.

On the step of “Finished”, click “Visit your new site” to finish the installation.

That’s it. You have installed Drupal 7 onto your Vultr VPS.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How-To Install Redis from Source

Next Post

Installing McMyAdmin on Ubuntu 14.10

Next Post

Installing McMyAdmin on Ubuntu 14.10

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In