cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to install Magento on IIS 8?

SOLVED

Is it possible to install Magento on IIS 8?

I have a IIS 8 webserver up and running complete with PHP 5.5 and MYSQL 5.6.

Is it possible to deploy Magento in this environment?

 

I added the following to index.php

ini_set("display_errors", 1); 

and I have tried but only get as far as "Customize Your Store" with a fatal error as follows.

 

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1792 bytes) in C:\inetpub\wwwroot\magento\vendor\composer\ClassLoader.php on line 412

 

I also added URL re-write to web.config

 

<system.webServer> 
     <rewrite> 
     <rules>  
      <rule name="Imported Rule 1" stopProcessing="true">  
       <match url=".*" ignoreCase="false"/>        
		<conditions> 
			<add input="{URL}" pattern="^/(media|skin|js)/" ignoreCase="false" negate="true" />  
       			<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />  
       			<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />  
     		</conditions> 
		<action type="Rewrite" url="index.php" />  
     	</rule>  
    </rules>  
    </rewrite>  
   </system.webServer>  
4 REPLIES

Re: Is it possible to install Magento on IIS 8?

The memory available for your PHP interpreter is too low (16M). You need give enough memory to PHP interpreter (I recommend 768M for Magento 2) . See  http://php.net/manual/en/ini.core.php#ini.memory-limit

 

Re: Is it possible to install Magento on IIS 8?

You need to convert this apache config .htaccess to its equivalent in IIS. Note max_execution_time and memory_limit values. Also, there are some tools that help you convert from htaccess to web.config files: http://cbsa.com.br/tools/online-convert-htaccess-to-web-config.aspx

Re: Is it possible to install Magento on IIS 8?

I changed my max_execution_time and memory_limit values in my php.ini file to 20000 and 768 respectively.

This solved the issue of the installation. Now the installation completes fine and I have success page.

 

No other pages will load properly, I guess it is a problem with the URL rewrite.

Any ideas on how to debug URL rewrite?

 

Re: Is it possible to install Magento on IIS 8?

I made a step-by-step instructions for Deploying Magento on IIS here:
http://www.drupalonwindows.com/en/blog/installing-magento-windows-and-iis

It uses integrator build and deployment strategies, and has updated web.config files and configurations.