How to install Drupal CMS 8.6.1 on MX Linux 17
How to install Drupal CMS 8.6.1 on MX Linux 17
Drupal is a popular open source Content Management System (CMS), which was released under GPL which is written in PHP language. It is used as a back-end framework for most of the websites and also used for knowledge management system. In this tutorial, we will cover the installation of Drupal on MX Linux 17.
Prerequisites
Install LAMP(Apache, MariaDB, php7) In MariaDB (create database and user and give privileges to that user )
Php installation with required following modules
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0
php7.0-common php7.0-xmlrpc php7.0-soap php7.0-xml php7.0-intl php7.0-cli php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl
Installation
Download a Drupal package using the following URL
root@linuxhelp:~# wget https://www.drupal.org/download-latest/zip
--2018-09-12 03:48:19-- https://www.drupal.org/download-latest/zip
Resolving www.drupal.org (www.drupal.org)... 151.101.1.175, 151.101.65.175, 151.101.129.175, ...
Connecting to www.drupal.org (www.drupal.org)|151.101.1.175|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ftp.drupal.org/files/projects/drupal-8.6.1.zip [following]
--2018-09-12 03:48:21-- https://ftp.drupal.org/files/projects/drupal-8.6.1.zip
Resolving ftp.drupal.org (ftp.drupal.org)... 151.101.1.175, 151.101.65.175, 151.101.129.175, ...
Connecting to ftp.drupal.org (ftp.drupal.org)|151.101.1.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26232990 (25M) [application/zip]
Saving to: ‘zip’
zip 100%[==================================>] 25.02M 1023KB/s in 25s
2018-09-12 03:48:46 (1.01 MB/s) - ‘zip’ saved [26232990/26232990]
After Downloading extract the downloaded package
root@linuxhelp:~# unzip zip
Archive: zip
creating: drupal-8.6.1/
inflating: drupal-8.6.1/.csslintrc
inflating: drupal-8.6.1/.editorconfig
inflating: drupal-8.6.1/.eslintignore
extracting: drupal-8.6.1/.eslintrc.json
inflating: drupal-8.6.1/.gitattributes
inflating: drupal-8.6.1/.ht.router.php
inflating: drupal-8.6.1/.htaccess
.
.
inflating: drupal-8.6.1/vendor/zendframework/zend-feed/src/Writer/Renderer/RendererInterface.php
inflating: drupal-8.6.1/vendor/zendframework/zend-feed/src/Writer/Source.php
inflating: drupal-8.6.1/vendor/zendframework/zend-feed/src/Writer/StandaloneExtensionManager.php
inflating: drupal-8.6.1/vendor/zendframework/zend-feed/src/Writer/Version.php
inflating: drupal-8.6.1/vendor/zendframework/zend-feed/src/Writer/Writer.php
inflating: drupal-8.6.1/vendor/autoload.php
inflating: drupal-8.6.1/vendor/.htaccess
inflating: drupal-8.6.1/vendor/web.config
inflating: drupal-8.6.1/LICENSE.txt
Move the extracted file into the HTML directory
root@linuxhelp:~# mv drupal-8.6.1 /var/www/
Navigate to the apache document root directory
root@linuxhelp:~# cd /var/www/
Change ownership and permission of the as Drupal follows
root@linuxhelp:/var/www# chown -R www-data.www-data drupal-8.6.1
root@linuxhelp:/var/www# chmod -R 775 drupal-8.6.1
Create a new virtual host configuration for accessing the Drupal
root@linuxhelp:/var/www# vim /etc/apache2/sites-available/drupal.conf
<VirtualHost *:80>
ServerName www.linuxhelp1.com
DocumentRoot /var/www/drupal-8.6.1/
<Directory /var/www/drupal-8.6.1/>
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
Enable site access
root@linuxhelp:/var/www# a2ensite drupal.conf
Enabling site drupal.
To activate the new configuration, you need to run:
service apache2 reload
Disable default access
root@linuxhelp:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
service apache2 reload
Enable rewrite module
root@linuxhelp:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
Restart the apache service to make the changes effect
root@linuxhelp:/var/www# service apache2 restart
[ ok ] Restarting Apache httpd web server: apache2.
Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://<ipaddress or domain name
You will see the version of Drupal CMS
Choose the language for using Drupal as shown below
You will select the Installation profile of Drupal CMS
Configure the Database setup as follows Snap 5
You will see the installation of Drupal CMS
Configure the Site information and Admin user setup as follow
You will see the Homepage of Drupal as shown below
With this, the method to install Drupal CMS 8.6.1 on MX Linux 17 comes to an end.
Comments ( 0 )
No comments available