Home

Lullabot

Lullabot Ideas

We know stuff. We empower you to know stuff too.

Drupal Module Development Deep Dive Week

London, UK
September 20-24, 2010

Install a Local Web Server on Windows XP using WAMP

Video by Addison BerrySeptember 27, 2007 - 4:09pm

Here is the local web server video for Windows that I promised a few months ago. Local web servers let you work on development and testing right on your own computer. This means you don't have to deal with FTP and/or SSH and can work offline, anywhere, anytime.

This video shows you how to install a web server on Windows XP using WAMP. WAMP is a bundle of all the tools you will need in one package: Apache, MySQL and PHP.

Comments

Bevan (not verified) on September 27, 2007 - 6:31pm

Why not Xampp?

I'm surprised you used WAMP. Did you consider XAMPP?

Anonymous (not verified) on August 6, 2009 - 11:39pm

WHY NOT XAMPP

Because XAMPP is a full with bugs, non-functional, pile of crap!

All thrown onto you by a bunch of arrogant "TRY-AND-ERROR" self-announced pro-amateurs wasting your time, hoping that you would fill their forum with thousands of questions, they themselves, never had thought about it!

Otherwise it would W - O - R - K

David Smith (not verified) on August 20, 2009 - 11:54am

WHY NOT XAMPP

Spoken like a true ID10T!

I've been using XAMPP for over a year and never had a problem until I upgraded to the Apache 2.2 version, in which case, Apache doesn't start.

... Nor does it start in WAMP

... Nor does it start as a standalone...

And since WAMP does not have e-mail, but XAMPP has all, isn't WAMP the "pile of crap?"

P.S. You're the same drone that wrote this same 'wanna-be propaganda' in several other forums, aren't you?

September 27, 2007 - 7:05pm Addison Berry

Recommendations

I don't use Windows myself anymore and I have used XAMPP in the past (long, long ago). I have recently had several Windows users recommend WAMP over XAMPP to me so I figured I would go with that. I have considered doing a XAMPP video as well. Maybe folks that are familiar with both could give some thoughts on the differences between them and why one may be preferred over the other.

NikLP (not verified) on September 28, 2007 - 10:11am

WAMP

I used WAMP a while back and it was all good. Bit of set up time. XAMPP I found to be much more obtuse, with a lot of extra stuff in it that I didn't want/need (PERL, for example).

WAMP is very simple and you can put it on a USB stick pretty easily or just zip the whol ething up and walk away.

Anonymous (not verified) on October 10, 2007 - 5:45pm

XAMPP Lite

If you don't want/need PERL support, you can download XAMPP Lite. XAMPP Lite is the same as XAMPP, except it doesn't include all the bulk you were talking about. XAMPP is the same way regarding USB sticks as WAMP. You can have the server run from your USB stick, if you really wanted to.

Anonymous (not verified) on January 9, 2008 - 7:17am

Installation and configuration Assistance

Hello, I am new to web development, I decided to go for MySQL,PHP and APACHE, I got the individual set up's, however Apache refused to even begin installing on my system, it begins but then would say that it has been interrupted, and it will then give me the click finish option.I installed WAMP5 succesfully, but when I click the "Local host link",the bowser displays "cannot find page, PHPmy Admin gives the same. Please is there any configuration I need to do, and please is there any help I could get for why the Apache refuses to install

Abhi (not verified) on April 18, 2009 - 3:29am

Need information related to web server

Hi
I m new in web server,
I m developing a web site
& for my company i want to make my own web server for windows based,

but how my local IIS server will connect with internet,
How can i access my web page which is loaded my own web server through the internet,
Plz help me

Ray Smith (not verified) on September 27, 2007 - 7:23pm

I have used WAMP for doing

I have used WAMP for doing local development for the last 6 months (low usage) and have had no problems.

Linulo (not verified) on September 27, 2007 - 7:44pm

No problems with XAMPP either

I use XAMPP from Apache friends for several years now and am happy with it. The control panel for starting and stopping MySQL and Apache does not work if run from a restricted Windows account, but granting write permissions to logfiles solves this problem.

As a sidenode, CamStudio is an awesome GPL'ed screen capture program under Windows. I have tried several capture applications including some VNC-based programs but I found CamStudio to be the best by far.

