Installing Drupal On A Localhost

Lesson One of my special Getting Started With Drupal series of instructional videos.

This video shows how to install Drupal to a localhost on a Windows based computer. Wampserver is used to create the proper environment.

UPDATE: Be aware that if you install the latest version of Wampserver and combine it with Drupal 6.13 or above you will likely get the following error. Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

The error is caused by the fact that the newer version of Wampserver utilizes version 5.3 of PHP and the latest version of Drupal does not support PHP 5.3. You can remedy the issue by installing an earlier version of Wampserver that has the 5.2 branch of PHP. Wampserver 2.0h (found at this link) includes PHP 5.2.9-2. Another option is to use another stack installer such as the Acquia Drupal Stack Installer.

Bookmark and Share Bookmark or Share Post

Comments

Anonymous's picture

Thanks a Lot !!! I'm fighting

Thanks a Lot !!!

I'm fighting about a week trying to install with xampp, no success.
This video is great, it is simple and working finally!

Now i can start messing with the real things.

So, keep introducing great videos, I'll be watching for sure.

Roy

siona's picture

Local host video

downloaded WAMP server ok - but cannot see localhost/phpmyadmin page - it's just blank. Any ideas what my problem might be? Have IIS loaded previously - could this be interfering?
Thanks for any help anyone can give....

learnbythedrop's picture

Remove IIS

I saw a post on the Wampserver forum that recommended removing IIS if you have any problems running the app.

http://www.wampserver.com/phorum/read.php?2,45928

siona's picture

Removed IIS when disabling it

Removed IIS when disabling it didn't seem to do anything. Still can't get get it to work.... should be a simple thing???

Anyone else got any ideas/ Thanks
Siona

Visitor's picture

Mine works now...

Mine did the same and I couldn't get it to work but I restarted my computer and after firefox restored my sessions it popped up... Not sure if I did anything else to help it besides that...

shyam's picture

Re: Local host video

Hello there,

According to me instead of installing wamp server try installing XAMPP from the link http://www.apachefriends.org/en/xampp.html and you have to install XAMPP and have to first start the apche and mysql server from XAMPP app by clicking on run than you can type http://localhost/phpmyadmin The installation of xampp is just like the installation of joomla you can see the installation procedure of joomla and there by you can install drupal as well.The only difference is that in drupal you have to do php setting while installing but that has explained in this tutorial video very nicely.

Kind Regards,
Dave.

preetibhat1234's picture

Re: Local host video

I am having the same problem. Has anyone been able to answer you?

starseeker's picture

cannot access php my admin

i completed installation of wamp server but i cannot open the php my admin.....
i have sql server 2005 installed on my system
does this cause the problem..?

learnbythedrop's picture

It's hard to say since

