I am trying to install Drupal locally on my computer that is running Windows XP. Just so I can learn Drupal and test things out before actually doing it on my web server.

I am a complete newbie to all of this.

Can someone please show me exactly how (step by step) or show me where to go that has directions on how install of Drupal on my pc?

I have looked here http://drupal.org/node/161975. But it seems like those instructions assume you already have a knowledge of XAMPP, which I don't, so I really need to be walked through the process.

Thanks so much to anyone who can or is willing to help with this.

Comments

adam_b’s picture

If you just want a local sandbox environment, you could try downloading Uniform Server from http://uniformserver.com/. It contains Apache, PHP, MySQL, etc all set up - you basically just need to unzip Drupal into the www directory.

alldirt’s picture

Yes, uniformserver is amazing. Unpack, click server_start.bat and use your browser to go to localhost/apanel. It will run from every directory and even from a memorystick. It is fully portable.

wisdom’s picture

Installation of XAMPP is straight forward. Just go to XAMPP (apache friends) website and download the self extracting the zip file and install on your PC. It has its own self extraction and installation feature.

After that download and install Drupal in C:\xampp\htdocs\directorytoinstalldrupal\. The directory C:\xampp\htdocs directory is earlier created in XAMPP installation automatically.

Then point your browser to http://localhost/phpmyadmin and create your database. To set up your Drupal website type http://localhost/nameofdirdrupalinstalled. Drupal installation instruction screen will pop up follow that instruction.

You can get a more detail explanation about XAMPP installation from XAMPP apache friends website.

Online Business

R. Jeeves’s picture

Hi. Thanks for the suggestions. But I would really like to use XAMPP as I've already begun with it.

Wisdom, I did as your instructions said. Just created a folder called "Drupal" in htdocs, went to localhost/phpmyadmin, created database called Drupal and then typed in http://localhost/htdocs/drupal and tried http://localhost/drupal. but getting "Object Not Found!" Error 404 message". I know Apache and MYSQL are running.

wisdom’s picture

Have you extracted and installed drupal in the drupal directory you created? It sounds like your web server is not able to find it from the location it is expecting to get.

Remember if you put all the extraction with its original directory structure in drupal directory that you created it could be one directory deep and may not be seen by the web server. Therefore you need to make sure that the index.php and other whole lot of files need to be visible immediately in your Drupal directory structure.

One way you can handle this is just to move all what is inside say Drupal5.x to the drupal directory you created manually or other possibility is to just extract the whole directory in to htdocs and rename it to drupal or any other name of your choice. The second approach is more elegant.

The second one should have worked. http://localhost/drupal you do not need to include htdocs the apached server itself knows from where to serve the pages.

Online Business

gonefishing’s picture

If you named the folder "Drupal" the path would be http://localhost/Drupal/ .

Can you post a list of the files that are in your "Drupal" folder?

R. Jeeves’s picture

Hi Guys,

Thanks so much for all of your help. Sorry it took a while to get back to you.

Okay, well it seems like I just needed to completely remove all instances of XAMPP and remove the services. I did that, and I was actually able to get to the configuration page after installing drupal in htdocs and creating the database in phpmyadmin!

But NOW i'm running into problems again. Where it asks me for the database name i just put in the name and the username and click on
"Save configuration".

But then the next page says this:

Failure to connect to your MySQL database server. MySQL reports the following message: Access denied for user 'Cleveland'@'localhost' (using password: NO).

* Are you sure you have the correct username and password?
* Are you sure that you have typed the correct database hostname?
* Are you sure that the database server is running?

For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

Is there a file or something in the drupal install that needs to be change with the database and username I specify???

If you guys need to know the database and username I will tell you.

Thank you!

wisdom’s picture

In a fresh drupal install you need to enter database name, database user name and password and other optional parameters in the automatic installation procedure. But at first the databse need to be created manually. To create the database you can use phpmyadmin.

From the problem it sounds it is database connection problem. Check if you have created mysql database user name and password using phpmyadmin (http://localhost/phpmyadmin). Those informations you need them when you install drupal. Cleveland@localhost seems does not have a password defined in mysql server or that password and user name is not entered in drupal installation form properly.

Other possibility is if you have installed drupal before and you are trying to use that same code the config.php file which is found in /pathtodrupal/sites/default/ directory could be written by drupal
setting the installation profile. In your second installation attempt those installation profiles might be reused. The installation profle contains database user name, password, mysql server name, etc.

You are close enough to successfully run drupal.

Online Business

R. Jeeves’s picture

Hey Wisdom,

I believe that maybe I didn't create a user name and password in phpmyadmin. All I did there was go to "create new database, type in "drupal" and then went to the next step where you configure it and then getting the error message. Can you tell me where in phpmyadmin I set the database name and password??? Hopefully that's what it is. I'm losing my wits!!! And I'm so close.

Thanks.

gonefishing’s picture

GRANT ALL PRIVILEGES ON drupal.*
TO user_name@localhost IDENTIFIED BY 'password';

I use the above to grant privileges from the command line. Log into mysql eg:

mysql -u root -p rootpassword

H3rnand3z’s picture

try SQLyog MySQL GUI much better than windows command line.

R. Jeeves’s picture

I opened a command prompt and typed that but got error message saying:

mysql is not recoqnized as an internal or external command, operable program or batch file.

i just don't know what to do anymore. I want to use Xammp since I've already gotten so far, but this is just so complicated to me for some reason.

gonefishing’s picture

Does anyone want to help out here? I don't use phpmyadmin. R. Jeeves wants to "GRANT Priveleges" on a database that has been created.

Thanks

GRANT ALL PRIVILEGES ON drupal.*
TO user_name@localhost IDENTIFIED BY 'password';

tm’s picture

windows doesn't know about mysql or its installation, so the command makes no sense. you can either navigate to the mysql folder (or wherever the exe is) and run the command there or, if you plan to do this alot, add the mysql folder to the the global path.

just a suggestion.