Hello Stranger

franthomas.com tries to update each monday, check back soon click me for rss goodness

Friends

What Katie Read; insightful book reviews Screenwriters Forum; WM professional screenwriters group Twilight Guild; Lightbringer EU late night raiding Film Twats; 'alternative' film reviews Shooting People; indepedent filmmakers network

I came across the above error while setting up a podcast for Hot Ginger recently and the solution was’nt simple. The information is out there but it was a combination of a number of suggestions that eventually worked.

Assuming you already have uploads working in the WP media library (and therfore your basic configuration is correct) there are three configuration steps needed to enable support for large files with WordPress running on IIS7.

IIS Settings (web.config)

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <security>
		<requestFiltering>
			<requestLimits maxAllowedContentLength="2000000000" />
		</requestFiltering>
	</security>
  </system.webServer>
</configuration>

PHP Settings (php.ini or php-cgi-fcgi.ini)

file_uploads = on
upload_max_filesize = 100M
max_input_time = 240
memory_limit = 128M
max_execution_time = 240
post_max_size = 100M</pre>

WordPress Settings (wp-config.php)

/* Execution memory limit */
define('WP_MEMORY_LIMIT', '128M');

Tested with platform versions; WordPress 3.0, PHP 5.2.12 (FastCGI), Windows 2008 SP2.

Bookmark and Share

3 Responses to “WordPress IIS7 Large File Upload HTTP Error”

  1. Adrian says:

    Thumb up 1 Thumb down 0

    Hi there,

    Thanks for the information. I’ve added config to the php.ini file and wp-config file but I’m still getting the HTTP error. I#ve set my limits to 400mb and 600 seconds. I’m trying to upload a 23mb file.

    any other idea’s what might be causing it?

    regards

    Adrian

  2. Fran says:

    Thumb up 0 Thumb down 0

    Have you also edited the web.config – also double check with phpinfo that the settings you have in php.ini are working correctly as (depending on how you have it set up) you could need to restart the WWW service.

  3. clark says:

    Thumb up 0 Thumb down 0

    This is awesome!! I’ve been looking so long for a solution to this and yours worked perfectly! It’s a pain trying to find answers to wordpress/iis problems. Thanks!!


Leave a Reply