Alexei Rayu (not verified) on September 28, 2007 - 7:11am

Server for Windows

For Russian - speaking users, there is an excellent all-in-one package, called "Danwer", distributed freely. Here's the URL: http://www.denwer.ru/

It installs PHP, SQL, SSI, PHPMYADMIN and much more in a Unix-like tree of directories and then runs by mounting a virtual drive. The setup weighs about 5 megabytes.

The only problem is Russian used in installation. But once you get past it, it's English. Setup is so easy, no video is required to make it so =)

Rich (not verified) on September 28, 2007 - 8:54am

I use Apache2Triad

I started using Apache2Triad when I learned about it from the first Drupal book. The only reason I prefer it over WAMP is that I feel that the mysql admin tool is better than what is provided with WAMP. I have multiple sand boxes that I play in and I use different mysql users and data bases. Phpmyadmin (as far as I know) does not let you manage data base users. I could not figure out (other than the command line) how to add data base users with what is provided with WAMP.

Thanks for the Podcast Addison.

Rich

September 28, 2007 - 11:38am Addison Berry

phpMyAdmin users are under Privileges

Hi Rich,

phpMyAdmin does allow you full control over database users. It isn't necessarily intuitive because it is listed under "Privileges." When you click on Privileges you can edit existing users (so you could set a password for root here) and there is an "Add a new User" link. When creating new users you can choose the global and db permissions they should have.

Rich (not verified) on September 29, 2007 - 10:07pm

Thanks

I will check this out!

Rich

elv (not verified) on September 28, 2007 - 10:18am

Virtual sub-domain

I usually set up a virtual sub-domain so that local.mydomain.com goes in my localhost, while www.mydomain.com still displays the real website.

To set this up in WAMP

1- click the tray icon, go to Config Files -> httpd.conf
At the end of the file there are probably these lines:

<VirtualHost *:80>
   DocumentRoot "C:/Wamp/www/"
   ServerName localhost
</VirtualHost>

Copy them and edit to add your own, something like:

<VirtualHost *:80>
   DocumentRoot "C:/Wamp/www/drupal-5.1/"
   ServerName local.mydomain.com
</VirtualHost>

2- in C:\WINDOWS\system32\drivers\etc (on WinXP) open the "hosts" file, and add a line like this one:
127.0.0.1       localhost local.mydomain.com

Save and close the files, restart the server and it works.

Advantages:
- no path problems with files and images if you have to use absolute paths for some reason
- more consistent if there are several versions of the website : local (on your PC), test, www (on distant servers)

Jayesh Prajapati (not verified) on October 12, 2007 - 5:06am

Virtual Host

I have triad every type for setting virtual host on windows xp thru xampp. But it is displaying default pages. so please suggest me for that.. ie. http://local.mysite.com/xampp/

Ryan (not verified) on September 29, 2007 - 7:39pm

Great : )

I usually recommend the Wampserver to folks looking to do some testing on Windows machines and use it at work and home. Great job on the video. Now I can send people here instead of blindly to their page. ; )

btw, I'd love to make some screencasts for Ubercart but have no clue where to start. Do you know of a good Windows program to do them, or are you making these on a Mac? Many thanks.

-Ryan

October 23, 2007 - 10:26am Addison Berry

I am on a Mac

so I am using iShowU for capture and iMovie for editing. I do Windows and Linux videos using Parallels. There are a few video programs for Windows and I've heard good things about CamStudio, which is free, but I've never used it myself. There are some tips for making videos in the Drupal.org handbook as well.

pramod (not verified) on October 24, 2007 - 4:55am

need information about web server.

hi want to install web server on windows Xp..is it possible...?if yes can you tell me configuration setps

tikho (not verified) on October 24, 2007 - 2:15pm

help me...!

i wanna try make a web site by my self but i don't know where ido begin installing in windows xp cause i don't have microsoft iis for server, and i wanna try make it with php please help me what application needed ?

mauryg (not verified) on November 14, 2007 - 12:17pm

WOS (Webserver on a Stick)

I use a free open source package called WOS (www.wos.chsoftware.net) which includes Apache, MySQL, and PHP and comes preconfigured with your choice(s) of TYPO3, Joomla!, Mambo, Wordpress, Moodle, OS Commerce, Drupal, PHPMyAdmin and more. It can be installed on a USB stick as small as 512 MB or any other portable media. Best of all, you can take it with you, run it on any Windows machine without installation and when you remove it, it leaves NOTHING on the system.

