Saturday, September 21, 2013

Magento run on IIS and Installation

The purpose of this blog is to Magento install on IIS
  1. First download Microsoft Web Platform Installer 4.6 
  2. Install below application by web installer
    1. IIS
    2. URL Rewrite 2.0
    3. PHP 5.4.14 for IIS
    4. MySQL windows 5.1
  3. If you OS is 64 bit than replace below curl 64 bit in   C:\Program Files (x86)\iis express\PHP\v5.4\ext
  4. Download Magento from here
  5. Copy Magento folder in C:\inetpub\wwwroot
  6. Browse Magento application by IIS. There is like on right site.
  7. Below image will come as install Magento. You have to choose location, Time Zone and Default Currency.
  8. If you will get error of rewrite error. Please set user permission

  9. Configuration step, enter details as below and take care while entering table prefix and create database in MySQL
  10. Follow Below steps while using “Create Admin Account”
  11. If you are not able to login with your user name and password on admin panel than please modify your code  as per below step
    1. Go to Magento\app\code\core\Mage\Core\Model\Session\Abstract
    2. Open the file Varien.php
    3. Remove  call_user_func_array(‘session_set_cookie_params’, $cookieParams); line
    4. Update below method
  12. Please add web.config file at magento root folder for URL rewrite and update Use Web Server Rewrites setting from  System-> Configuration->Web   
  13. If you are getting error of “Exception printing is disabled” than please follow below step
    1. Locate the root directory where your Magento is installed. Search for “errors” directory.
    2. Change the filename of local.xml.sample to local.xml
    3. Reload the page where it shows error message, you will see a full list of error message – The purpose of rename local.xml is to allow the full error message to be shown.
    4. Now, locate magento_directory/lib/Zend/Cache/Backend/File.php and look for:
    5. Now, go to Magento root directory and create a new directory with the name “tmp”.
    6. Refresh the error page and see if the issue solved.


11 comments:

Vilmos said...

Thank you. Very useful article.

Jason said...
This comment has been removed by the author.
Jason said...

Hi I followed your steps, unfortunately my magento installation is stuck at configuration page, it doesn't go to the create admin account page. After 20 minutes it fails and give an error page.

Any ideas and help would be much appreciated.

Thanks
Jason

Obi Wan said...

Thanks a lot! It was very useful!

Jiri Chaloupka said...

Thank you for this perfect guide!

IIS8 on W2012ess, working perfectly!

Just did the file.php tweak differently, because of future upgrades. File.php is a core file of magento, so I used override function. I created folder under www root folder, \app\code\local\Zend\Cache\Backend, copied file.php there and set cache_dir to completely new folder C:\webtemp with permissions for IIS user.

Emy Watson said...

Best Magento Menu Extension?
Magento Store Permissions

Andie said...
This comment has been removed by the author.
Andie said...

Great Read! I am impressed on how you make your article easy to understand. I'll come back for more :D

For more tutorial and tips about web design and web development you can follow me here -> http://alwaysopencommerce.com/

sahana chinu said...

Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well.this was actually what i was looking for,and i am glad to came here!
magento development company in bangalore 

Almdina said...

شركة المدينة لخدمات التنظيف والتعقيم شركة رائدة في المجالات الآتية :-
أفضل شركة غسيل خزانات بالمدينة المنورة
خدمات تنظيف بالمدينة المنورة
تنظيف خزانات بالمدينة المنورة
ويمكنكم التواصل مع الشركة والبدء في وضع خطة عمل للإستفادة من الخصومات الهائلة التي تقدمها الشركة

Unknown said...

Can we update the MAGENTO later if we've install it on IIS.