It's hard to say since everyone has a different system configuration as well as different applications installed. I've been looking on the Wampserver forums (http://www.wampserver.com/phorum/list.php?2) in order to help people with similar issues and it seems that this setup might not play well with previously installed web servers and sql databases. Perhaps try checking if the sql server 2005 service is running and stop it before trying again.

davina's picture

Error (10061)

Hope this helps you too.
Spent days searching for useful help.

My problem:
installed Wampserver 2.0c on WinXP sp2 (all good) then:
Error message on http://localhost/phpmyadmin/:
phpMyAdmin 2.11.6 MySQL said:
#2003 - Can't connect to MySQL server on 'localhost' (10061)

mysql log said: (left-click on wampserver icon look under mysql)
Log file:
090114 7:58:44 InnoDB: Error: unable to create temporary file; errno: 22
090114 7:58:44 [ERROR] Default storage engine (InnoDB) is not available
090114 7:58:44 [ERROR] Aborting
090114 7:58:44 [Note] wampmysqld: Shutdown complete.

The fix: http://www.wampserver.com/phorum/read.php?2,46865
Changes to my.ini & my-template.ini files. It worked after restarting server.

1. Open file my.ini in folder C:\wamp\bin\mysql\mysql5.0.xx and find this line:

default-storage-engine=INNODB

Change to:
default-storage-engine=MyISAM

2.Open file my-template.ini in folder C:\wamp\bin\mysql\mysql5.0.xx and find this line:

default-storage-engine=<<{MIXED|INNODB:INNODB}{:MYISAM}>>

change to:
# The default storage engine that will be used when create new tables when
default-storage-engine=<<{MIXED|INNODB:INNODB}{:MYISAM}>>
default-storage-engine=MyISAM

cheers
This video is great, truly useful & on subject!! Namaste

tinem's picture

Re: Error (10061)

I have excact same problem but using XP sp3 and have now used many hours to solve this. :-(

1. I don't have default-storage-engine=INNODB in the file but pasted
change to:
# The default storage engine that will be used when create new tables when
default-storage-engine=<<{MIXED|INNODB:INNODB}{:MYISAM}>>
default-storage-engine=MyISAM
to the file

2. Did what you say here.

I cant get in contact with all the other files but NOT phpmyadmin. I still get this error
Fejl

MySQL returnerede: Dokumentation
#2003 - Can't connect to MySQL server on 'localhost' (10061)

Have not started installing Drupal because I need to get in contact with phpmyadmin first. What could be the problem, please?

starseeker's picture

still the same thing...

ya boss i stopped the sql services and nothing is better...
when i tried to activate the rewrite module in apache as said in the videp it says "could not execute menu item[internal error... the service has not started"
well.. i use windows server 2003 os. is there any other way ...???

learnbythedrop's picture

I think that the best place

I think that the best place to get help on this would be the Wampserver forums. Wampserver is pretty new to me as well so beyond making sure that the Wampserver services are started and checking to see that older versions of SQL are removed I don't have anything to offer. Good luck.

starseeker's picture

thnx ...

ill be checking out the forums....thnx for ur help...

Sascha's picture

Can't open the localhost

Hi,
first thanks for submitting this very useful video!
I see in your video php file are read, while I can't. When I look for my localhost it says server error...
Thanks a lot!

Sascha's picture

Sorry....

...managed!

JC's picture

much easier

That was very helpful. Much easier than the Drupal Documentation makes it.

thanks,
jc

samanderson4's picture

fatal error

Eveything works good until I try to enable modules. When I try to enable them I keep getting this message:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\themmat\includes\file.inc on line 891

Does anyone know how to correct this?

Thanks,

Sam

learnbythedrop's picture

Something Is Taking Too Long

Perhaps changing the setting in php will work. http://www.php.net/set_time_limit

There's also an old thread on Drupal.org that discusses this issue. http://drupal.org/node/66105

learnbythedrop's picture

Acquia Drupal Stack Installer

Drupal services firm Acquia has added another tool that can help to make it easy to install Drupal on a localhost. It's called the Acquia Drupal stack installer.

Instructions: http://acquia.com/documentation/acquia-drupal-stack
Download: http://acquia.com/downloads

Anonymous's picture

Annoying

It may be useful, but this video is patronising as hell. Do you REALLY think that a community of people who are looking to test a php CMS offline need to be told that we have to use a zip utility....now if you go here and click on..eh download. That'll download it to your computer...once you have it installed, there should be an icon..um..a wamp icon on your desktop..NO FUCKING SHIT. Christ. You should write some "for dummies" books, because that's who it sounds like you're talking to.

learnbythedrop's picture

Poor Attitude

You really have a poor attitude. In addition you really don't understand what's going on with Drupal these days. There are many people who are very new to web development looking to get involved with Drupal. Many of these people don't want to spend money on hosting but want to try it to see if they can get the hang of it. I know because I follow the Drupal forums and receive many emails and comments from people who are just starting out.

So I'd rather do things the way I've been doing them because it's going to help people learn and also help to grow the community that supports the Drupal platform. If you had an ounce of maturity you would understand the situation. And if you want someone to create books or tutorials specifically suited to your exact level of expertise at the current time then go pay someone to do it.

Next time you want to come on this site and hurl garbage at least have the guts to link to your website.

Shakaama's picture

Funny you say how patronizing it is...

Actually I think he erred on the side of not understanding how new people really are. He quite often skips steps. I found I had to pause the video, find a setting, rewind the video, pause again, look at the screen, type in the setting, erase the setting, because in the very next step he skipped over something and the setting I thought he was doing was completely and utterly different. I got error after error. There were no congruency with my screen to his. It was frustrating enough that I took notes and thought I should really make a "beginner" video, with no steps left out. It was so frustrating, I joined the site just to make this comment.

learnbythedrop's picture

Missed Steps In The Video

I'm sorry to hear that you've had troubles following some of the steps in the video. There are definitely trade offs to be made when considering the length of the videos as I edit them. I try to keep them as short as reasonably possible while retaining the important steps. I always ask myself, "Does this make sense?" before publishing a video. Unfortunately I think I'm prone to bias since I understand all the steps so while it may make sense to me it may not make sense to other people.

Anonymous's picture

What a d***

Hey "anonamous", yeah..we have the same name...weird. I actually just stumbled across this site because it happens to be talking about exactly what I am trying to do. However, I have NEVER used Drupal at ALL. I have never attempted to do anything with my local server in any way. I am not a newby by any means. I wrote the CAD Deign and Drafring standards for a major university. I would much rather learn something from the very beginning and know EXACTLY WHERE to put things, WHEN to unzip something, WHAT to copy and what NOT to copy. Once you just ASSUME that everyone you are broadcasting to is going to understand every step and you start skipping steps, well you know what that makes you. I appreciate the tutorial...thank for the lesson and keep up the great work.

Ben A's picture

Grow up Anonymous!!

I'd just like to second that motion - grow up "Anonymous"!! Have you ever heard of the concept of lowest common denominator?!?!

Although I also personally past this part of the Drupal learning-curve quite a while ago, I fully support what Rob is doing for the community. The curve has been notoriously steep in the past, and Rob has single-handedly made it less so with this site.

I only wish that all the material on this site was around 15 months ago, I'd be even further along than I am now. And, that's coming from someone who's been involved with web development for 15 years in one capacity or another!

He doesn't get paid directly to provide this material and he volunteers his time to help people come into the community with less inertia than was ever possible in the past.

Kudos to you Rob - keep up the great work, and don't let negative-nancys like this poster detract from that!!

Anonymous's picture

Thank you

Just watched this video and got everything set up. Ran into an issue with my etc\hosts file but was able to edit it so I no longer received the http error that I was getting in my status report.

Great tutorial, I really appreciate it! Off to learn more about drupal and looking forward to learning more from you!

Greg's picture

These are great tutorials and

These are great tutorials and as a new comer I appreciate your time and effort.

I am encountering a problem at the very beginning which is quite frustrating. I get to the point where it calls for the renaming of the file in the sites folder;

"The Drupal installer requires that you create a settings file as part of the installation process.
Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php."

I follow your instructions but I continue to get the same message and can't advance past this point. Any help would be greatly appreciated.

learnbythedrop's picture

Settings File

What you should have done was make a copy of the default.settings which may have resulted in the name "copy of default.settings.php" and then change that name to just settings.php. That file should be located in sites/default/settings. If that is what you have set right now then you should be good to go. You may be able to get additional help on this at the drupal.org forums.

mark's picture

Re: These are great tutorials and

Had the same problem trying to install drupal. While I'm sure you Greg have solved it and moved along, for posterity here's what you possibly did.

When you make a copy of the file the file already has a file type of .php . I renamed it to literally "settings.php" thus making the file name "settings.php.php" hence the problem. Once I renamed it to just "settings" it worked fine.

I'm now continuing on with the tutorial... to the author... GREAT JOB. thank you.

Sammy's picture

OFF-Line

Hi,

My local host suddenly started to say "The site is currently not available due to technical problems. Please try again later. Thank you for your understanding" I didn't make any changes, other than the fact that I didn't use it for 3 days. Any idea of what I can do to correct this?

learnbythedrop's picture

Is Everything Running?

I'm not 100% sure why you would see that message. The first thing I would do is to make sure that all the necessary parts of the local system are online. It's also possible that something else running on your computer (SQL Server maybe?) is causing the problem as well.

Sammy's picture

RE

I have a feeling it is in this:
1.20 I receive the error "cannot load MySQL extension, please check PHP Configuration".

To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar.

Any suggestions? Oh yeah, the step-by-step instruction is perfect! Don't change a thing.

learnbythedrop's picture

I'm at a loss on this one as

I'm at a loss on this one as I'm definitely not a WAMP expert. You probably want to check the WAMPserver forums.

Noob's picture

Learning Curve - You have to start somewhere...

Excellent tutorials Rob. Keep up the good work. The guy compaining about them is a fool. He may be highly advanced technically but he's barely human. I'm new to Drupal and and getting my feet wet with PHP and CSS. I've searched high and low for tutorials as useful as yours. And I'm ecstatic that I've now found you. Please don't change a thing.

mchrisneglia's picture

Good Elementary intro

This is a good intro using wampserver, with which I have no experience. The only advantage I see of using wampserver over XAMPP is that it lets you toggle the apache modules on and off and provides some nice administration abilities through an interface. So rather than bookmarking phpmyadmin, making shortcuts to php.ini, httpd.conf, and etc/hosts and such, you can do it through the tray icon. Very nice, but lets you get away with not learning Apache or optimizing mysql thread and query caching / other optimizations you *should* learn for optimizing a Drupal application.

I have to admit, I was looking for something more, such as a way to fix the status update problem with fopen on xampp/localhost, which is yet unresolved for me on localhost drupal installations, despite my efforts going thru drupal.org's threads on the subject.

Tim's picture

installation error

Im using wamp 2.0 on windows vista home premium. I get the following error when trying to install Drupal:

The Drupal installer requires that you create a settings file as part of the installation process.
Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php.
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.

I have renamed the php file, so i think the issue is with file permissions on vista. I have tried right clicking on the files and changing the read only property, but that doesnt work.

Anyone have any ideas on how to get past this?

Thanks

RobertSafuto's picture

Localhost On Windows Vista

The issue may be Windows Vista specific. I did my localhost install on Windows XP. There's a post in the Wampserver forums that addresses something like this so you should probably look at that. http://www.wampserver.com/phorum/read.php?2,39616,50127

Since you're on Vista the new Microsoft web application framework may be a better option than wampserver. Check it out at http://www.microsoft.com/web/downloads/platform.aspx.

Anonymous's picture

Microsoft web application framework?

Will this work with Drupal?

learnbythedrop's picture

Microsoft Framework

The latest version of the Microsoft web platform 2.0 beta supports Acquia Drupal. http://www.microsoft.com/Web/gallery/AcquiaDrupal.aspx

starseeker's picture

it worked

hey boss..
its been a long tym since i ve been in this forum..
yet i cant go without thanking you. i initially had some problems with the IIS and sql. i formatted the system and loaded xp. to my excitement i found wampserver working perfectly well. your video lessons are of great help. keep up the gr8 work... hats off....!!!!

abymathewsmaluvelil's picture

hats off

its great work boss.... hats off...!!

*seeker

Marc's picture

Thanks

Thank you so much! I spent hours trying to do this before I found your site! Keep up the good work.

imatua's picture

excellent tutorial

Excellent tutorial Rob. I look forward to completing this series. I had previously installed xampp but also installed wamp. Encountered an error message when I tried to click on rewrite module, and went to google wamp error could not execute menu item, and it took me to a forum message in wamp that said I had to uninstall any other versions of php mysql, which I did (uninstalled xampp too bad I wish I could work with both), and now everything is cool...

regards,
i matua

shiftklick's picture

iis

do i need to have iis installed in my computer in order to install drupal on a localhost?

learnbythedrop's picture

IIS To Install Drupal

You don't need IIS. The Wampserver setup provides an alternative to IIS. You could also use the Microsoft Web Application Installer as well.

shiftklick's picture

thanks

i almost gave up on drupal until i came upon your site. the structure of your tutorials are very effective especially for novices because it focuses only on what is needed and essential and incrementally progresses once you get the basic knowledge. it was rather frustrating for me the first time because i was intimidated with all that is to learn. thanks to you i found out that you don't need to learn the whole thing all at once to get the benefits of drupal. good luck and more power to you.

imatua's picture

blank localhost blank phpmyadmin page

I had to re-install wamp and drupal after a hard drive crash. I found after re-install and following instructions here, localhost and phpmyadmin page were blank. I searched around on google and found at http://jlbn.net/ that if wamp is yellow and white when you turn it on, that your firewall (in my case mcafee and online armor) is blocking access. I did not turn off IIS administration. I allowed wamp full access on both firewalls and everything is fine on windows xp pro. Just a heads up for all of you who run into the problem.

Graeme's picture

Trouble with PHPMyAdmin

I'm very impressed with your training videos!

Trying to install on localhost and have installed WAMPServer
When I run PHPMyAdmin I get the following error in the browser

Error
SQL query: Edit
SET CHARACTER SET 'utf8';
MySQL said: Documentation
#1115 - Unknown character set: 'utf8'

Having a lot of difficulty getting to bottom of this.
Any ideas? - is it a MySQL setup issue and what could I do to make it work?
Thanks
Graeme

learnbythedrop's picture

PhpMyAdmin Utf-8

I don't have a clue. Going to have to defer to Google on this one.

Lowell's picture

access Localhost from your network

Rob,
First and foremost Thank you!

I was wondering whether you had an easy recipe to allow other computers on the local network to access the internal website I am creating. I am really having trouble finding a succinct answer that works. I am using windows xp with a typical tcp/ip obtaining ip addresses automatically.(the name eludes me) Anyways if its not to much trouble and you know off the top of your head I sure would appreciate it

Thanks again
Regards
Lowell

learnbythedrop's picture

Access Via Network

You're welcome Lowell. I don't have a recipe to allow other computers on the network access. I'm very weak on the topic of local area networks. The first thing that I would think to do is to make sure that the folder where the html files for Drupal are located is shared via the Windows explorer dialog. I believe that can be done by right clicking the folder, selecting the "properties" choice and then the "sharing" tab.

Hina's picture

http request status...fails

Hi, Please help:
"Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings..."
This message has just shown up ( again) in my status report. Actually, I had it when I first installed Wamp server and Drupal but it "disappeared" for a while... untill now. Any idea how I can fix this? Or maybe it's just normal because I'm running Drupal on a localhost...?
Thanks

rgbatson's picture

MySQL problems installing/working with wamp

Even before getting wamp, I could not install mysql. Finally did a drive-wide search for mysql, php, and apache and removed a bunch of obscure (leftover) settings from previous programs. All over the place.
Therafter, everything went swimmingly.
Bob

Graeme's picture

Drupal Install failing - no message

Hello
After I enter the name of the database, the username (root) and the password (none) and then click 'Save and continue' nothing happens - no message, the Database Configuration page just re-appears!
The database definitely exists!
Having trouble getting to the bottom of this.
Any help appreciated.
Graeme

learnbythedrop's picture

Failing Install

I would check to see if everything is running. I also would make sure that you don't have Microsoft SQL Server on the machine as that seems to cause quite a few problems. Another option is to delete the database and start over. Finally, if nothing else works you may want to try the Acquia Drupal Stack Installer which installs everything (including Drupal) on your local machine in one shot.

Moshe's picture

Firewall

Hi.
A) Great tutorial that really helped me get started. Thanks m8.
B) Regarding the problem above, I had the same thing: if I enter erroneous database details, I get an error message, if I enter the correct ones and click continue, nothing happened.
In my case the problem was with my (norton 360) firewall. When I disabled it, it worked.