November 14, 2007 - 12:34pm Addison Berry

Be Careful of Prepackaged Drupal

When you get a "ready made" package that includes Drupal they often do not have the latest releases since they don't reroll their packages as the individual components are updated. I checked out the WOS list and they are still including Drupal (Version 5.1) which is not the latest version. There have been 2 security updates since then. If you do use something like WOS, make sure you upgrade your Drupal install so you know you are working with the latest code.

Aside from that little tidbit, a web server on a portable stick is indeed a nice thing to have at times.

Doug Thwaites (not verified) on December 7, 2007 - 9:17pm

Wow fantastic

Thank you much for such a straight forward tut to getting a server up and running, many thanks again

Doug T
New Zealand

kasperjames (not verified) on January 31, 2008 - 12:01am

sql and database localhost management

i downloaded my sql databases, made my backups, and fallowed your videocast about this installation. but..

im lost. its taking me far too long to find the answeres. do you have a videocast about installing the sql backups and site backups from the server, down into the local host? what are the key aspects to lookout for? do i have to rename everything? why isnt anything working? sheesh...

can you send me in the right direction?

kasperjames

January 31, 2008 - 9:35am Addison Berry

No video for that

but that is a great idea for one. I'll add it to my (long) list of vids to do.

In the meantime, very briefly, you should be able to do this relatively simply by:

1) Import your DB dump. Create a new database and import the sql file into it. You can do this in PHPMyAdmin but if the dump is too large it will time out in the browser and you will need to do it from the command line. I've not got time for details on that but it is the same as any other MySQL import .

2) Put your site's directory backup on the webserver. You can put this in your document root or create a Virtual Host. Just know how to get to it in your browser.

3) Edit the settings.php file of the site to match your new DB info.

4) Go to the site and it should work.

Anonymous (not verified) on February 23, 2008 - 7:45am

hello there! I have

hello there! I have installed the wamp server but when i lounge the php admin or sql my browser displays a blank page! Can yu maiby give me some advice, it's driving me crazy.

thanks

rui

henri (not verified) on March 4, 2008 - 6:25pm

Great video!

Great job addison! I am very greatfull as a beginner :) Keep up the good work we all appreciate it ;)
xoxoox

Xand3r (not verified) on March 27, 2008 - 11:00pm

Vista

I really want ro run local web server just like WAMP or XAMPP in vista.. But the apache won't start in vista.. anyone know how to fix this problem? thx..

Anonymous (not verified) on April 19, 2008 - 9:47am

I have the same problem.

I have the same problem. Please help!

doug D (not verified) on April 16, 2008 - 5:53am

incredibly helpful -- thank you very much

Thank you so very much for such a straightforward, clear, helpful video tutorial on setting up a local web server on Windows XP. Loved your voiceovers, too!
Doug

Tony (not verified) on April 30, 2008 - 2:29pm

Move test site to server.

Can you provide directions to information how to move the test site up to the server?

Thanks,
Tony

Carol (not verified) on September 22, 2008 - 5:30pm

Me too!!

Yeah I'm wondering if this is possible...
I want to be able to do it too!

Anonymous (not verified) on May 5, 2008 - 11:55am

hy nice i wana creat a local server with 11 computers help

thats very nice n!

Anonymous (not verified) on May 11, 2008 - 8:14pm

Time out error

I get the following error after install the local host and when trying to activate any modules
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\drupal\includes\file.inc on line 889

I have researched the internet and have made numerous changes as suggested with no result.

Anonymous (not verified) on August 17, 2008 - 3:48pm

Me too, what did you ever

Me too, what did you ever find out?

Arthur (not verified) on June 2, 2008 - 6:56am

Importing data has limits

Wampserver works fine. But, I noticed recently that it freezes on me when I try to import lots of data. I have a database of properties with 50-400 different street names, city, state, long/lat data per file and when I try to import into a content type wampserver freezes and warns of a fatal error. Is there a way increase the server resources? I am using a Dell Latitude D620.

Arthur

Mr.Pheak (not verified) on June 9, 2008 - 1:54am

Hello! I am a new

Hello! I am a new learner.

