What you'll need:

1. Drupal latest version
2. Wamp5 grab it from http://www.wampserver.com/en/index.php

Steps:

1. Install Wamp

2. unzip Drupal into your wamp's www folder. Rename drupal-5.1 directory to drupal (eg C:\wamp\www\drupal)

3. Run WAMP, you should get a wamp icon in your system tray. You need the dial to be white to continue. Note if you run Skype, it interferes with WAMP and so you have to start WAMP without Skype running (and then start Skype if you need it)

4. open a browser window and go to http://localhost/

5. press to phpmyadmin link
in field "create new database" enter drupaldb (it's going to be a database name for this installation).
Press Create.

6. now open http://localhost/drupal
follow the on screen prompts to install drupal.

On screen prompts and what to enter in the boxes:

Database type: mysql
Database name: drupaldb
Database username: root
Database password: (don't put anything in this box)

Save configuration.

7. Create the first account

Username: admin
Enter your email
Then press create

Probably you will get this message:

"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 C:\wamp\www\drupal\includes\common.inc on line 1970."

It's OK. Just enter and confirm password. As this is only for testing locally I'd suggest setting the password to:

admin (or something like that)

Save information.

Press link Home.

Visit administration section, it will say "One or more problems were detected with your Drupal installation. Check the
status report for more information."

Go to status report.

If File system marked as red, press File system link. Press save configuration.
Press Administer link.
Again status report.

If Cron maintenance is red, press run cron manually. Color should change to green.

Now remaining problem is GD library:
Left click on Wamp icon in tray. Choose: PHP Settings -> PHP extensions -> click php_gd2

Refresh your webpage. Color is green everywhere.

Oppa!!! You now have a local copy of Drupal for testing purposes :)

Save address http://localhost/drupal/ to your favorites. You must have running wampserver in order to access your
drupal webpage.

regards,
RedLynx
http://www.izvideo.com

Comments

Works like a charm. Thanks!

Hi,
I couldn't find how to do clean urls with WAMPserver...

Hi Amitaibu,

Enable mod_rewrite in Apache.

I did this by "Config files" -> httpd.conf and removing the "#" from the "LoadModule rewrite_module modules/mod_rewrite.so" config entry.

You may also be able to enable it by "Apache Modules" -> "rewrite_module" (bit I haven't tried this method).

Regards,

Ray Smith
http://RaymonSmith.com

After doing both of the things... It worked!
Oh man, community power :D

Going to 'Apache Modules' and enabling 'rewrite_module' worked for me using WAMP 2.0.

Thanks for the instructions!

~ Merlund

www.goggleson.com | the paintball community

It took me a while to figure this out, so I thought I'd share. If you are using aliases, don't forget to add this line to your Drupal .htaccess, right after "RewriteEngine on":

RewriteBase /your_alias_name_for_your_drupal_install

Tanks tirdadc, a simple solution for a hard problem :D

TEKONET - Desenvolvimento

Site : http://teko.net.br | Email : contato@teko.net.br

Have been searching for a result for a quite some time now.. tried a hell lot of things.. finally your method worked... simple method for this.. you rock sir.. :)

Malabya Tewari
Developer • Open Source. Engineered.

You sir, should wear a cape from now on. :)

Anybody else having trouble getting contrib modules to show up in admin/build/modules?

I'm running drupal-5.7 on wampserver 2.0 under Vista 64, and I've unpacked the modules into sites/all/modules, just like always, but I can't enable them because they don't show up.

hi
i have problem opening phpmyadmin. everything else seems to work fine.i can open localhost & sqlitemanager & my drupal project.
when i go to http://localhost/phpmyadmin/, it gives me error 403

I'm new to wampserver. Their latest version has the latest php 5.2.6, apache, and mysql. Has anyone using this version yet and experienced any issues with it and installing latest version of Drupal 6.x? First install wampserver, then Drupal, correct? Also, I'm installing it on windows 2003..any issues with that platform?

I also downloaded the latest apps seperately but I guess wampserver has them all built in - its about 20mb!

antseo

AntSEO

Thanks to all community members.

I'm not so hot on the wamp install. Its a good way to get started, but it imposes some things on you that will come back to get you if you need to deploy in a non-WAMP environment. You really need to understand the configuration differences between WAMP and a standard PHP install.

beren erchamion
http://tarnaeluin.wordpress.com/

worked perfectly. txs. very much!

Your instructions were excellent and smooth. But, then, I realized I installed Drupal 5x vs. what 6.3, which is what I needed. Guidance?

