How To Install Drupal CMS On Linuxmint 19
- 00:36 lsb_release -a
- 00:48 mysql -u root -p
- 02:14 wget https://www.drupal.org/download-latest/zip
- 02:31 unzip zip
- 02:51 mv drupal-8.7.10 /var/www/drupal
- 03:04 chown -R www-data.www-data /var/www/drupal
- 03:21 chmod -R 755 /var/www/drupal
- 03:37 vim /etc/apache2/sites-available/drupal.conf
- 04:45 a2dissite 000-default.conf
- 04:57 a2ensite drupal.conf
- 05:04 a2enmod rewrite
- 05:14 systemctl restart apache2
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
Comments ( 0 )
No comments available