Moshe's picture

and another thing...

Oh! And another thing is that one must create a copy of default.settings.php and not rename it! this causes the same problem!

Jesper's picture

Hi I can go to

Hi I can go to http://localhost/phpmyadmin it works fine

But when i write http://localhost/drupal it gives me this error:

Warning: require_once(./includes/bootstrap.inc) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\drupal\index.php on line 15

Fatal error: require_once() [function.require]: Failed opening required './includes/bootstrap.inc' (include_path='.;C:\php5\pear') in C:\wamp\www\drupal\index.php on line 15

Please help:)

learnbythedrop's picture

Replace Files

What I would do is unzip drupal again just to make sure all of the required files are present there.

Sabrina's picture

"service has not been started"

I kept getting an error that ends with "service has not been started," with WAMP and in the end I looked at another thread and they said something about closing skype, I did it, it works perfectly...weird...

João Silva's picture

Thanks

Many thanks,

works fine!

Mateo's picture

More than one web

First of all congratulations and thanks, the videos are very usefull.
Here is my question: If I want to have more than one drupal site; I must copy all the process like in the video (where you created the folder drupal_2) and install drupal as many times as sites I want? Thanks

learnbythedrop's picture

Multiple Localhost Sites

I've got no experience with multi-site installs so my approach would likely be a clumsy one. One way you could do it would be to put the second site install files in another folder. Create another database for the new site. Then when you go to the home page of the second site you should see the install page and you would point to the second database that you created. See the following node on Drupal.org for a lot more info on Drupal multi-site installs. http://drupal.org/node/43816

