Thursday, March 11, 2010

Install Drupal with XAMPP in Ubuntu

Hi New Buddies/Developer,

I'm assuming that you already install xampp in ubuntu machine,if not please install xampp in ubuntu machine by following link

Requirments to Install Drupal
1) Please download latest drupal tar from drupal.org

Note I am considering drupal-6.12.tar.gz here,so you can change to latest version.

Install Drupal

Let’s install Drupal by extracting its content to “opt/lampp/htdocs”:

1. Locate the file drupal-6.12.tar.gz.
2. If it’s not on your Desktop, move the file there.
3. Open the Terminal, enter the following command:

sudo tar xvfz Desktop/drupal-6.12.tar.gz -C /opt/lampp/htdocs

1. Let’s rename “drupal-6.12″ folder to a cleaner name, “drupal”.
2. Enter the following command:

sudo mv /opt/lampp/htdocs/drupal-6.12 /opt/lampp/htdocs/drupal

Test Drupal

Okay, we can now verify whether Drupal has installed correctly:

1. Open your web broswer.
2. Enter the following address:

http://localhost/drupal

You should see this page:


Drupal Setup
Create a Database

In this section, we create a new database for Drupal to store data:

1. Open your web browser.
2. Enter the following address:

http://localhost/phpmyadmin/

1. In the Create new database text box, type in a name for your database (I named mine “creativebushido”.)
2. Click the Create button.

Configure Drupal

Having completed the installation of XAMPP, Drupal, and a brand spanking new database, we can finally go ahead and configure Drupal:

1. Open your web browser.
2. Enter the following address:

http://localhost/drupal

1. Click the Install Drupal in English link.
2. You will be likely to ecounter the following page:




Don’t fret! First, we make a copy of default.settings.php and rename it to settings.php.

1. Open the Terminal, enter the following command:

sudo cp /opt/lampp/htdocs/drupal/sites/default/default.settings.php /opt/lampp/htdocs/drupal/sites/default/settings.php

Next, we need to grant permissions to the settings.php file so that it’s writeable:

1. Enter the following command (press Enter after each line):

cd /opt/lampp/htdocs/drupal/sites

sudo chmod a+w default

sudo chmod a+w default/settings.php



That should have solved all the problems! Okay, now you should be able to see the Database configuration page in your browser:


Notice that I have entered a name for my database, the same name I’d used earlier. Make sure you do the same.

Once you clicked the Save and continue button on the Set up database page, you will be directed to the Configure site page, like the picture below:


For security purposes, it tells you to remove write permissions to the settings.php file. Let’s do that:

1. Open the Terminal, enter the following command:

sudo chmod a-w /opt/lampp/htdocs/drupal/sites/default/settings.php

Finally! You are now ready to enter some important informations for your new web site.

Fill out the the required information for the Site information and Administration account sections. Make sure you remember the username and password you’ve entered!



Once all the informations are filled out, click the Save and continue button.

Voila! Give yourself a pat on the back! You have just completed installing Drupal on your computer!




I hope this has been useful. If you have any technical issues, Please feel free to post your error to me.

I'm glad to creativebushido.wordpress.com blogs for to post this blog :)

No comments:

Post a Comment