May you show me instruction of how to create website and host to internet?
- I can design, but how to host? intranet? internet?

I am looking forward to seeing from you soon.

Mr.Pheak

web (not verified) on June 22, 2008 - 5:15am

wamp not running

wamp not running on windows vista

hospedagem de sites (not verified) on August 11, 2008 - 7:30pm

dificuldades

não consigo instalar esse programa ajudem, obrigado

Jan Z. (not verified) on December 29, 2008 - 3:08am

Well Done!

Just wanted to give you a quick congratulations on you video. Now, start adding the troubleshooting videos :)
Thanks, JZ

Anonymous (not verified) on March 25, 2009 - 1:53am

The smokin hot sounds of Addison Berry

I could listen to you explain geek tech gobbledy gook any day of the week. This is by far the sexiest server installation tutorial I've ever encountered.

mike (not verified) on April 13, 2009 - 9:46am

video down?

Addi,

It looks like the video is down - I can't access it via the "play" or "download" tabs...

-mike

April 13, 2009 - 10:06am Addison Berry

Fixed

Dunno what happened there, but I've got it fixed now. Thanks for the heads-up.

dosdr (not verified) on May 5, 2009 - 5:11pm

localhost not recognized

Hello. I am new to installing WAMP. I installed wamp5 vs 1.7.1a onto windows xp exactly as your video showed. All appeared to be fine. However, wamp still shows only 1 of 2 services running - server offline. When I type http://localhost into my browser, or if I try to access localhost, phpMyAdmin or SQLiteManager from the wamp icon, it says webpage cannot be found. I even tried restarting all services.

All firewalls and antivirus are disabled at the moment. I dont think I'm supposed to click on "Put Online" for local use, but I did anyway just to see what would happen, and I get an error: "Could not execute menu item (internal error) [Exception] could not perform service action: The service has not been started".

WAMP is set to use the default C:\wamp\www directory and the index.php file is there. Do you have any idea why the localhost will not come up?

Thank you,
dosdr

dosdr (not verified) on May 5, 2009 - 5:29pm

localhost not recognized - fix

lol. just after posting that message, i came accross a post regarding a conflict with Xampp and Skype. Just for a test, I changed my skype configuration to disable the use of port 80 as a secondary port. And guess what...WAMP works now! Who would guess.

Here is the post for anyone who's interested:
http://www.trap17.com/forums/Skype-Xampp-Port-Conflict-t47591.html

Thank you anyway lol.

dosdr :)

shabir (not verified) on June 4, 2009 - 12:03pm

New user Help me

hello as iam new user i have tried to set up wamp to run for php and my sql
still iam not able to use mysql php and apache plz help how i setup this application on my system

pallab sharma (not verified) on July 30, 2009 - 4:00am

Http server is reseting connection

I have configured http in the laptop with IIS services. I was trying to establish http connection with cisco mars to upload a file in mars but http server was reseting the connection. The message shown was to check the url username and password. But in the http server I was able to browse with the same url , username and password. Please let me know what setting I have to do in http server.

The logs during the session was as follows:
15:43:18.336731 .33854 > .http: . ack 1 win 5840 (DF)
15:43:18.338638 .33854 > .http: P 1:101(100) ack 1 win 584
0 (DF)
15:43:18.570971 .33854 > .http: P 1:101(100) ack 1 win 584
0 (DF)
15:43:18.571788 .http > .33854: . ack 101 win 65435 (DF)
15:45:43.904629 .33920 > .http: S 925135265:925135265(0) win 5840 (DF)
15:45:43.908772 .http > .33920: S 1763144611:1763144611(0) ack 925135266 win 65535 <
mss 1460,nop,wscale 0,nop,nop,timestamp 0 0,nop,nop,sackOK> (DF)
15:45:43.908814 .33920 > .http: . ack 1 win 5840 (DF)
15:45:43.910442 .33920 > .http: P 1:101(100) ack 1 win 5840 (DF)
15:45:44.071240 .http > .33920: . ack 101 win 65435
(DF)
15:48:08.085417 .http > .33782: R 305418260:305418260(0) ack 623883804 win 0 (DF)