Anonymous's picture

Brill!

Thank you, Thank you, Thank you!

I have watched the video, absolutely brill and read the threads. This video is PERFECT for novices like myself and have not found you or it patronising in the slightest. Sometimes when you are new to techno stuff like this, the simplest of things quite often get overlooked and it is usually them that causes most of the problems and tends to get forgotten. A video this basic is idiot proof and saves me loads of hours of frustration when I forget to check the simplest of errors.

Thanks again for the fantastic video and getting me up and running so quickly.

Cheers!

Anonymous's picture

Drupal install problem

After installing Drupal I get a "red box" msg saying there's a problem with the installation and prompting the "Status Report". Checking that gives me this:

HTTP request status Fails
Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.

What's the fix? Thx.
Chuck

learnbythedrop's picture

I don't know the answer. I

I don't know the answer. I think that the next steps would depend on your operating system (Win XP or Vista?) and the method you've used to install locally (Acquia Drupal Stack Installer or WAMP?)

EVieg's picture

I had the same problem and

I had the same problem and heard everything from restarting WAMP and my browser, clearing my browser cache (which doesn't make sense) and Drupal's cache to installing a http_request_reset module. I skipped the module installing because I didn't like that idea.

I DID find a solution though: I am on Win 7 RC x64 using WAMP 2.0h with Drupal 6.13 and was given this error OBE. The fix is to open your Windows HOSTS file and either comment out or remove the like that looks like this:

::1 localhost

To comment it out, add a # in front so it looks like this:

#::1 localhost

If that doesn't work, remove the line completely.

Hosts file can be found here: C:\Windows\Systems32\drivers\etc\hosts Open it with notepad.

Jeff Sieffert's picture

Thanks so much

You have just ended my 2 hours of searching. I was having the same problem.

Vista Home Premium
Drupal 6.13
WAMP 2

Dan's picture

Thanks

Thanks for that - you just saved me hours of head aches. It worked perfectly =D

Kyle's picture

Re: I had the same problem and

I'm running Win7 Home x64 with WAMP server 2.0, with IIS disabled. I commented out as you mentioned, and now everything works great.

I'm brand new to Drupal, following these tuts on Learn by the Drop (Kudos to the author BTW), and was a little discouraged when I ran into this snag. Now I'm off and running again! Thanks for the insight and saved hours of frustration.

josan's picture

Re: I had the same problem and

Thank you very much, I also resolved the problem by commenting the line with ip6 address for localhost in a system with:

M$ Vista Home Premium
Aquia Drupal 7 Stack

abymathewsmaluvelil's picture

problems with fckeditor

hey rob
i ve ran into a problem. its about FCKeditor. as per your tutorial it should work pretty well but the buttons dont show up. when i try to add a blog post what i get is a clean text area with no buttons or formatting options. i checked with the drupal forums and then i used BUEditor. it worked fine but has only limited options.
any other editors ???

thnx
*seeker

learnbythedrop's picture

Check File Locations

If the buttons don't show up then either all the files have not been uploaded or the files are not in the correct location. So I would double check the locations of the the files. If that doesn't help try the alternate method of installing using the WYSIWYG API. http://learnbythedrop.com/drop/144

JordanFink's picture

sites/default/defaul/settings..php

for some reason, sites/default/defaul/settings..php is a Microsoft Picture It folder instead of a php file. Something is defaulting the drupal files into Picture It files. Do you know what is going on? Do I need to download the Drupal 6.12 file again?

JordanFink's picture

Got it figured out...Yeah!!!

Got it figured out...Yeah!!!

learnbythedrop's picture

I was going to recommend that

I was going to recommend that you right click the file, select "open with" and then select "choose program". Sometimes Windows decides on its own how a file should be opened. It does not affect what's in the file just what program opens by default when you double click.

gerow's picture

security, sql, drupal, root

Great video Rob, thanks so much for doing this. At 4:30, your phpMyAdmin screen has a warning about not having a password for "root". I know you're not claiming security guru status, but you seem to have figured out enough to be confident in ignoring the bold red warning. How do I get there? I tried once to add a password for root, and I locked myself out of everything. (I feel a little deceived by the inviting drupal website.) Can you recommend a way to learn enough to have decent security and not destory my work? Please help me help myself, drupal's docs are driving me crazy.

learnbythedrop's picture

Database Root Password

When you're developing on the web you're going to have to have a root password for your database. On localhost the only reason it would be necessary is if other people have access to the computer or it is on a corporate network. When I work locally I don't have to deal with such issues so I don't set a root password for the database. So what level of security you use depends on how other people might gain access to your database.

George's picture

perfect video for complete idiots like me

The title says it all. I have struggled with other intro videos as I did not have Ftp or WAMP downloaded yet. This was great, thanks very much.

MarkW's picture

How to install Drupal to a localhost video

Hi

Just watched this video. Absolutely brilliant!! I was able to follow it exactly and get it all up and running. I have spent ages going round and round in circles until I came across this video.

Thank you so much for doing this video. I look forward to trying the other videos you have done.

Cheers....Mark

prasad ghanta's picture

This is very simple and superb

hi guys, This installation for drupal is very simple man... from past 2days i am fighting with servers and php and db to make it work together... messing around. but this one is very straight forward and simple.. .i will goahead and recommend this server to all my colleagues.

bincy.calicut's picture

drupal6.12 installation problem

HI...
while installing drupal6.12 on after database configaration det enters i got an error like this

Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in D:\xampp\htdocs\drupal-6.12\includes\install.inc on line 188

Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\drupal-6.12\includes\install.inc:188) in D:\xampp\htdocs\drupal-6.12\includes\install.inc on line 618

Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\drupal-6.12\includes\install.inc:188) in D:\xampp\htdocs\drupal-6.12\includes\install.inc on line 619..
plz help

