Dear All,

I've tried to install Drupal in my Windows XP pc environment to serve as localhost before i really put them up on the web.
After weeks of trying, Finally, i manage to set up the drupal sites using only 2 program (ApacheFriends XAMPP
and Drupal 4-6-9). No more PHP or mysql headache. As shown below is the step-by-step procedure i've taken.

1. Download the Apache Xampp program and extract the content into C: or D:. The extractor should auto create teh folder. Assume we select the D: drive. The folder created should turn out to be something like "d:\xampp"

2. Open the "d:\xampp" folder and double click on the "setup_xampp.bat". This shall activate the Apache and MySQL service. Next under the same folder, click on the "apache_start" and "mysql_start". To ensure that the SQL service is running, please goto the ":\xampp\mysql" folder and click on "mysql_installservice".

3. Open the internet browser, enter the url address "http://localhost". If the sites auto direct to http://localhost/xampp and the screen showing the "AMPP for Windows" message. YES, we have finish setting the ApacheFriends XAMPP server.

4. Next, open the d:\xampp\htdocs folder and create a subfolder call "drupal" (d:\xampp\htdocs\drupal). Extract the drupal program into this folder. Remember to change contenty of the "setting.php" located in "d:\xampp\htdocs\drupal\sites\default" folder using wordpad as the following:

....................
$db_url = 'mysql://root:@localhost/drupal';
....................
$base_url = 'http://localhost/drupal';
....................

5. At the internet browser pointing to the http://localhost/xampp, locate the "phpMyAdmin" tools and create a new database call "drupal". The screen shall guide us to the new database created. Select the "import" bar on top of the page. At the file to import prompt, select the browse button and select the file "database.mysql" located in d:\xampp\htdocs\drupal\database" folder. Select the go button. Once the file successfully imported. Now, using the internet browser, goto the "http://localhost/drupal".

6. If you see the header with html code on top and "create tyour first account" link and some other link, YES, YOU ARE AT THE RIGHT PLACE. Select the "Create your first account" link and create your username, as well as enter your email. The system will prompt to login. Once you login, PLEASE CHANGE THE PASSWORD to something which is easier to remember, as the default password by the system will be kind of hard to remember. Once your save your confuguration and the system prompt you that your account bveen created and your are the member of the sites, and showing the times (mintues of connection to the sites).

7. Now, enter the URL address as "http://localhost/drupal" again to go back to the screen as in step 6. Select the link on "Themes", choose the theme of "Chameleon" (selecting both the enable and configure caption). Save your configuration. By this times, your should see your drupal sites is running in localhost with the graphic interface.

Hope the above info help the beginners like me in setting drupal in localhost.

Comments

sivaz’s picture

Hi,
Every thing is fine upto step 5. But I got error at step 5.
I created new database "drupal" using "phpMyAdmin" tools. But I am not able to import "database.mysql" file. (This file is located at d:\xampp\htdocs\drupal\includes" folder,
not at d:\xampp\htdocs\drupal\database" folder).

While Importing "database.mysql" file, I am getting Error like,

ERROR: Unknown Punctuation String @ 1
STR: <?
SQL: <?php
// $Id: database.mysql.inc,v 1.66.2.1 2007/01/22 02:20:50 unconed Exp $
.
.
.
.
.
SQL query:

<?php // $Id: database.mysql.inc,v 1.66.2.1 2007/01/22 02:20:50 unconed Exp $ /** *
@file * Database interface code for MySQL database servers. */ /** * @ingroup
database * @{ */ /** * Report database status. */ function db_status_report($phase)
{ $t = get_t();

MySQL said:

#1064 - You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right
syntax to use near '<?php
// $Id: database.mysql.inc,v 1.66.2.1 2007/01/22 02:20:50 unconed Exp $
' at line 1

Please let me know how do I proceed to get it working?

Thanks,
S

add1sun’s picture

Status: Active » Closed (won't fix)

@sivaz, this is not a support thread - it is for adding docs. Note that the instructions here are old and he is using Drupal 4.6.9. You should follow instructions in INSTALL.txt file for installing the version of Drupal you are using. You can find more info on installation in the handbook: http://drupal.org/node/260.

I'm changing this issue to won't fix since the info is way outdated.