Contribute to Drupal Part 1/2

A brief Introduction

Drupal is an open source content management platform powering millions of websites and applications. It is written in PHP .It’s built, used, and supported by an active and diverse community of people around the world.It is been used by many websites ranging from personal blogs to many of the corporate,political and government websites.

The standard release of Drupal is called the Drupal core.It contains the basic features of content management systems.It is a simple website where you can add contents.You can change themes according to your wish.

There are many developers who are actively working in the community.The issues are solved in a very short period of time and they try to make it bug free.Drupal 8 is the latest version of Drupal.It has recently achieved zero critical issues.This is really a great achievement and becoming a part of this organisation is something really special.

Drupal promisies students with lots of opportunites.There are frequent Drupal conference happening around the globe.You can conduct sessions as speakers.Moreover.drupal is also an active Google summer of code organisation.Staying in the community will definitely benefit you a lot.You can work with a lot of experienced developers around you and explore many new interesting things.There are many mentors who are ready to help you at any point of time.

Installing Drupal

Ensure that you have installed git in your system.We will be cloning the git repository of Drupal.
Also make sure that you have LAMP(Linux,Apache,MySql,php) installed in your system.If you have PhpMyadmin installed in your system it will be really helpful especially working with the database.
I hope you will take care of the installation of the above softwares.These are the general prequisites.LAMP supports with lots of interesting features which you can explore.

Now,lets move into installing Drupal.The latest version of Drupal is Drupal 8.So,since we are mainly foccusing on the developer approach,lets clone a developer version of Drupal 8.Lets start with 8.0.X version.
Once you have installed the LAMP,I hope you get /var/www/html location.Inside that create any folder
$mkdir drupal8
$cd drupal8
So,to start cloning enter
$git clone –branch 8.0.x
This will give you the Drupal 8 cloned into your system.Once the cloning is done,we need to start the installation process.Open your browser and go to the location of the drupal.It will be most probably localhost/drupal8/drupal.
I hope you got something like the figure given in Figure 1.
Figure 1
Figure 1:Installing Drupal
You are asked to chose the language.Select your language and click on save and continue.
Now,click on standard.This will be having all the required basic features of Drupal.

Now you will be lead to the Drupal requirements page.Ensure you are passing all the conditions.If you get a red mark across any of the requirement,fix it before going forward.

Clean url was a issue which haunted me quite often.I could fix it by a very simple approach.What is a clean url?If you have left the clean url issue and went ahead with the installation,the Drupal will get installed in your system.But,when you starts using drupal,you will understand the problem.If you click on any links in the home page you will be getting “page not found”.When I added an index.php soon after drupal in the url,i.e localhost/drupal8/drupal/index.php/something,I could reach the required link,But,as you all know it is tedious to add index.php every time.So I have found a small fix for the above issue.

$sudo a2enmod rewrite

Open your apache file
$sudo gedit /etc/apache2/apache2.conf
Usually the localhost will be in /var/www/html,so add following lines at the bottom of the apache file

AllowOverride All

AccessFileName .htaccess

Now,restart the apache server
$sudo service apache2 restart

Now,refresh the requirements page,the issue will be fixed by now.
Once all the basic requirements are done,you need to do some small steps.
You need to create a directory sites/default/files
$mkdir sites/default/files
Now,make the directory writeable by
$chmod a+w sites/default/files
Now create a new file sites/default/settings.php and copy the contents from sites/default/default.settings.php to the new file
$cp sites/default/default.settings.php sites/default/settings.php
Now,make the file created writeable by
$cp sites/default/default.settings.php sites/default/settings.php
Now,once you are done with all the requirements,you will be You will be guided to the database configuration page.
Figure 2
Go to your phpmyadmin.Open a new tab and go to localhost/phpmyadmin
Login with your user credentials.
Click on database.Under the create database ,enter any database name and click on create.
You will see the new database created in the database list.
Now go back to the installation page.Enter the database you have created Also add your database username and password.Once you are done,click on save and continue.
Once the database details you have entered is verified,the drupal installation begins.I hope you are able to see something like Figure 3.
Figure 3:Installing Drupal
Figure 3
It may take couple of minutes to complete.
When the installation ends,start configuring your sites.Add a stylish site name.Give a site email address.Fill all the fields as per the instrucion given in the page.
You have now build a Drupal site.You can now see something figure 4.
Figre 4:Drupal website
Figure 4
You can go through the vaious links and start exploring and experiencing drupal.I am sure you would have loved this installation.It didn’t take much long.
If you go to appearance,you can change the them.You can either selecct themes from the given themes or install from .Copy the address of the tar file that you would like to install.Select install new theme in appearancePaste the link and click on install.The new theme gets installed.
I hope you are okay with the installation process.

I think this seems to get longer.So.please visit my next post for further data.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s