The following is a guide for those folks that want to setup a proper development environment for building out a Magneto cart on your local windows box. I’m one of those old school developers that like’s to have a multi-phased approach when it comes to developing, testing and deploying a website. The first step of this process is to get your local windows development box setup to properly run the MySQL Database, the Apache Web server and most importantly trick your machine into believing it’s the actual server that hosts the domain.
Now, we’ve checked online and seen a bunch of places saying that this is not possible and to have Magento working on a Windows box and that you need to install Ubuntu to get this working. This couldn’t be farther from the truth and just adds unneeded complexity. So let’s keep it as simple as possible.
Once you get through this portion, it will ask you if you want to go visit the frontend or login to the backend. Feel free to login to the backend to start setting things up. A few things to note:
Now that we’ve got this process down, we can finally use proven development techniques to get our websites looking exactly the way our clients want on our local boxes before we move them to production.
By Jim posted on Thursday, February 25, 2010 @ 5:36 PMMan, Magento is a tough cookie! Thank you so much for this guide. It has been a huge help for me. It seems like, in spite of all the hype over Vista and 7, there are still a lot of people running good ol' XP.
It is great to find that there are those who are looking out for the XP users.
By doggie192 posted on Wednesday, March 17, 2010 @ 6:19 AMI use magento to run in wamp server. Finally come to admin login page, but cannot get into the admin page. It keep repeat the login page. How to solve this kind of problem?
By Nicholas Reed posted on Friday, March 19, 2010 @ 2:45 AMThis tutorial is godly. I am using xp, but I still can't get past the login.
I've got this at the top of my hosts file
(with a lot others)
when I go to http://innerware.com/admin or http://www.innerware.com/admin it just takes me back to http://localhost
One note is I installed from http://localhost and not http://innerware.com, because I didn't enlarge the one of your images that shows that part.
What do you think I should do?
By Nicholas posted on Friday, March 19, 2010 @ 5:11 AMIts all working. Just to REMOVE index.php and index.html from the HTDOCS folder. THATS IT!
By Justin posted on Wednesday, April 14, 2010 @ 4:47 PMWow, what a tutorial! Knowing that lots of folks did not want to move to Vista (notably those on XP Pro), you had to think it would be possible to install Magenta on that OS. This is a goldmine, thanks Jason.
By os posted on Saturday, April 24, 2010 @ 7:37 AMFatal error: Maximum execution time of 60 seconds exceeded in D:\wamp\www\project\opensource\magento\lib\Zend\Db\Statement\Pdo.php on line 228
By Al Doan posted on Monday, May 24, 2010 @ 12:45 AMos, you're on PHP 5.3, you can't use xampp > 1.7.1 or you get those errors, good tutorial though, easy walk through, a few kinks along the way, but all in all very well documented!
By Al Doan posted on Monday, May 24, 2010 @ 1:18 AMalso, if anyone else runs into this, I had everything setup on localhost and it worked fine but I couldn't login to my magento admin panel (it just looped to the login screen without any kind of error or anything). The problem is magento can't set a cookie with localhost, so I had to set a localhost.com in my hosts file and then set that in the base url, then I logged in fine. FYI
By Chris posted on Wednesday, June 9, 2010 @ 4:15 AMi had the same problem as os
Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\inthepink\lib\Varien\Db\Adapter\Pdo\Mysql.php on line 276
so i need to install an older version of xampp?
By AMY posted on Friday, June 11, 2010 @ 4:01 PMHi
I have installed it accordingly as above into my Windows 7. When i clicked on http://www.cleanease.com/. It is showing me phpinfo() page. What is the reason?
By Meda posted on Thursday, July 8, 2010 @ 6:45 PMTo avoid "Fatal error: Maximum execution time of" just set "max_input_time" in your php.ini.
By Phillip posted on Friday, July 30, 2010 @ 6:40 PMI had everything setup on localhost and it worked fine but I couldn't login to my magento admin panel (it just looped to the login screen without any kind of error or anything). The problem is magento can't set a cookie with localhost
By Susan posted on Friday, August 6, 2010 @ 8:18 AMi have change "max_input_time" to 180, but there is still error.
anyone can help me??
By Drew posted on Wednesday, August 11, 2010 @ 6:43 PMRE Magento Looping Admin Login screen Cookie Problem
One common problem with installing Magento on localhost has to do with cookies. The Magento platform uses them, and most browsers won't accept them from the localhost. If left unchanged, you'll get many errors and no error messages.
You have a couple of choices here, you can either create additional entry in your /etc/hosts file (as advised in earlier postings above) and use it to access Magento or you can comment out some of the cookie settings. (i solved my own problem by commenting out the cookie settings)
To comment out session cookies, you'll need to navigate through your recently copied Magento folders to reach Varien.php. The path is magento/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.
Find the code for setting session cookie parameters. In my copy of the Varien.php file, these started on line 77. Here is the specific code for which you're looking:
2 // set session cookie params
Comment out the final three lines and be sure to remove the comma after $this->getCookie()->getPath(). You should end up with this:
2 // set session cookie params
6 // $this->getCookie()->getDomain(),
7 // $this->getCookie()->isSecure(),
8 // $this->getCookie()->getHttponly()
you should now be able to log in to the backend
By pavan posted on Sunday, September 12, 2010 @ 9:19 AMthe following did the trick for me .... thanks
Enable URL rewrites:
1. You can do this by remove the "#" hash character in front of the following line:
1. LoadModule rewrite_module modules/mod_rewrite.so
By zrizwan posted on Thursday, September 30, 2010 @ 7:44 AMI got this error!! What did I do wrong Please help me!
Error in file: "C:\xampp\htdocs\ajstest\app\code\core\Mage\Catalog\sql\catalog_setup\mysql4-upgrade-0.7.39-0.7.40.php" - Unknown error (8192): Function split() is deprecated in C:\xampp\htdocs\ajstest\app\code\core\Mage\Catalog\sql\catalog_setup\mysql4-upgrade-0.7.39-0.7.40.php on line 35
By patco posted on Sunday, December 5, 2010 @ 4:50 PMTo avoid "Fatal error: Maximum execution time of" just set "max_input_time" in your php.ini and also "max_execution_time ". I set them to 600 (10min) for magento installation period and avoided the problem. Used latest xampp version(1.7.3) windows7 64bit and magento 22.214.171.124
By Portwiz posted on Friday, January 14, 2011 @ 1:59 PMOne common problem with installing Magento on localhost has to do with cookies. The Magento platform uses them, and most browsers won't accept them from the localhost. If left unchanged, you'll get many errors and no error messages. Best regards, Katya, CEO of audio burner
By Alex posted on Sunday, February 13, 2011 @ 11:11 PMThat was huge help for me, Thanks people for this tutorial !!!
By Dave posted on Monday, February 28, 2011 @ 5:56 PMGreat tutorial, i have it working with windows 7 and it went through very well. I copied over my own website to my local machine and also got it working with no problems, but I cant figure out how to upgrade now. Im running magento 126.96.36.199 and just wanted to play with 188.8.131.52 locally. I tried magento connect and while it said it was successful it did not work. I am not sure how i would do it with SSH since it is a local machine. Can anyone point me in the right direction on how to upgrade properly running magento locally? Thanks so much!
By Bryan posted on Thursday, March 17, 2011 @ 9:17 PMI could not get xampp to work, so used wamp and voila! Use all the same tutorial and place your magento folder (or whatever you name it) into the www folder instead of htdocs. I also placed the sample data sql file into the data base, and the media folder into the media folder (photos and catalog sample).
But, I did not check the use web server (Apache) re-writes. Is there a way to change this after installation, or should I go back and do the install over again.
What effect does the re-writes have?
Also, could you expand on how naming the folder and domain to the same name you are going to use (www.cleanease.com) helps when you do the move to the hosting server?
Thank you so much for the tutorial.
By Jessie Patterson posted on Tuesday, March 29, 2011 @ 10:32 PMThanks for this guide its pretty time consuming but this helped alot.
By Varun Sharma posted on Thursday, June 16, 2011 @ 9:12 PMHi Jason, Thanks for lot for writing this guide. I was really lost while installing Magento before I saw this webpage. The step by step process that you have listed down makes Magento installation pretty easy.
By Tomas Andersson posted on Tuesday, June 21, 2011 @ 6:50 PMI have Windows xp and i havent tested Magento yeat but this guide gives me help and i will probably test to install Magento.
By Fotoviva posted on Tuesday, June 28, 2011 @ 5:58 PMI'm building a new site for my art photography and have been toying with magento but it seems incredibly slow to run - is this something everyone finds?
By jeeva posted on Monday, July 11, 2011 @ 4:47 PMsuperb
By vivek posted on Tuesday, July 12, 2011 @ 8:43 AMit really help me a lot , to install magento on window local machine.
By Rap Music Guide posted on Thursday, July 21, 2011 @ 9:43 AMMagento is such a beast and this installation guide tackled it like it was nothing! If you follow every step just as Jason at JVF Consulting does above, then you will be successful! There is no messing around with this tutorial.
By TL posted on Wednesday, July 27, 2011 @ 7:23 PMFirst of all thank you for this information. I am new to this and would like to learn and attempt to create a test ecommerce site, however, when I look for the file as indicated below I can not located it. So I'm already stuck. I did download XAMMP 1.6.6a for this attempt. What am I missing?
Navigate out to your local my.cnf file found at: C:\apachefriends\xampp\mysql\bin\my.cnf
By Dindo Barriga posted on Wednesday, February 8, 2012 @ 12:41 PMAfter several attempts I was finally able to set-up the specific version of Magento both to my lap top and to my website.
Thank you very much for the detailed instructions along with the screenshots.
By darrenny26 posted on Thursday, February 9, 2012 @ 3:34 AMthank you so much for this! I've tried to install magento for several days now and I couldn't get it done the way I wanted. I really need to get magento working for a easter project for school so I was already sweating. But this helped me out! Thanks
By Richard posted on Wednesday, March 21, 2012 @ 2:07 PMThanks for these tips. I find that my Magento site works much faster when running locally than on a live site, so I'm guessing I need to get better hosting!
By Nigel posted on Sunday, April 8, 2012 @ 8:42 PMehckk, that is going to be a nightmare really. I would suggest running Ubuntu in Vmware and actually set up server for this. Its pretty simple if you understand a lamp environment and how to set up no-ip.org so you can let folks see it if need be.
hope that helps,
By smrtgurl kritz posted on Saturday, May 5, 2012 @ 6:46 AMNice and easy step by step guide to install magneto on windows XP. Thank You!
By William posted on Wednesday, July 25, 2012 @ 4:29 PMWell, I spent 2 hours reading the article and following all the instructions. To be honest, not everything was clear to me, much is yet to be understood and realized. But without this guide I don't think that i could do it on my own. Many thanks to you and your team!
By Alvin posted on Saturday, August 4, 2012 @ 7:32 AMGreat tutorial.... worked for me! My local development is done, may i know how to migrated to web hosting?
uploaded my c:\xampp file into webhosting folder(public_html)? and recreate my db in cpanel?
By KS Singh posted on Friday, August 10, 2012 @ 4:36 PMYou're life saver. At last I got rid of Maximum execution time. Thanks a lot.
By Jess posted on Wednesday, October 3, 2012 @ 2:59 PMWow its interesting , very clearly explained about the steps to install magento. I have 2 computer with me, 1 with windows XP and other with Windows7 operating system. Can you tell how to install magento in windows7 operating system.
By Kees posted on Thursday, October 18, 2012 @ 11:53 AMThanks for the information. This helped me install magento for a friend. I'm also interested in some info about a windows 7 magento install.
By Clint posted on Friday, November 2, 2012 @ 4:41 PMwe are currently trying to configure this with chargify
By Lenny posted on Tuesday, April 16, 2013 @ 11:48 PMstep by step easy guide that helped me in my project thanks