15:50:38.161959 .http > .33847: R 2243496040:2243496040(0) ack 751747375 win 0 (DF)
15:50:38.162461 .http > .33854: R 1:1(0) ack 101 win 0 (DF)
15:53:08.238650 .http > .33920: R 1:1(0) ack 101 win 0 (DF)
16:15:04.842248 .34736 > .http: S 2782074390:2782074390(0) win 5840 (DF)
16:15:04.842578 .http > .34736: S 4176242768:4176242768(0) ack 2782074391 win 65535 (DF)
16:15:04.842613 .34736 > .http: . ack 1 win 5840 (DF)
16:15:04.843709 .34736 > .http: P 1:101(100) ack 1 win 5840 (DF)
16:15:04.990409 .http > .34736: . ack 101 win 65435 (DF)
16:15:58.273110 .34759 > .http: S 2832736402:2832736402(0) win 5840 (DF)
16:15:58.273343 .http > .34759: S 921031359:921031359(0) ack 2832736403 win 65535 (DF)
16:15:58.273403 .34759 > .http: . ack 1 win 5840 (DF)
16:15:58.275335 .34759 > .http: P 1:101(100) ack 1 win 5840 (DF)
16:15:58.486174 .34759 > .http: P 1:101(100) ack 1 win 5840

shakaama live (not verified) on September 6, 2009 - 7:31am

error

I wanted to commend you on an excellent tutorial on wamp.

However, the part i needed help with was on the drupal part. once I install the drupal to the www folder and then click on the project i get 1 million lines of code and at the bottom, the drupal install. If I follow the install, i finally end up with a complete error and drupal can't proceed.

example: 1 million lines of
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal2\includes\file.inc on line 895

If you could help me, me and others have asked this question all around the web and no one answers.

Richstone (not verified) on November 9, 2009 - 9:09am

local webserver

Hi very new to this, can anyone help me setup a webserver on windows 7 professional and what i'll need for the setup pls, am starting from the scratch!
thanks
richstone

Senthilkumar (not verified) on November 11, 2009 - 1:06am

Hello sir Wamp Server Installing but dont run php

Hello. I am new to installing WAMP. I installed wamp2 vs 1.7.1a onto windows xp exactly as your video showed. All appeared to be fine. However, wamp still shows only 1 of 2 services running - server offline. When I type http://localhost into my browser, or if I try to access localhost,

All firewalls and antivirus are disabled at the moment. I dont think I'm supposed to click on "Put Online" for local use, but I did anyway just to see what would happen, and I get an error: "Could not execute menu item (internal error) [Exception] could not perform service action: The service has not been started".

WAMP is set to use the default C:\wamp\www directory and the index.php file is there. Do you have any idea why the localhost will not come up?
Sir I already Install Asp Localhost(IIS) Please Help Me

Thank you,
Senthil

  • 1
  • 2
  • next ›
  • last »

Recent

Drupal Voices 160: Moshe Weitzman on Page Rendering in Drupal 7

Podcast 9.02.2010

Drupal Voices 159: John Albin Wilkins on Drupal 7 Theming

Podcast 9.01.2010

Drupal Voices 158: Emma Jane Hogbin on PHP for Designers

Podcast 8.31.2010

Command Line Basics: More Editing with Vi/Vim

Video 8.31.2010

Lullabot's Back to School Sale

Blog 8.30.2010

Popular

Drupal Voices 160: Moshe Weitzman on Page Rendering in Drupal 7

Podcast 9.02.2010

Drupal Voices 159: John Albin Wilkins on Drupal 7 Theming

Podcast 9.01.2010

Drupal Voices 158: Emma Jane Hogbin on PHP for Designers

Podcast 8.31.2010

Installing Memcached on RedHat or CentOS

Article 8.20.2009

Photo galleries with Views Attach

Article 6.01.2009
 
  • Home
  • Services
  • Events
  • Ideas
  • Store

Connect the Bots:

Twitter Facebook YouTube blip.tv All Posts Newsletter
  • Ideas
  • Blog
  • Podcasts
  • Videos
  • About
  • Contact
  • Jobs
  • Services
    • Training
  • Events
    • Training Workshops
    • Other Events
    • Conferences
    • Calendar
  • Products
    • Videos
    • Books
    • Swag
  • Ideas
    • Blog
    • Podcast
    • Videos
  • About
    • Philosophy
    • Team
    • Presskit
  • Contact
    • General
    • Work Inquiries
    • Mailing List