bincy.calicut's picture

drupal6.12 theme

how can i add new theme?

learnbythedrop's picture

Adding A Theme

Upload the new theme folder to the 'sites/all/themes' directory (it probably doesn't exist do just create it) then you can switch the theme via the administratio menu. The following video provides more details. http://learnbythedrop.com/drop/121

Xen's picture

Thanks

Hi, just wanted to thank you for your tutorial, really helped me out. I'm just stuck on one issue. I am on Windows XP, using Apache2.2, PHP 5 and phpMyAdmin 3.1.2 which I installed and set up seperately. I successfully installed Drupal, have the database set up, but when I am directed to the page "View your site" (once it has installed), if I click on any of the links under say 1)Configure your site website, instead of being directed to that page, I am sent to the Index of /drupal on my localhost....Just a white page, with the files in a column on the left. I am a bit stumped as to why I can't seem to navigate the Drupal set up site properly. Any suggestions would be much appreciated. Thanks.

learnbythedrop's picture

Could Be Environment Issue

If you say that you setup Apache, PHP, etc. separately I'm assuming that you did not use Wampserver. If that's the case then I think it probably has something to do with the way the environment (perhaps PHP or Apache) is set up. I have no idea off the top of my head what it could be.

Xen's picture

I have managed to work it

I have managed to work it out, I had to reconfigure the Apache file as I had installed them all seperately. Thanks anyway, I now have an update to try to fathom out!! Cheers.

Nancy's picture

Problem with local installation

I have a problem,

I implemented drupal on a website and also locally with same pwd and users (transferred Database of website to local).

The problem is that now when I try to log locally I cannot log in altough I use the same user as on the website and the there it works.

I changed the php.setting in order to direct it to my local database where I downloaded the website DB and it just does not work.

Whenever I log I reach the main page of XAMPP instead of the administration side of drupa.

Could you please help me out

Thanks alot

learnbythedrop's picture

Apache Settings

Someone else commented recently with a similar problem. I think that it's a problem with the Apache settings. Try putting a blank file with a .html extension in your www directory and see if you can reach that.

Anonymous's picture

I was having issues with

I was having issues with "HTTP request status fails" when using "http://localhost/" but the issue was resolved by using "http://127.0.0.1/" instead.

Anonymous's picture

"preview" videos

I was enjoying watching these videos and learning as I went. Until I got to video 5 and it cuts off abruptly at the end, apparently only the first few videos are complete and the rest are preview. Is this true?

RobertSafuto's picture

Some Videos Are Previews

Some of the videos are just previews but most have the entire content. The posts typically indicate what you will see in the premium versions.

Anonymous's picture

I wound up buying it. I've

I wound up buying it. I've really enjoyed the entire series so far. In particular how you made it for the beginner. I had wamp running in minutes. Keep up the great work.

jeanoff's picture

compliments

My Compliments. This is the first time that I can really learn something without hassle.
Love it!
Jean Offenberg /Amsterdam.

Jan Brägelmann's picture

Need Help!

I tried to install Drupal on my Windows XP machine without avail.
WAMP-Server reports:

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

What shoud I Do?

Jan Brägelmann

Jan Brägelmann's picture

Problem solved

Last Version of Wampserver 2.0i does not function;
Webserver2.0h-Version does the job.

Anonymous's picture

Internet guest account??

Hi everebody

I've been stuck on step 2/6 on installing Drupal, which is to verify requirements. I get this message:

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.

---------------

OK. I have installed WAMP, created a settings.php file in my site/default folder. From the tutorials i've watched online, this is enough to fix the problem.... but it didn't.

I've also attempted to change permissions using the instructions of the online handbook. It says to change "internet guest account" to "allow", however when i get to that screen, I don't have an option of internet guest account. I tried to add it but it did not find any such thing.

I am using windows XP

Where do I go from here? i've been trying to fix this for the last 3 hours. Any input is appreciated!

Rasmus, Denmark

learnbythedrop's picture

Settings.php Issues

I'm assuming that you "created" settings.php by renaming the default.settings.php file to remove the "default." part. That's the right way to do it. If you did it any other way you would have a problem. Yes, that should do it.

From the feedback I've gotten to this post I know that it could be any number of problems related to your local configuration. You might also want to try the Acquia Drupal stack installer which I've documented on video at http://learnbythedrop.com/drop/143. The Acquia installer is an all-in-one package that has the proper environment set up just for Drupal.

Rasmus's picture

Acquia

Hi Rob
I think I will give Acquia a try, it certainly looks easy :) And somthing I can manage!