Same instructions goes for all Drupal installations 5,6,7,etc'.

Trying to install a Drupal 6.4 on a local WampServer 2.0 (Apache Version: 2.2.8, PHP Version: 5.2.6, MySQL Version: 5.0.51b) and when it comes to create the database it doesn't do anything. I enter the database name, user, password etc. press Save and Continue and the form resets itself and database isn't created. Anyone knows why this happens?

You need to first create the DB via phpMyAdmin, then when you install Drupal point it to that DB.

Found a solution, here it is: http://drupal.org/node/172885

Scroll down (about 12 posts) to the one by "Mannual Solution Works", it will have several comments after it saying that fix works...i can vouch, it worked for me too

I have a problem with the performance of the Wampserver2c (and previous versions) running Drupal.
It uses A LONG time to save eg. when I have selected 3-4 moduels at once, or choosing antoher theme.
Just showing "Waiting for localhost" bottom left for about 3-4 minutes, before finishing a module-save. It works, but it's like I actually can go get me a cup of tea while waiting. Very annoying. Especially when testing out modules/themes. Slow all over the whole local site, actually!

Have tried ApacheTriads and Easywamp, same problem.

Is it the network (100 Mbit ethernet w/ a ProLink DSL-router for Internet), apache (2.2.8), mysql (5.51b) or php(5.2.6)??
Tried to install Zend Optimizer, but it won't install, gives me a SP3 message. I have Win XP w/SP3 installed. But the problem was there a half year ago w/o the SP3...

How can I find out what's going on?
Using a DELL Inspiron 500m w/2 Gbyte RAM and 'bout 35 Gigg empty diskspace.

Thanks for ANY type of tips of what to do/where to go to find updated info on tuning W.A.M.P systems.

eivind

I've noticed if you disconnect from the internet (your browser might then switch to "work offline" mode, so then switch that off) then it seems to go a bit faster ...

Hi,

I thought it was only me.

I am getting the same problems as you.

Loading the page running drupal takes 10 secs just for the content.

Loading joomla takes 108ms.

It is getting frustrating.

cheers
Ed
geeksupport.com.au

*Very* late reply ;-) but it might be useful for someone else.

For local installations (i.e. WampServer and stuff like that) try the following quck 'n' dirty trick: Change the type of the tables of Drupal's database, from InnoDB to MyISAM. Not all of them have to be changed to MyISAM actually, but it's easier this way - one big SQL query to change them all...

You can do that by hand in phpMyAdmin ('Operations' tab of each of the tables) or through the SQL tab, with a query like

ALTER TABLE `table1_name_goes_here` ENGINE = MYISAM;
ALTER TABLE `table2_name_goes_here` ENGINE = MYISAM;
etc...

Best Regards
varver

There are known issues on Windows with switching engines. Be very careful and make lots of backups.

I would hazard to guess, based on my testing, that the majority of all these issues (especially the modules admin page) are the result of your anti-virus program. Of the ones I've tried, Symantec's is by far the worst. AVG is reasonably fast in comparison (but still no Linux).

I am new to WAMP and not able to connect my db getting this erron on configuration page for drupal 6.4
Failed to connect to your MySQL database server. MySQL reports the following message: Access denied for user 'test_user'@'localhost' (using password: YES).

* 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.

Thank

very nice m8 helps a ton !!

Jeremiah

http://www.lullabot.com/node/275/play is the link to the video by lullabot.

Medicine,Surgery ...and Drupal.

Medicine, People...Drupal.

Hi,

I want to use WAMP on my local machine to try new things before uploading them to my production site. I tried to back up the production site by copying the entire file structure to the www folder, and then copying the database from the webhost to my machine. I also created a mysql database with the same username and password as I have on my webhost.... but drupal won't run. Any idea what's wrong, or how I should go about setting up a copy of my production site?

Am not really good at this.But,

Is $db_url = in your settings.php pointing correctly.

Medicine ,Surgery ...and Drupal.

Medicine, People...Drupal.

Hello all, I need help.. Installed Wampserver, set up the database successfully, but still can't log in ... And, is there a way I can create a user account without having the password sent to my email address ??

What do you mean you cant login?Could you setup the administrator account for the site?

And, is there a way I can create a user account without having the password sent to my email address ??

Email verification can be unticked under user settings(admin/user/settings) after you login with the adminstrator account.

Medicine,Surgery ...and Drupal.

Medicine, People...Drupal.

Thanx.. I successfully installed drupal !!

