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

How to install Drupal 8.5.3 on Ubuntu 18.04

2847

To install Drupal 8.5.3 on Ubuntu 18.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.

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

Download a Drupal CMS package as follows

root@linuxhelp1:~# wget https://ftp.drupal.org/files/projects/drupal-8.5.3.tar.gz
--2018-05-29 14:42:44--  https://ftp.drupal.org/files/projects/drupal-8.5.3.tar.gz
Resolving ftp.drupal.org (ftp.drupal.org)... 151.101.193.175, 151.101.129.175, 151.101.65.175, ...
Connecting to ftp.drupal.org (ftp.drupal.org)|151.101.193.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15527015 (15M) [application/octet-stream]
Saving to: ‘ drupal-8.5.3.tar.gz’ 

drupal-8.5.3.tar.gz     100%[==============================> ]  14.81M   168KB/s    in 20s     

2018-05-29 14:43:04 (768 KB/s) - ‘ drupal-8.5.3.tar.gz’  saved [15527015/15527015]

The downloaded package is a tar file, so extract the package as follows

root@linuxhelp1:~# tar -zxvf drupal-8.5.3.tar.gz 
drupal-8.5.3/
drupal-8.5.3/.csslintrc
drupal-8.5.3/.editorconfig
drupal-8.5.3/.eslintignore
drupal-8.5.3/.eslintrc.json
drupal-8.5.3/.gitattributes
.
.
drupal-8.5.3/vendor/zendframework/zend-feed/src/Writer/StandaloneExtensionManager.php
drupal-8.5.3/vendor/zendframework/zend-feed/src/Writer/Version.php
drupal-8.5.3/vendor/zendframework/zend-feed/src/Writer/Writer.php
drupal-8.5.3/vendor/autoload.php
drupal-8.5.3/vendor/.htaccess
drupal-8.5.3/vendor/web.config
drupal-8.5.3/LICENSE.txt

Then move the extracted file into the following path

root@linuxhelp1:~# mv drupal-8.5.3 /var/www/

And then switch to the following directory

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

Change the ownership and permission of the file

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

Create a new virtualhost configuration for accessing the Drupal CMS application

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/drupal.conf
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/drupal-8.5.3/

< Directory /var/www/drupal-8.5.3/> 
AllowOverride All
allow from all
< /Directory> 

< /VirtualHost> 

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

Now we have to disable the default access

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

Now we have to 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

Then we need to restart the apache2 service

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

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name
browseroutput

Choose the language to use the Drupal CMS

snap3

Select the installation profile
snap4

Configure the Database detail
snap5

You can see the progress of the installation
snap6

Configure the site information
snap7

Homepage of Drupal CMS application
snap8

with this, the method to install Drupal 8.5.3 on Ubuntu 18.04 comes to an end.


Tags:
landon
Author: 

Comments ( 2 )

linuxhelp
Hi @sivadas the Command to exit that window is 'q' (quits) the command to save and quit is 'wq' usage click esc :wq You need to change the ServerName according to your hostname , rest of the things Works Fine
sivadas
while doing virtual host configuration ,what is the command used to exit that window and whether we have to just copy and paste the virtual host configurtaion details that you have given ? ,can you explain it breifly ..
Add a comment

Frequently asked questions ( 5 )

Q

Can I migrate a WordPress site to Drupal?

A

Yes. There are modules like WordPress Migrate to help you.

Q

Where can I find the Drupal community near me?

A

Drupal is global. Check out our multinational list of communities and our list of regional groups and meetups.

Q

Purpose of uisng the 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.

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

Can I migrate a WordPress site to Drupal?

A

Yes. There are modules like WordPress Migrate to help you.

Related Tutorials in How to install Drupal 8.5.3 on Ubuntu 18.04

Related Tutorials in How to install Drupal 8.5.3 on Ubuntu 18.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 8.5.3 on Ubuntu 18.04

Related Forums in How to install Drupal 8.5.3 on Ubuntu 18.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 8.5.3 on Ubuntu 18.04

Related News in How to install Drupal 8.5.3 on Ubuntu 18.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.