Could you tell me following:
1) Is it possible to install other drupal "modules" besides the ones it is shipped with?
2) Is it possible to install other drupal "themes" than the ones it is shipped with?
3) Is it really free?

learnbythedrop's picture

I hope Acquia Drupal works

I hope Acquia Drupal works better. I think it's a good solution for getting Drupal set up on a local computer. Keep in mind that Acquia Drupal is a little different than the standard Drupal install because it comes pre-packaged with more contributed modules. That's a good thing since they include some of the most popular modules that help add good functionality.

You can install other modules and themes. You can add as many as you want. I recommend taking a look at my Getting Started videos which show you the basics of how to do both of these things. http://learnbythedrop.com/gettingstarted

And Drupal is really free as far as money is concerned. If you choose to build your own site the main investment is your time and effort.

djshiva's picture

thank you!

this is a very simple, straightforward introduction to setting up drupal. you are a gem!!

Fatima's picture

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\

I am getting this error while installing drupal:

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

when I type http://localhost/drupal and at the end of this list of the same error I get the actual drupal installation page. I already have IIS running on a different port and also sqlserver do you think this is causing a problem?

learnbythedrop's picture

IIS And Wampserver

IIS and Wampserver don't play well together. You should completely remove IIS if you want to use Wampserver as a local Drupal platform.

Anonymous's picture

Doesnt show up

So everything went good, I downloaded Wampserver, Installed perfectly. But when I start it, it never shows up in the task bar thingy.

Tamie's picture

I'm Stuck!

I was unable to go all the way through the install video with that error just sitting there, but now I have 2 others as well:

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

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

anyone?

learnbythedrop's picture

Wampserver Issue

"I was unable to go all the way through the install video with that error just sitting there"

Which error? And where are the other errors appearing? Does everything else work fine? Do you have IIS installed?

Tamie's picture

Wampserver Issue

Hello!

These errors are showing up on localhost/drupal/administer from the very top of the page (the 612 & 619 errors) down for about a 2 feet, then under a pink boxed section it says "Cron has not run. Please visit the status report for more information" and under that it has the 895 error for another 2 feet or so down. Under that is has the normal page stuff under "Welcome to the administration section. Here you may control how your site functions."

I don't know what IIS is. I am a total beginner.

learnbythedrop's picture

I truly don't have a clue as

I truly don't have a clue as to the root cause of your issue. I mentioned IIS, which is short for Internet Information Server, because sometimes people who are on Windows machines will try running websites locally with IIS prior to trying the WAMP stack. I can suggest one more option for you. Back everything out and start from scratch using the Acquia Drupal Stack Installer which I previewed in the following video. http://learnbythedrop.com/drop/143

Anonymous's picture

Tamie, I am also a beginner.

Tamie,

I am also a beginner. I had the same problem, and I found a fix here:

http://drupal.org/node/514334#comment-1932520

The basic problem is that Drupal is not compatible with PHP 5.3.

To get around this, you can either make Wampserver revert to an earlier version of PHP or make Drupal suppress error messages of this kind. Both solutions are pretty beginner-friendly.

1) You left-click on Wampserver, go to "PHP" > "Version" > "Get More", and download PHP 5.2.x. Once that's done, left-click Wampserver, then "PHP" > "Version" > "5.2....". You'll need to have Wampserver offline in order to do this. This method worked for me.

2) You edit a line of text in one of the Drupal files (see the link above for more details).

Good luck,

Pav

Newbie's picture

Is this in a PDF format?

just started learning drupal.

are instructions available in pdf?

thanks and cheers for a great video!!

learnbythedrop's picture

Upgrading Instructions

You can create your own pdf out from the instructions posted at http://drupal.org/upgrade.

