How to install Drupal 8.5.3 on Ubuntu 18.04
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
Choose the language to use the Drupal CMS
Select the installation profile
Configure the Database detail
You can see the progress of the installation
Configure the site information
Homepage of Drupal CMS application
with this, the method to install Drupal 8.5.3 on Ubuntu 18.04 comes to an end.
Comments ( 2 )