Install drupal in localhost with xampp

My friend ask me to teach her how to install drupal cms in her laptop.

No internet, no lan connection. Just local install.

Here step by step guide Install drupal in localhost :

1. Download latest drupal from here.

drupal0

2. Save in xampp ‘htdocs’ folder and extract it. Make sure to rename it after.

drupal1

Extract Here

drupal2

3.  Start xampp

drupal4

4. Open http://lcoalhost/drupal, click ‘Install Drupal in English

drupal5

5. Ups, there is problem 🙂

Requirements problem
The following error must be resolved before you can continue the installation process:
The Drupal installer requires that you create a settings file as part of the installation process.

1. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php.
2. Change file permissions so that it is writable by the web server. If you are unsure how to grant file permissions, please consult the on-line handbook.

More details about installing Drupal are available in INSTALL.txt.

Simple rename will help.

drupal61

6. Setting database, a few information that you might need to know.

– xampp information page for php located in this address :

http://localhost/xampp/phpinfo.php

-mysqli already supported in xampp.

drupal7

– Create database ‘drupal’ from phpmyadmin with address :

http://localhost/phpmyadmin/

drupal8

7. Edit setting.php

$db_url = ‘mysql://root:123456@localhost/drupal’;
$db_prefix = ”;
$base_url = ‘http://localhost/drupal’;

root = username that have access to drup database

123456 = password root acc

drupal = db name

8. Reopen http://localhost/drupal/install.php

Everything should set up properly, add an account.

drupal10

9.  Installation finish. Since my laptop don’t have email server installed I got error message.

Drupal installation complete

* warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in E:\xampplite\htdocs\drupal\includes\mail.inc on line 193.
* Unable to send e-mail. Please contact the site administrator if the problem persists.

Congratulations, Drupal has been successfully installed.

Please review the messages above before continuing on to your new site.

Ready to move on 🙂

Setting on apache side on ‘Clean URL’ section can be read here.