Newbie's picture

Can this be done via Flash Drive?

can the install be downloaded via a flash drive? that way i can carry it with me and practice anytime i can get my hands on a computer other than my own.

if possible and different instructions are needed, please advice.

thanks and cheers for a great video!

learnbythedrop's picture

Installing Drupal On Flash Drive

I believe that its possible if you load up the XAMPP server on your flash drive from Portable Apps. http://portableapps.com/apps/development/xampp I haven't tried it but in theory it should work.

lev's picture

Requirement Problems

im getting this above the requirements problem page. Deprecated: Function ereg() is deprecated in C:\wamp\www\Drupal0\includes\file.inc on line 902. I have Drupal 6.14,Vista and I don't have IIS. My default in my sites folder says: default.settings, I copied that in the folder and made it settings.php but when i refresh the localhost page it says the same thing.

lev's picture

Requirement Problems

ok on my cpu the address goes:wamp>www>drupal>sites>default,and then it only recognizes a folder called "files" which i didn't create. The settings.php is in the default folder. I tried to delete the files folder but it keeps coming back.I'm still trying to get past the verify requirements portion of the drupal installation on the wamp server.

learnbythedrop's picture

Troubles With Localhost

Whenever someone is having trouble with Wampserver I recommend starting over with the Acquia Drupal Stack Installer. The process is simpler than WAMP and it seems to work well. See the following video for more. http://learnbythedrop.com/drop/143

Cale's picture

Installing Drupal on local host versus web server

I installed Drupal on my localhost.. but as a beginner worried about transfering it online. It looks simple but will I lose data if I build my site on a localhost and then ftp it later? Why not just start on a web server to begin with?

Thanks a lot!

learnbythedrop's picture

Transferring Files

You asked, "will I lose data if I build my site on a localhost and then ftp it later?" I don't see why you would lose data. If something goes wrong in the transfer you still have the local copies of data on your machine to fall back on.

You also asked, "Why not just start on a web server to begin with?" Speed, Security and Portability are three reasons. Developing locally should be faster since you just drop modules into folders instead of having to FTP everything. An incomplete site that is on the web can be compromised by spammers if you don't have your settings and modules properly configured. Finally, you can work on your site anywhere even if you aren't connected to the internet at that moment.

raju's picture

error while installing drupal on localhost

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.

i have completed the first step but don't know how to perform second one.

huijing's picture

installing issue

I have been following your video but when I'm at the step involving actually installing drupal from my browser i get multiple instances of this error message:
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902
however, the install screen shows up normally at the very bottom of all these messages. Is this a problem that will affect the running of Drupal?

learnbythedrop's picture

Wampserver Function Ereg Issue

It is an issue with the version of PHP being used by Wampserver. See the following post on Drupal.org for the fix. http://drupal.org/node/537950#comment-1879688

MJ's picture

Ahhhh ! I get this after

Ahhhh !

I get this after following steps for Drupal2 localhost: Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal2\includes\file.inc on line 902
with the latest Drupal 6? and Wamp2.?

I then un-installed WAMP2.? and installed WAMP5 but then found out that the older version of Wamp was not compatible with my version of Mozilla.

I am just trying to get through your first video.....and I am nearly fried.

Help?

MJ

learnbythedrop's picture

Function Ereg

