Welcome to TechYari!

Tutorials on webdesign, web development and more...

Build a Drupal Website From Scratch : Drupal Beginner Tutorial

By  TechYari     1/03/2013    Labels:,, 

Required Tools

I am writing this tutorial for Windows users. However if you want to setup drupal in Linux or Mac OS X. Just google for an appropriate webserver with PHP 5.3 and up and a MySQL database Server.
  • A Web Server : WAMP ( Download ) – Chose according to your operating system i.e. 32 bit/64 bit
  • A Database : MySQL ( Already included with WAMP Server package)
  • Drupal Core ( Downlaod )
  • A System running Windows XP/VISTA/7

Step 1 : Installing WAMP

Just open the downloaded exe file and run it,  choose a directory where you want to put wamp server files. Chose a partition which has at least 1 GB of space as you will be using it for website setup also. After installing the server go to start menu and click on “start wamp server”, now you will find a logo as “w” in right hand side of the taskbar. Click on it to see all the options to get familiar with it. Now click on start all services.
Now go to your browser (chrome, safari, firefox, IE whatever you prefer) and typehttp://localhost/
this should take you to a page similar to this

if you don’t see this page check for these options
  • Check whether wamp server icon is green or not.( Green means started. Red Means Stopped)
  • Check with following url http://localhost:8080/ or http://localhost:80/
  • if the above solutions don’t work check ur port settings by going to Wamp Server -> Apache -> Service -> Test Port  80

Step 2 : Creating the Database

In order to setup a drupal website you will need to have a database which can store site configurations and data for you. If you have installed wamp server then you already have MySql database installed in your machine. Just make sure your wamp server is running and go to http://localhost/phpmyadmin  or click on the phpmyadmin link in localhost page you visited earlier. Open localhost page and  Use Ctrl +F in browser window to search for the link if you can’ find it. Below is a screenshot of phpmyadmin (it may differ a little bit depending upon the version you have downloaded).

Now put “testsite” as a name in the text field for “Create new database” and hit create button.

Congrats ! you have created a database for your site. Default username for this database will be “root” and password will be blank. As you are testing only in local you can leave it to default. However it’s a good practice to have strong username and password combination for you database.

Step 3 : Creating Your Dream Website : Installing Drupal

Go to the folder where you downloaded the drupal zip or tar file. Extract the folder contents and name it “testsite”. Now copy this folder and paste it inside directory named www of your wamp installation. F:\wamp\www\ or anything else according to your installation.
The folder structure should be \wamp\www\testsite see below for an example..

Now go to    ” testsites/sites/default/”  directory and copy “default.settings.php” file and paste it over there then rename the copied file to “settings.php”.  Bravo ! you are almost done.

Step 4 : Configuring Drupal to work with your Server and Database

Now go to http://localhost/testsite/ on your browser ( Make sure wamp server is running before you hit the url ). You will see something like this..

Leave the default option and click on save and continue. Select your language and one more time click on save and continue. Now enter your database details on the next screen.

Click on save and continue. Now sit back and chill for 2 to 3  minutes as drupal will install all it’s module related tables in the database.
In the next screen configure the site related information. Please open a notepad and save username and password for your future reference as you will need it to login to administrator area.  Look at below screen shot for the same..

On successful installation you will see following message. Don’t worry about the warning as you can not send a mail in localhost. Click on Visit you new website to go to your first drupla site’s homepage.

You will get this page as your default home page. It doesn’t look great as you don’t have any content here and you are using basic drupal theme.

So that’s all. You have setup your drupal website in no time. In next tutorial I will show you how to enable drupal modules and content creation using CCK. Meanwhile go through all the admin options on top menu bar and make yourself comfortable with the user interface.
Please share this post if you find it useful, ask your doubts/questions and provide suggestions using below comment box.

About TechYari

A web developer, blogger, amateur designer and an open source enthusiast.

No comments:

Post a Comment

Contact Form


Email *

Message *


Follow TechYari on


About TechYari

Tech Yari is a Technical Blog featuring articles on Web Development, Web Design, Search Engine Optimization, Social Media Marketting and Programming.