• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install Drupal CMS – 8.5.0 on Ubuntu – 17.04

2684

How to install Drupal CMS &ndash 8.5.0 on Ubuntu &ndash 17.04

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. This tutorial explains how to install Drupal in Ubuntu 17.04

Prerequisites

Drupal CMS requires a web server to functionally based on LAMP setup on your system and also with following required PHP modules.

apt-get install php-mysql php-curl php-json php-cgi php libapache2-mod-php php-mcrypt php-xmlrpc php-gd php-mbstring php  php-common  php-xmlrpc php-soap  
php-xml php-intl  php-cli  php-ldap php-zip php-readline php-imap php-tidy php-recode

Installing Drupal CMS

Let' s begin with Updating the system repository.

root@linuxhelp1:~# apt-get update
Hit:1 http://old-releases.ubuntu.com/ubuntu zesty InRelease
Hit:2 http://old-releases.ubuntu.com/ubuntu zesty-updates InRelease
Hit:3 http://old-releases.ubuntu.com/ubuntu zesty-backports InRelease
Hit:4 http://old-releases.ubuntu.com/ubuntu zesty-security InRelease
Reading package lists... Done

After updating the repositories create a database for Drupal and configure as follows.

root@linuxhelp1:~# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with   or g.
Your MariaDB connection id is 10
Server version: 10.1.25-MariaDB- Ubuntu 17.04

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

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

MariaDB [(none)]>  CREATE DATABASE drupal 
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>  GRANT ALL PRIVILEGES ON drupal.* TO ' drupaluser' @' localhost'  IDENTIFIED BY ' 123'  
Query OK, 0 rows affected (0.00 sec)
 
MariaDB [(none)]>  FLUSH PRIVILEGES 
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]>  EXIT 
Bye

And then switch to the /tmp directory for downloading the package.

root@linuxhelp1:~# cd /tmp/

You can download the package from the terminal using the following command.

root@linuxhelp1:/tmp# wget https://ftp.drupal.org/files/projects/drupal-8.5.0.tar.gz
--2018-03-27 12:02:30--  https://ftp.drupal.org/files/projects/drupal-8.5.0.tar.gz
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: 15535794 (15M) [application/octet-stream]
Saving to: ‘ drupal-8.5.0.tar.gz’ 

drupal-8.5.0.tar.gz     100%[==============================> ]  14.82M   947KB/s    in 14s     

2018-03-27 12:02:45 (1.05 MB/s) - ‘ drupal-8.5.0.tar.gz’  saved [15535794/15535794]

After downloading, extract the package.

root@linuxhelp1:/tmp# tar -zxvf drupal-8.5.0.tar.gz 
drupal-8.5.0/
drupal-8.5.0/.csslintrc
drupal-8.5.0/.editorconfig
drupal-8.5.0/.eslintignore
drupal-8.5.0/.eslintrc.json
drupal-8.5.0/.gitattributes
drupal-8.5.0/.ht.router.php
drupal-8.5.0/.htaccess
.
.
drupal-8.5.0/vendor/zendframework/zend-feed/src/Writer/Renderer/RendererInterface.php
drupal-8.5.0/vendor/zendframework/zend-feed/src/Writer/Source.php
drupal-8.5.0/vendor/zendframework/zend-feed/src/Writer/StandaloneExtensionManager.php
drupal-8.5.0/vendor/zendframework/zend-feed/src/Writer/Version.php
drupal-8.5.0/vendor/zendframework/zend-feed/src/Writer/Writer.php
drupal-8.5.0/vendor/autoload.php
drupal-8.5.0/vendor/.htaccess
drupal-8.5.0/vendor/web.config
drupal-8.5.0/LICENSE.txt

And then move the extracted package to the apache root directory.

root@linuxhelp1:/tmp# mv drupal-8.5.0 /var/www/drupal

Let' s navigate to the Apache root directory now.

root@linuxhelp1:/tmp# cd /var/www/

We have to change ownership and permission for Drupal directory.

root@linuxhelp1:/var/www# chown -R www-data.www-data drupal
root@linuxhelp1:/var/www# chmod -R 775 drupal

Now we can create a virtual host for the Drupal.

root@linuxhelp1:/var/www# 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> 

After creating the virtual host enable the rewrite module.

root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

And then restart the apache to make the changes effect.

root@linuxhelp1:/var/www# systemctl restart apache2

After that, enable Apache2 modules by running the command below.

root@linuxhelp1:/var/www# a2enmod env
Module env already enabled

root@linuxhelp1:/var/www# a2enmod dir
Module dir already enabled

root@linuxhelp1:/var/www# a2enmod mime
Module mime already enabled

Don' t forget to enable the site access.

root@linuxhelp1:/var/www# a2ensite drupal.conf
Enabling site drupal.
To activate the new configuration, you need to run:
  systemctl reload apache2

Finally, restart the apache2 service to make all the changes to effect.

root@linuxhelp1:/var/www# systemctl restart apache2

Now you can proceed the further installation graphically from the browser by navigating to the following URL http://local IP (or) domain name.
browser_url

First, choose the language for Drupal.
choose_language

And then select the installation profile and continue.
db_details

Next, you need to configure the database of the Drupal CMS.
detail_of_database

Now Drupal will start installing on your server.
install_drupal

After the installation, you must configure the site.
site_information


site_config

Now you will see the welcome page of Drupal CMS.
open_drupal

With this, the method to install Drupal CMS 8.5.0 on Ubuntu &ndash 17.04 comes to an end.

Tags:
gibbons
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What version of PHP is Supported by DRUPAL CMS?

A

DRUPAL CMS in Ubuntu requires PHP 5.3.2 or higher

Q

Need tutorial on Centos for the same?

A

refer this link, https://www.linuxhelp.com/how-to-install-drupal-in-centos/

Q

What Webserver can be used to configure Drupal CMS in Ubuntu?

A

Apache Is recommended but also you can use nginx for configuring Drupal CMS.

Q

what is the system requirements?

A

At least 5 MB of webspace
PHP 4.3.0 or higher (recommended PHP 5.2)
MySQL 4.1 or higher
JavaScript enabled browser

Q

How can I use MySQL instead of MariaDB?

A

yes. You can use any type of database as per your choice and preference.

Related Tutorials in How to install Drupal CMS – 8.5.0 on Ubuntu – 17.04

Related Tutorials in How to install Drupal CMS – 8.5.0 on Ubuntu – 17.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to install Drupal CMS – 8.5.0 on Ubuntu – 17.04

Related Forums in How to install Drupal CMS – 8.5.0 on Ubuntu – 17.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install Drupal CMS – 8.5.0 on Ubuntu – 17.04

Related News in How to install Drupal CMS – 8.5.0 on Ubuntu – 17.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.