Drupal - Installation
September 20th, 2007 — VyomaDrupal, is one of the choices you may take among the other CMS. And as I said earlier, there are three things that you need to setup a Drupal powered website - a webserver, PHP and a database. If these are available, you can install a Drupal instance.
Before I go into a bit of details on how you can install Drupal, let us look at what phases a software undergoes before being actually used by the users.
In simple terms, software needs to be developed, tested and then deployed into production. This is generally how it happens in full blown software development scenarios. Do we need all of this for setting up Drupal? In my opinion, you need at least two instances of your website. One that is actually visible and sits in a public URL. Another one where you can develop and test the website.
Hosting costs have come down these days, but yet it might not seem prudent to go setting up your test instance on a server. You can setup a local instance quite easily for Drupal. For setting up a local instance, I usually use the XAMPP package that gives me the full stack of webserver (Apache), MySQL and PHP. (You can get XAMPP from the Apache Friends website).
The installation is quite simple in the present version of Drupal 5. (It is said that it would be more simpler with the Drupal 6 release). I will be explaining how it is done for MySQL as the database.
- Download Drupal. At this point in time, I would advice for using Drupal 5.2 as Drupal 6 would be coming out soon.
- Unzip and put the contents of the folder in your root location. In case of a webhost, it would be in the ‘public_html’ or similar root folder provided for your account. In case of a local instance, and if you have gone for XAMPP, it would be \xampp\htdocs folder.
- Go to phpMyAdmin and create a database - give a proper database name so that it is easily decipherable. Create a database user and give all permissions to that user on that database.
- Open your browser and give the URL that should point you to the root where you unzipped the contents of Drupal download file. In case of a webhost, it will usually be the domain name you parked there. In case of local instance, it will be http://localhost/ or http://localhost/<install folder> depending on how you unzipped the files into htdocs.
- This should automatically fire up the install.php - and it is a pretty easy from here on as it is a guided install. Give the database name, database user name, the password, and you should be good to go.
Always have a process in place where you can develop and test your site separately and move the files and database to ‘production’ or live environment. And before making any new changes to your website, take full backups. It is much easier to restore your website from backups if the changes you put in go wrong. Of course, this is not a problem during installation.
Please use the comment section if you have any doubts or if you need more details.