Hi, I am new to this, so I could use some help. I'm trying to setup a local drupal install to learn on and I've installed drupal with winampserver but when I try to login, or create an account I am unable to do so because I never have the option to enter a password. After I enter my username and email, it says futher instructions will be mailed, but that the email isn't sent (I assume because its a local install). How can I login as admin?

Thanks

I corrected the issue by reverting to php version 5.2.11. I was set on 5.3 and it gave me a bunch of errors. Just click on the quicklink for winamp in the windows quicklinks and navigate to php-->version.

I have tested and recreated this on several machines.

I have not been able to install Drupal 6.3 and above on WAMP.

6.2, 6.1 and 5.12 can.

My setup:
-WAMP setup using WAMP.exe

Upon installation, being prompted for info for "Database configuration" and entering the required information, if entered correctly, the database does not get setup.

Either the screen returns with the following error:

Failed to select your database on your MySQL database server, which means the connection username and password are valid, but there is a problem accessing your data. MySQL reports the following message: Unknown database 'drupal'.
Are you sure you have the correct database name?
Are you sure the database exists?
Are you sure the username has permission to access the database?
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.

or the "Database Configuration" screen returns, empty.

Drupal 6.2, 6.1 and 5.12 have no problem being setup and communicating with my MySQL.

I had the exact same problem that you did... here is my work around:

for starters:

  • I am running a WAMP 2.0 stack on Vista (PHP5)
  • I have the rewrite_module enabled
  • only on my localhost installations: i created a privilege with the username:drupal and password:drupal
  • I am not installing a multisite
  1. I created a database called drupal6local
  2. I created a folder called d6local where my installation files were placed
  3. In my {www root}/d6one/sites/all/default/setting.php (i changed it from default.settings.php), I change these lines;

    $db_url = 'mysql://username:password@localhost/databasename';
    //$db_prefix = '';

    to:

    $db_url = 'mysql://drupal:drupal@localhost/drupal6local';
    //$db_prefix = '';
  4. Then, from the browser address bar, I navigated to http://localhost/d6local/install.php
  5. The installer ran and I got to the config page :)
    1. Also, there are some problems with running a D6 install (on Vista) with Update Notifications turned on: you can't access any Admin pages... so, for your local installs, leave this un checked and you should have no problems!

      Cheers

- johnvsc

I also had this problem on my local WAMP server, and also on a Linux server. Although I can't really provide any insight as to why it didn't work, I found that installing with version 6.2 and then upgrading to the newest version seems to be a pretty easy solution that worked just fine for me. =)

How do I import Drupal templates ??

Thanks for the tutorial. I was able to get to this point:

open a browser window and go to http://localhost/

but then got the error:

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\drupal\includes\file.inc on line 891

Any idea what I did wrong?

