How To Install Drupal CMS On Linuxmint 19

Installation Of Drupal CMS On Linuxmint 19

Installation

Check the Linuxmint version by using the following command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19 Tara
Release:	19
Codename:	tara

Create the database for durpal cms

root@linuxhelp:~# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.21-1ubuntu1 (Ubuntu)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database drupaldb;
Query OK, 1 row affected (0.00 sec)

mysql> create user 'drupaluser'@localhost identified by 'Linuxc#45';
Query OK, 0 rows affected (0.02 sec)

mysql> grant all privileges on drupaldb.* to 'drupaluser'@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye

Download the Drupal installation package using wget command

root@linuxhelp:~# wget https://www.drupal.org/download-latest/zip
--2019-11-18 04:49:27--  https://www.drupal.org/download-latest/zip
Resolving www.drupal.org (www.drupal.org)... 151.101.194.217, 151.101.130.217, 151.101.66.217, ...
Connecting to www.drupal.org (www.drupal.org)|151.101.194.217|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ftp.drupal.org/files/projects/drupal-8.7.10.zip [following]
--2019-11-18 04:49:28--  https://ftp.drupal.org/files/projects/drupal-8.7.10.zip
Resolving ftp.drupal.org (ftp.drupal.org)... 151.101.194.217, 151.101.130.217, 151.101.66.217, ...
Connecting to ftp.drupal.org (ftp.drupal.org)|151.101.194.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28619523 (27M) [application/zip]
Saving to: ‘zip’

zip                           100%[================================================>]  27.29M  1.12MB/s    in 24s     

2019-11-18 04:49:53 (1.11 MB/s) - ‘zip’ saved [28619523/28619523]

Extract the downloaded package using unzip command

root@linuxhelp:~# unzip zip
Archive:  zip
   creating: drupal-8.7.10/
  inflating: drupal-8.7.10/.csslintrc  
  inflating: drupal-8.7.10/.editorconfig  
  inflating: drupal-8.7.10/.eslintignore  
 extracting: drupal-8.7.10/.eslintrc.json  
  inflating: drupal-8.7.10/.gitattributes  
  inflating: drupal-8.7.10/.ht.router.php  
  inflating: drupal-8.7.10/.htaccess  
.
.
  inflating: drupal-8.7.10/vendor/zendframework/zend-feed/src/Writer/Writer.php  
  inflating: drupal-8.7.10/vendor/autoload.php  
  inflating: drupal-8.7.10/vendor/.htaccess  
  inflating: drupal-8.7.10/vendor/web.config  
  inflating: drupal-8.7.10/LICENSE.txt  

Move the Drupal cms directory to apache root directory

root@linuxhelp:~# mv drupal-8.7.10 /var/www/drupal

Set the ownership and permission for Drupal cms

root@linuxhelp:~# chown -R www-data.www-data /var/www/drupal
root@linuxhelp:~# chmod -R 755 /var/www/drupal

Configure the virtual host for accessing the Drupal cms

root@linuxhelp:~# vim /etc/apache2/sites-available/drupal.conf
<Virtualhost *:80>
        Servername www.linuxhelp1.com
        Documentroot /var/www/drupal
<directory /var/www/drupal>
allowoverride all
allow from all
</directory>
</virtualhost>

Disable the default site access

root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2

Enable the site access for Drupal cms

root@linuxhelp:~# a2ensite drupal.conf
Enabling site drupal.
To activate the new configuration, you need to run:
systemctl reload apache2

Enable the rewrite module

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2

Once all the step is completed restart apache service

root@linuxhelp:~# systemctl restart apache2

Now switch to browser and enter your domain name Select the language Select the profile Configure the database Installation is in process Configure the site setting This is the dashboard of drupal cms This is the method to install drupal cms on linuxmint 19 and the tutorial comes to an end here

FAQ
Q
May I change Drupal's core files to make changes to my site or application?
A
We strongly recommend that you don't. Hacking core means that you won't be able to take advantage of Drupal updates (including any security updates) without losing your changes. It also makes it much less likely that bugs you create will be fixed by the community. Instead, try using the hooks system and theme overrides.
Q
Does Drupal use any code conventions or styles?
A
Yes. Follow the Drupal Coding Standards when submitting any code for inclusion in the Drupal project.
Q
Can I migrate a WordPress site to Drupal?
A
Yes. There are modules like WordPress Migrate to help you.
Q
What is the Drupal Association?
A
The Drupal Association is the non-profit organization dedicated to helping Drupal flourish. It helps the Drupal community with funding, infrastructure, events, promotion, and distribution.
Q
What is the use of Drupal ?
A
Drupal is an open source content Management System used for creating Websites without any PHP coding. It is programmed in PHP and provides GUI for the users to create websites.