Tuesday 29 November 2016

Drupal Install

INSTALLATION OF DRUPAL 8.2.3 ON UBUNTU 16.10



INTRODUCTION



Laptop on which installation was performed:HP Windows 10.
To be able to use Ubuntu ,I used a virtualisation software.It is the Virtual Box which has enabled me to install Linux on Windows.


            Download Virtual box:https://www.virtualbox.org/


Ubuntu is a Linux distribution which is a free and open source software.


            Download Ubuntu 16.10:https://www.ubuntu.com/download/desktop


To be able to have a successful Drupal Installation, I have followed these four steps as shown below:



STEP 1:INSTALL LAMP(LINUX,APACHE,MYSQL,PHP)



Ubuntu must first be updated and the repositories must be in sync.Tasksel is a tool that allows us to install bundles of packages via a single command. In this case,instead of installing Apache,Mysql and Php individually, I use lamp-server via taskel to do the complete installation.


CODE:


  • sudo apt-get update


  • sudo apt-get install tasksel


  • sudo tasksel install lamp-server



STEP 2:GRABBING DRUPAL FROM DRUPAL.ORG



  • First of all,download drupal 8.2.3 from




         I choose drupal 8.2.3,because it is the lastest supported release of Drupal.



  • Use of sudo tar -xvzf drupal-8.2.3.tar.gz to extract file.
          I have used tar ; as the archive is available in compress format.
         
         Therefore, the use of tar can uncompress it.


  • copy file using :sudo rsync -avP drupal-8.2.3/var/www/html


      NOTE:


      I choose rsync, because rsync does differentate file transfer and it is smarter than cp.




  • Result of rsync




  • SET PROPER PERMISSION FOR DRUPAL FOLDER


         We must change the permissions so that the server can read all the files, as it 
         shares the same user ID as the files .

  
         CODE:




         sudo chown -Rv www-data:www-data/var/www/html
        



STEP 3:CREATING DATABASE AND USER FOR DRUPAL



 CODE:


  • CREATE DATABASE  drupaldatabase


  • grant all privileges on drupaldatabse.* to drupaluser@localhost identified by 'T6MP3PLAYER'




THEN DO THE FOLLOWING TO RELOAD MYSQL PERMISSIONS ON NEW DATABASE.    
    

  • flush privileges


  • exit




STEP 4:INSTALL DRUPAL 8.2.3



Open http url for the local apache web session.In my case, it is http://127.0.0.1/drupal-8.2.3/


CHOOSING LANGUAGE


SELECTING AN INSTALLATION PROFILE


REQUIREMENTS REVIEW



NOTE:


As you can see in the Requirement review above, there is a warning notification about clean URLs.A clean URLs is a way of having presentable  URLs,instead of long & hard to remember URLs.


CODE:
     

     sudo a2enmod rewrite


LOADING MOD REWRITE





The file to edit is: 

/etc/apache2/sites-enabled/000-default.conf



CODE:





     sudo nano /etc/apache2/sites-enabled/000-default.conf






SEARCHING FOR /etc/apache2/sites-enabled/000-default.conf


RESULT FOR
SEARCHING FOR /etc/apache2/sites-enabled/000-default.conf


Then,copy this section below.


      <Directory /var/www/html>

      AllowOverride All

   </Directory>


After copied the section,search  for DocumentRoot /var/www/html.

Then,paste it  below DocumentRoot /var/www/html as show below:



PASTING APACHE  CONFIGURATION


Then do control w to save.









DATABASE CONFIGURATION


INSTALLING DRUPAL


INSTALLATION OF DRUPAL HAS BEEN COMPLETED.


With a view to contribute code to Drupal ; I have installed Drupal on Ubuntu with all the steps documented in the set of instructions and in bullet points. In the review, i have some difficulty in setting clean URLs  and this issue has been resolved hence I do not have any issue to report during the installation process anymore.

Thank you for this opportunity.


No comments:

Post a Comment