Try increasing the PHP memory limit to 16mb in wamp/bin/apache/apache2.2.8/bin/php.ini (and also maybe through the .htaccess, if this doesn't work) and see how it goes.

Though, technically speaking, I am having the same problem with 6.6 and it didn't help. D6.6 is much slower, than Drupal 5.14 on a local machine for me.

Yura
Doing website usability reviews and providing link building services.

Thanks, do you where in the php.ini file I make that change? I see this snippet, but doubt that would be it:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 128M      ; Maximum amount of memory a script may consume (128MB)

memory_limit is it, but its 128M at WAMP, I guess.

Yura

Thanks, yes I was surprised to see that it was already at 128M. Should I increase it?

No, probably, the problem is with something else.

You can try clearing cookies (or use another browser to install the site), it was suggested as a solution to this error and worked for some.

Yura
Doing website usability reviews and providing link building services.

Thanks for all your help. Tried a different browser with the same effect. I'll give Xampp a shot and see if I have better luck.

Also, tried to make a change to the .htacess file, but I don't see what line in there I would change. I assume you're referring to the .htacess file that comes with the top level drupal directory right?

... worked for me: max_execution_time = 60 (instead of 30)
It seems that wampserver needs to be re-started for this to work.

Check your settings.php. And forget 16MB - go to 128MB.

thanks a lot. Everything working fine.

regards
aroshthilanka

It works perfectly fine. One thing I noticed though was that the pages timed out allot because of the 30 second default for max_execution_time in the php.ini file which I changed to 120

But i have another question. Now i have finished my Drupal Webpage in localhost (with Wampserver) and I don´t know exactly how to migrate the webpage from the Wampserver (localhost) to the hosting provider.

Does anybody know, which are the correct steps to follow? Is there any important point to consider, about the order of doing things?

Where can i find some any easy tutorial to trasfer the webpage from localhost to hosting provider?

Thanks a lot for your help!!

I had great trouble installing drupal 6 on wamp due to the presence of .htaccess file in the /drupal directory. I figured out a solution an thought to share it.

If you are trying to install drupal6 on wamp, and cant reach the installation page try adding an alias in your WAMP control panel in the system tray. Click on the wamp meter icon in systray: goto Apache->Alias directories -> Add an alias and click.

A command line pops up where you give the alias and address to the directory on your local machine. Its pretty simple and straight forward. Just in case it still might not work, try uncommenting this line "# RewriteBase /drupal" in .htaccess in /drupal directory.

If the clean urls options were disabled before, this will also make them work.

hey…
thanx for this wonderful installation procedure…
but i have a few of the problems listed below :

i get the message :
“One or more problems were detected with your Drupal installation. Check the status report for more information.”

but when i click on status reports,something like this comes up all over the screen.

Notice: Undefined offset: 8192 in C:\wamp\www\drupal\drupal\includes\common.inc on line 612

Notice: Undefined offset: 8192 in C:\wamp\www\drupal\drupal\includes\common.inc on line 619

so i cant see any links like red “file system” and regarding cron maintenance.
it does say that ” your cron has not run “, but it follows to same status reports page as i told.

moreover,i clicked on the “php_gd2 ” properly.
all i wanted to know that by default there was a tick over there…but when i clicked,there is no tick,that means its not enabled,so what do we actually want to do,enable it or disable it.

desperately waiting for your reply.
thanks.
Reply

sagar2911

drupal do not work with the last version of php so install a version of wampserver with a older version of php.

Hi all!

I've successfully installed drupal 6.x on WAMPServer 2. However, I have this error on my status report: "HTTP request status Fails". I already checked php_gd2 on PHP settings. What am I missing here?

Thanks!

I spent a whole day trying all of the options listed on this site.

Today I found this GREAT and easy solution on e-how. Took 5 minutes!

If you are running WAMP server for your Drupal 6.x installation then, the default configuration for the WAMP server doesn't not support the "Clean URLs". To enable the Clean URLs you need to change a setting in httpd.conf file. Go to wamp\bin\apache\apache2.2.8\conf folder and open the httpd.conf file with wordpad/notepad. Find the line #LoadModulerewrite_module modules/mod_rewrite.so in this file (in notepad press CTRL+F and write mod_rewrite and the line will appear. Omit the starting # (comment symbol) and save the file.

Now restart all the WAMP server services and go to Clean URLs option under Administrator--> Site Configuration in your Drupal installation. Click the Enable radio button and save configuration.

http://online-how-to.blogspot.com/2009/10/how-to-enable-clean-urls-in-dr...

For Wampserver 2.0i with PHP 5.2.11, drupal 6.14

(1) find \wamp\bin\apache\Apache2.2.11\conf\httpd.conf
(2) Omited the starting # (uncomment) for the line #LoadModulerewrite_module modules/mod_rewrite.so

Works very well

Thank you ! Thank you ! Thank you !

This worked perfectly and the instructions are very easy to follow. Thanks to you, I will be able to try myself at Drupal.

I've got WAMP running on Windows XP, and have gotten used to developing locally under custom aliases and porting my sites to the live server with little to no troubles.

My troubles appear when I attempt to update my local installation with the files and db backup from the live site:

I replace local files with the versions from the server
I change the settings.php to point to the local db and point to the local alias rather than the live base URL
I update the db with the most recent backup from the live site

I go to the local alias, which has been working like a charm this whole time, and it does not work- it shows the local site for about a second and then goes to 'www.alias.com', which is the live site, NOT the local one.

I thought it might be a permissions problem, but I've noticed that changing file permissions on my local drive does not seem to stick the way it would using, say, FileZilla on the remote site. Also results with Dreamweaver, my other way of changing permissions, are that it does not seem to work. I checked the file permissions of local aliases that ARE working, and I notice these too say '0', so maybe this is not the issue?

IS there a step that I am forgetting? It is frustrating to have my aliases break this way. I'd like to be able to update the sites locally so it goes faster and so that I don't boot off as many users taking the site offline.

Thank you for any words of wisdom!

Julia van der Wyk

http://www.pfvdw.com

Did what you wrote, but I can't use my menus on the localhost. I'm beeing redirected to the WAMP Configuration Window.

The link localhost/mysite/user is not working as well.

what's wrong there

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

I installed Drupal in www folder and then created a database known as "trial" after that followed the next step by oening a new tab. I got this error message.

Please help me in sroting out this problem....

Web Developer

Hi I think I had this problem too.

Is it when you are trying to install the Drupal site?

If it is the same problem I am thinking about take a look at this thread. It helped me to fix this error.

http://drupal.org/node/514334

Yup... total noob here.

You didn't say, but I'm going to guess this is an older release of D6 or D5 and your WAMP install includes PHP 5.3. Wamp Server allows you to also download, and switch to, a PHP 5.2 release. Do so.

you awesome!!

I am running under Wamp 2.0i, with Apache 2.2.11, PHP 5.28 and MySQL 5.1.30

Could someone please post what are the reccommended modules and settings to have enabled for Apache and PHP?

I was trying to install drupal-6.16 with wamp 2.0i and it kept giving me

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

Although, I think the solution mentioned at
http://drupal.org/node/514334
will solve the problem.

But, before I found this discussion, I tried installing drupal 5.1 with wamp5 (like mentioned in the tutorial above) (I had to google download sites for them both as they are older versions). The installation went fine for drupal 5.1 with wamp5.

I finally uninstalled wamp5 and tried the installing the latest drupal 6.16 with wampserver 2.0i using the solution mentioned at http://drupal.org/node/514334. This time, the ereg() function error didnt occur, but there were problems on the database configuration page and later problems with clean url, which I resolved using suggestions from the following posts:
- http://www.hostingformula.info/step-by-step-install-drupal-on-wampserver...
- http://www.codeproject.com/KB/MCMS/Drupal.aspx

Cheers.

So, I was wicked excited to find these really simple instructions for setting up a local host for drupal. I'm new to drupal, but I like to think I'm pretty good at following instructions. I followed the first 5 steps as they were outlined, but when I reach step 6 and try to go to http://localhost/drupal ... I get a 404 error: "The requested URL /drupal was not found on this server."

I can't even fathom what to do next.

I'm running Windows XP. I'm using WampServer 2.0. I tried both of the latest drupal 5 and 6. I was working in Mozilla Firefox, but also tried Chrome.

Thoughts?

Upon visiting http://localhost/, you should see the index page of wampserver. Under the 'Your Projects' title, you should see the folders which exist in the www directory (c:\wamp\www\ by default). This is the folder where you must uncompress the Drupal installation file - drupal-6.16.tar.gz at the time of writing this. You will be left with a 'drupal-6.16' folder. Feel free to rename it, but *before* proceeding with the installation.

Regards,
varver

I had that problem and discovered that Skype was using port 80. Turned off Skype and WAMP ran fine.

Hi, as I fill the boxes of database name, user name, but the window repeats every time (I have already created a database).

you need a default.settings.php file in your sites/default folder
AND
a settings.php file ...

so copy the original default.settings.php file and rename 'the copy' to settings.php !

Thanks RedLynx for these instruction to learn new Drupal website developer.

Ziaul Islam

Without this I'd never gotten it intalled. Thanks!

As the four winds blow, my wits through the door
It's been the Worst Day Since Yesterday

It only shows up as the WAMSERVER Homepage. Stuck now, any help would be appreciated.

thank you RedLynx. I followed these steps after totally removing the old Drupal7.12 files from the www folder. without any problem it installed till the end. And this Drupal is up to date now. Thanks again.

But I still need to add mine. I've been going through unlimited frustration for the last week or so troubleshooting many different local server configs and software installs and Port 80 always blocked etc etc.

Using WAMP, I got around those issues. Thank god, It was so annoying! And your instructions here, even using Drupal 7.15, worked like a charm.

Thank you, Thank you, Thank you!

thanks for that. it worked great

great, it's works

I tried this, and had to do a few extra things to make it work. Thought I'd try to save someone else the trouble I went through.

First, I needed to enable mod_rewrite in Apache (as someone else mentioned above)
Then, I needed to increase several limits in php.ini (also mentioned above, I think. I needed to increase maximum file size and some timeouts, I think).
Finally, I could get a clean install to work, but when I downloaded my site from my host, it wasn't working. Some of it worked, but I couldn't run update.php or get to admin/build/modules. Turns out one of the many modules I have installed was at fault. There was an error in the Apache error log, but it wasn't very helpful. I simply installed each of my modules on the clean drupal install until it broke. Once I deleted that module from my site, it worked as well.