Install Drupal 7 on the One-Click LEMP Application

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.

Legg igjen en kommentar

The Rise of Machines: Real World Applications of AI

The Rise of Machines: Real World Applications of AI

Kunstig intelligens er ikke i fremtiden, det er her akkurat i nåtiden I denne bloggen Les hvordan kunstig intelligens-applikasjoner har påvirket ulike sektorer.

DDOS-angrep: en kort oversikt

DDOS-angrep: en kort oversikt

Er du også et offer for DDOS-angrep og forvirret over forebyggingsmetodene? Les denne artikkelen for å løse spørsmålene dine.

Har du noen gang lurt på hvordan hackere tjener penger?

Har du noen gang lurt på hvordan hackere tjener penger?

Du har kanskje hørt at hackere tjener mye penger, men har du noen gang lurt på hvordan tjener de den slags penger? la oss diskutere.

Revolusjonerende oppfinnelser fra Google som vil gjøre livet ditt enkelt.

Revolusjonerende oppfinnelser fra Google som vil gjøre livet ditt enkelt.

Vil du se revolusjonerende oppfinnelser fra Google og hvordan disse oppfinnelsene forandret livet til alle mennesker i dag? Les deretter til bloggen for å se oppfinnelser fra Google.

Fredag ​​Essential: Hva skjedde med AI-drevne biler?

Fredag ​​Essential: Hva skjedde med AI-drevne biler?

Konseptet med selvkjørende biler som skal ut på veiene ved hjelp av kunstig intelligens er en drøm vi har hatt en stund nå. Men til tross for flere løfter, er de ingen steder å se. Les denne bloggen for å lære mer...

Teknologisk singularitet: en fjern fremtid for menneskelig sivilisasjon?

Teknologisk singularitet: en fjern fremtid for menneskelig sivilisasjon?

Ettersom vitenskapen utvikler seg raskt og tar over mye av innsatsen vår, øker også risikoen for å utsette oss for en uforklarlig singularitet. Les hva singularitet kan bety for oss.

Funksjonaliteter til Big Data Reference Architecture Layers

Funksjonaliteter til Big Data Reference Architecture Layers

Les bloggen for å kjenne ulike lag i Big Data Architecture og deres funksjoner på den enkleste måten.

Evolusjon av datalagring – infografikk

Evolusjon av datalagring – infografikk

Lagringsmetodene for dataene har vært i utvikling kan være siden fødselen av dataene. Denne bloggen dekker utviklingen av datalagring på grunnlag av en infografikk.

6 fantastiske fordeler ved å ha smarte hjemmeenheter i livene våre

6 fantastiske fordeler ved å ha smarte hjemmeenheter i livene våre

I denne digitaldrevne verden har smarthusenheter blitt en avgjørende del av livet. Her er noen fantastiske fordeler med smarthusenheter om hvordan de gjør livet vårt verdt å leve og enklere.

macOS Catalina 10.15.4 tilleggsoppdatering forårsaker flere problemer enn å løse

macOS Catalina 10.15.4 tilleggsoppdatering forårsaker flere problemer enn å løse

Nylig lanserte Apple macOS Catalina 10.15.4 en tilleggsoppdatering for å fikse problemer, men det ser ut til at oppdateringen forårsaker flere problemer som fører til muring av mac-maskiner. Les denne artikkelen for å lære mer