See the previous comment (http://learnbythedrop.com/drop/95#comment-1275) which has a link to the page on Drupal.org where this issue is discussed and a fix is explained.

Joe Joe's picture

Thank you!

EXTREMELY HELPFUL TUTORIAL! Clear, concise instructions! Thank you, thank you, thank you!

Ramesh's picture

User Warning while installing

I tried installing drupal version 6.14 on windows wamp5. During "Install site" i got the following warning:
user warning: 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 ') ORDER BY fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in "includes\menu.inc" on line 315.

Please guide me how to proceed from this.

With Thanks,
Ramesh

learnbythedrop's picture

Localhost Install Warning

I think your best bet on getting more info on the error is the Wampserver forums or Drupal.org.

TechRookie's picture

Installing Contributed Drupal Modules

First, to say I know nothing about web design or development or coding is an understatement. My website is not "live" but it has been installed on a hosted site. ( I guess it's in "beta" now?)

I got halfway through this video and then realized the process will not work for me - that I should use an FTP program. (I know nothing about this. Yes, I know what FTP stands for, but that's about it.) Do you have a video tutorial on how to do this?

Also, I see the Drupal installer has WYSIWYG checked. Would I need to uncheck this in order to use fckeditor?

Thanks in advance for your help,
Frustated Rookie Trying to Learn Drupal

learnbythedrop's picture

FTP

An FTP client transfers files from your local machine to a web server. You can get the software for free at http://filezilla-project.org/. Your web host will have the information about how to connect using FTP.

By default, Drupal does not ship with a WYSIWYG editor so I'm not sure what you mean when you mention, "the Drupal installer has WYSIWYG checked."

Robert's picture

Poormanscron

In your video sample it stated that Token was missing. I downloaded, unzipped and copied it but I got 2 additional check boxes, 'Token actions' and 'TokenSTARTER'. I checked both boxes but under the administer by module, there is no section for Poormanscron with any options. Will running cron.php give me the same results although I do not have any of the options? It's deceiving because of the blank page I see.

learnbythedrop's picture

Re: Poormanscron

The options can be found at /admin/settings/poormanscron.

Anonymous's picture

Hi Rob I have been following

Hi Rob

I have been following your videos, and have suprised myself with how far along my site has come. However, I may have hit a disasterous snag that I hope you can help me with.

I was playing around with the layout of the front page, and for some reason logged out. Now I am unable to log back in - i can not find the administration area, and if I try to access a page through the history tab on my computer it tells me that I don't have access to the page.

Any help you can offer would be greatly appreciated - I have no experience in setting up websites, and am really only just competent at using a computer.

Thank you

Jes

learnbythedrop's picture

Logging Back In

You should always be able to get back to the login page by going to user/login.

Michelle's picture

Thank you

I was having issues getting to interior pages to display and knew my .htaccess was correct. Your video pointed out the rewrite_module wasn't enabled. Thank you.

I stopped watching as soon as I got the info that I needed. However, I did discover that Skype and WAMP both use port 80 so consequently Apache couldn't start. Just an FYI if someone gets an error trying to enable rewrite_module in Apache.

Thanks again for the information!

Sam's picture

Hi, I succesfully installed

Hi,
I succesfully installed the WAMP server.
My problem is I cant open my php files.
What I'm doing wrong..?
Please help
Sam

learnbythedrop's picture

Opening PHP Files

I'm not sure what you mean when you say that you "can't open my php files." Do you mean you can't view them in the browser? If that's the case then you want to make sure that Apache (the web server) is running. If you continue to have troubles I recommend uninstalling WAMP and installing via the Acquia Drupal Stack Installer. http://learnbythedrop.com/drop/143

songtales's picture

Thanks!

Thank you for this crisp video, Rob. I was able to install the WAMP environment and get Drupal installed too, by simply following your file. fyi, I had one extra step because I got WAMP 2.0 with PHP5.3. Drupal 6.15 works only with PHP5.2.11 (or lower?) so I deprecated the PHP, and all is well this far. Thanks again.

yk's picture

this is awesome thanks!

this is awesome thanks!

Sara's picture

Thank you so much!

Thank you so much! Seriously.

NEW Learner 's picture

Re: Installing Drupal On A Localhost

Hi, I have installed drupal using some hosting sercice and i then installed wampserver.
How can I go futher?
My settings.php file is empty is that somwthing wrong? how can i fix it? Please help me upon this.

Also when i open www.mydomain/drupal , i see some file stucture, srupal->files> etc.... should I see "welcome, your first site.." page there??

I mean how can i see the menus in the left like, administer, and page and story , primary links, sec. links, etc?

I am totally new to drupal... Pls help.....!!!

Thank you.

learnbythedrop's picture

Re: Installing Drupal On A Localhost

It's not clear to me exactly what you have done. When you say, I have installed drupal using some hosting service," do you mean you installed it locally or on a shared host? Wampserver is used to create a server on a local machine and shouldn't be needed on your hosting service. What Wampserver is doing is adding the necessary Apache web server and PHP so that Drupal can run. If you're seeing just a list of files it sounds like you might be missing the PHP component because it is not executing the code within Drupal.

NEW Learner 's picture

Re: Installing Drupal On A Localhost

OK . I will now tell you what I have done so far. I did it for localhost i.e. on my personal laptop.

Step.1: I installed Drupal 6.14 using Fantastico tool, that tool comes in my hosting service.
Its just like wizard steps to install Drupal. and it allowed me to install drupal 6.14

Step.2: Then, After completing those steps, I got confirmation email as drupal is successfully installed. There was a link in email to access my website buiding page, when I click it, I can see
Title of page as /Index of where there is file structure as
Parent directory->Drupal->Sites->Default there i see default.settings.php and settings.php
both of them show 9k in size but when I open them, they are blank.

Step.3-> I installed Wampserver2.0h which gave me PHP 5.2.9-2 and MySQL 5.1.33.

I am now confused with so many questions like, how can I see that "welcome to your new website page"
where i can see administer, log out menus. and Page/Story Links. Primary Link/secondary Links etc....

Please help me out where did I go wrong? And Do i need to overwrite drupal version by re-installation?

Thank you.

learnbythedrop's picture

Re: Installing Drupal On A Localhost

I'm sorry I really don't understand what you're doing. One the one hand you say you used Fantastico which comes with your hosting service. On the other you say that you have installed on your personal laptop. That doesn't make sense to me. Either way Before you install Drupal you have to install Wampserver locally. Once the database, web server and MySQL are present you can then install Drupal as I show in the video.

I highly recommend that you go with something simpler like the Acquia Drupal Stack Installer. http://learnbythedrop.com/drop/143

Moiz's picture

Re: Installing Drupal On A Localhost

Rob,

your videos are simply great. It gives pretty clear understanding of everything you intended.

Thanks for sharing it.
Moiz

Homepage field: Not yet but soon will come after listening to your videos

francis's picture

Re: Installing Drupal On A Localhost

Drupal 6.16 works fine on Wampserver 2.0i (with PHP 5.3.0) installed. However, Drupal 5 doesn't work on PHP 5.3.0.

Anonymous's picture

Thanks!

Good Job! off to my next video...hope there is a complete video for this one that i can download...

Enki's picture

phpMyAdmin error message!!!

I get these two messages at the bottom of my phpMyAdmin. I had Apache2triad installed before where I had to use a password to log on to phpMyAdmin. Then installed XAMPP since buying your "Getting Started". Whats the solution?

The additional features for working with linked tables have been deactivated. To find out why click here.

Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user '.root'.

Thank you!!!

learnbythedrop's picture

XAMPP on Localhost

I have zero experience with xampp so I can' t offer advice on issues related to that software. A XAMPP support forum would be a better place to get an answer on this one. For those who have lots of trouble getting started locally I highly recommend a stack installer such as the one from Acquia. See the following video. http://learnbythedrop.com/drop/143

Wijaya's picture

Re: Installing Drupal On A Localhost - slow

I copy my drupal site (http://www.totaltheme.com) to localhost (Windows 7 + wampserver) and can't get it run. Is it because of many modules installed affect the performance? (It works on my mac though). Any more tips how to optimize wamp on windows? As we know drupal use memory and hit database heavily. Thanks.

learnbythedrop's picture

Re: Installing Drupal On A Localhost - slow

There are many reasons why any program would run slow locally, including processor speed, RAM and other programs that are running. I haven't tried WAMP on Windows 7 yet so I couldn't offer any specific remedies.