How to Install Drupal on a Local PC

How to install Drupal on Your Local PC (Using WAMP and XAMPP)

What is Drupal?

Drupal is free, open source software that can be used by individuals or groups of users even those lacking technical skills to easily create and manage many types of Web sites. The application includes a content management platform and a development framework.

Who Uses Drupal?

Over 1,000,000 websites run on Drupal. E.g. University of Colorado, Manhattan Associates, Boreal Mountain Resort, University of Minnesota etc

Importance of Drupal

Drupal has many benefits

  • Drupal is Framework, so you can extend Drupal as far you can depend on your programming skill.
  • Wide database type support, MySql, Postgre, SQlite, MariaDB, Oracle,
  • Different server support, Apache, IIS, Nginx, Lightpd
  • Multisite, one installation for many subdomain sites
  • Multilanguage
  • Unlimited User roles, Admin, authentic and Custom roles for specific module, content, and field.
  • Unlimited Tagging
  • Unlimited Content Type, Blog, Article, Page, Forum, Custom type
  • Built-in Forum Engine
  • Import data from another platform. Joomla to Drupal, WP to Drupal, Native HTML to Drupal, Blogspot to Drupal, Feed to Drupal, XML to Drupal, Twitter to Drupal and Native database to Drupal so you can migration to Drupal without losing your Data before.
  • tons of modules
  • Free and more…

 

What is XAMPP/WAMP?

XAMPP is a free and open source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (P). While WAMP is sometimes used as an abbreviated name for the software stack Windows, Apache, MySQL, PHP. They are simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing and deployment purposes.

Importance of XAMPP/WAMPS

WAMP and XAMPP’s designers intended them for use only as a development tool, to allow website designers and programmers to test their work on their own computers without any access to the Internet. To make this as easy as possible, many important security features are disabled by default. They have the ability to serve web pages on the World Wide Web. A special tool is provided to password-protect the most important parts of the package.

Once they are installed, it is possible to treat a localhost like a remote host by connecting using an FTP client. Using a program like FileZilla has many advantages when installing a content management system (CMS) like Joomla, Drupal or WordPress. It is also possible to connect to localhost via FTP with an HTML editor.

How to Install Drupal on Your Local PC

Preparing your PC

  • Download XAMPP or WAMP (Don’t download the two, one is okay)
  • Install XAMPP or WAMP (Don’t install the two, just one will do the what you want)
  • Click Start on APACHE, FILEZILLA, and MYSQL if you installed XAMPP
  • Click on WAMP at the right bottom corner of your PC and click Start All Services

Prepare your DataBase

After installing either of the two-named software above, the next step is creating a database and a database user. But do make sure you rightly install either of the software (XAMPP or WAMP) properly using default settings. So how do you create a database and its user?

  • Open your Browser and go to “LOCALHOST/PHPMYADMIN” (without the quote symbols)
  • Click the “DATABASE” tab at the top of the page
  • In the text tab above the list of default database, enter the name you want your database to be
  • Click on the “GO” button to save your settings

Now, to create the database user

  • Click on the “PHPMYADMIN” logo at the top left corner to go back to home
  • Click on the “USER” tab
  • Scroll to the bottom and click on “ADD USER
  • Fill the credentials as shown below
  • Click on the “GO” bottom to save your settings

You can also read How to install Joomla on a Local PC

Installing Drupal

  • Download Drupal from its official site (Drupal.org)
  • Extract the file downloaded to a place on your PC using WINRAR, 7zip or any other software capable of doing this.
  • Go to your default installation drive for Windows, which is usually Local Disk C (the alphabet “C” can be any alphabet depending on your PC installation drive)
  • Find and open the folder named XAMPP (if you installed XAMPP) or the folder named WAMP (if you installed WAMP)
  • Open the folder named htdocs (on XAMPP) or www (on WAMP)
  • Create a folder and give it a name that you like e.g firstdrupalinstall
  • Copy and paste the files you extracted into a place in your PC
  • Go to your Web Browser
  • Visit Localhost/firstdrupalinstall (which is your folder name) in your web browser address bar
  • Follow the instruction given
  • Enter the Database Credentials (The Database and Database user you created earlier) and submit
  • Enter your Site Credentials the way you want
  • Click on Run Install button
  • Log in to your Drupal Site by entering the login details you provided at the level above

Next time you want to login to your Drupal site, simply end your site URL with wp-login. i.e localhost/firstdrupalinstall/wp-login.

 

Now you have successfully installed Drupal on your local PC, feel free to play around and do what you want before trying to put it on the live server.

It is important to note that if you install WordPress locally on your computer using XAMPP or WAMP, then you are the only person who can see that site. If you want to have a live WordPress site available to the public, then you need to have a Domain and WordPress Web hosting.