<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iTechLog &#187; php.ini</title>
	<atom:link href="http://itechlog.com/tag/phpini/feed/" rel="self" type="application/rss+xml" />
	<link>http://itechlog.com</link>
	<description>Your source to IT solutions, interesting technology news and code snipets.</description>
	<lastBuildDate>Mon, 06 Sep 2010 12:05:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>WordPress Media upload HTTP Error</title>
		<link>http://itechlog.com/wordpress/2009/08/26/wordpress-media-upload-http-error/</link>
		<comments>http://itechlog.com/wordpress/2009/08/26/wordpress-media-upload-http-error/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 10:19:10 +0000</pubDate>
		<dc:creator>Alex Costa</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache mod_security]]></category>
		<category><![CDATA[HTTP Error]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[swfupload]]></category>
		<category><![CDATA[Wordpress-MU]]></category>

		<guid isPermaLink="false">http://itechlog.com/wordpress/2009/08/26/wordpress-media-upload-http-error/</guid>
		<description><![CDATA[WordPress and WordPress-MU have given me the HTTP error in the various installations I have performed and each time there&#8217;s a different cause. This post is nothing more than a personal notation for future reference but I hope it&#8217;s helpful to someone. Error: when trying to upload media using the WordPress Flash uploader it get [...]]]></description>
			<content:encoded><![CDATA[<p><b><a target="_blank" href="http://wordpress.org">WordPress</a> </b>and <a target="_blank" href="http://mu.wordpress.org/"><b>WordPress-MU</b></a> have given me the HTTP error in the various installations I have performed and each time there&#8217;s a different cause. This post is nothing more than a personal notation for future reference but I hope it&#8217;s helpful to someone.</p>
<p>Error: when trying to upload media using the <b>WordPress Flash uploader</b> it get the message <b>HTTP Error</b></p>
<p><b>Disclaimer</b>: <i>before messing with your .htaccess file, make sure you have a backup copy of it in case it causes a 500 Server configuration error. If this happens just replace the .htaccess file with the back up version. Check your code for any mistakes and try again.<br /></i><br />Possible causes:
<ul>
<li><b>mod_security</b> &#8211; basically all Apache servers will have it turned on, so you may need to turn it off for the async-upload.php file using .htaccess. The newer versions of WP have added this code already, but in case you mess up your htaccess file, here it is.&nbsp; Just add the following lines to the bottom of your .htaccess file in the root folder of your WP or WP-MU installation.&nbsp; </li>
</ul>
<div align="center">&lt;IfModule mod_security.c&gt; <br />&lt;Files async-upload.php&gt; <br />SecFilterEngine Off <br />SecFilterScanPOST Off <br />&lt;/Files&gt; <br />&lt;/IfModule&gt;</div>
<p>
<ul>
<li><b>Access Denied Error 403/ Permission issue</b> &#8211; another typical problem. Make sure that the upload folder is writeable by the server, you can set the permission to 754 and it should work fine. In WordPress the upload folder sits under /wp-content/&nbsp; in WP-MU it sits under /blogs.dir/&#8221;blog number&#8221;/files&nbsp; (default site blog number is 1 and the other blogs are numbered in ascending order of creation)</li>
</ul>
<ul>
<li><b>PHP Upload limit</b> &#8211; check you PHP.ini settings for the settings upload_max_filesize and post_max_size. You can change these directly in your PHP.ini if you have access to it or you can change it by adding a php.ini file to you root directory with the following code. The default is normally 2M but you can change it to anything at your own risk, you should not need more then 8M.)</li>
</ul>
<div align="center">post_max_size = 8M<br />upload_max_filesize = 8M</p>
<p>
<div align="left">
<div align="center">or by adding the following lines to your .htaccess file:</div>
<div align="center">php_value upload_max_filesize 8M<br />php_value post_max_size 8M</p>
<p>for anything above 8M you may need to add an execution time to the .htaccess code also<br />php_value max_execution_time  800</p>
</div>
</div>
<div align="left"> </div>
</div>
<ul>
<li><b>Authentication Failed Error 401</b>- I checked my server log and noticed that WordPress was trying to access the 401.shtml error template every time I got the HTTP error during a media upload attempt. This normally occours if you are using password protection for the WordPress root folder or the folder where your uploads should reside. You should disable the password protection on the folder i norder for the uploader to work.</li>
</ul>
<p>Hope it helps. Please leave your contributions and bug reports so others can benefit from it.</p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=d6acb708-013d-8f9e-9a07-de3417c3833a" /></div>
<ul class="socialwrap size32 row">
<li class="iconOnly"><a rel="nofollow" target="_blank" class="delicious" href="http://delicious.com/post?url=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F&amp;title=WordPress+Media+upload+HTTP+Error" title="Bookmark this post : WordPress Media upload HTTP Error on Delicious"><span class="head">Bookmark on Delicious</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="digg" href="http://digg.com/submit?url=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F&amp;title=WordPress+Media+upload+HTTP+Error&amp;bodytext=Wordpress+and+Wordpress-MU+have+given+me+the+HTTP+error+in+the+various+installations+I+have+performed+and+each+time+there%27s+a+different+cause.+This+post+is+nothing+more+than+a+personal+notation+for+future+reference+but+I+hope+it%27s+helpful+to+someone.Error%3A+when+trying+to+upload+media+using+the+Wordpress+Flash+uploader+" title="Digg this post : WordPress Media upload HTTP Error"><span class="head">Digg this post</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="facebook" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F&amp;t=WordPress+Media+upload+HTTP+Error" title="Recommend this post : WordPress Media upload HTTP Error on Facebook"><span class="head">Recommend on Facebook</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="google_buzz" href="http://www.google.com/reader/link?url=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F&amp;title=WordPress+Media+upload+HTTP+Error" title="Buzz up this post : WordPress Media upload HTTP Error "><span class="head">Buzz it up</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="yahoo_buzz" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F" title="Buzz up this post : WordPress Media upload HTTP Error "><span class="head">Buzz it up</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="orkut" href="http://promote.orkut.com/preview?nt=orkut.com&amp;du=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F&amp;tt=WordPress+Media+upload+HTTP+Error" title="Share this post : WordPress Media upload HTTP Error on Orkut"><span class="head">Share on Orkut</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="reddit" href="http://www.reddit.com/submit?url=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F&amp;title=WordPress+Media+upload+HTTP+Error" title="Share this post : WordPress Media upload HTTP Error on Reddit"><span class="head">share via Reddit</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="stumble" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F&amp;title=WordPress+Media+upload+HTTP+Error" title="Share this post : WordPress Media upload HTTP Error with Stumblers"><span class="head">Share with Stumblers</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="_blank" class="twitter" href="http://twitter.com/home/?status=http%3A%2F%2Fitechlog.com%2Fwordpress%2F2009%2F08%2F26%2Fwordpress-media-upload-http-error%2F" title="Tweet this post : WordPress Media upload HTTP Error on Twitter"><span class="head">Tweet about it</span></a></li>
<li class="iconOnly"><a rel="nofollow" target="" class="rss" href="http://itechlog.com/wordpress/2009/08/26/wordpress-media-upload-http-error/feed" title="Follow this post : WordPress Media upload HTTP Error comments"><span class="head">Subscribe to the comments on this post</span></a></li>
<li class="iconOnly"><a rel="" class="email" href="mailto:?subject=iTechLog : WordPress Media upload HTTP Error&#038;body=here is a link to a site I really like.   http://itechlog.com/wordpress/2009/08/26/wordpress-media-upload-http-error/" title="Tell a friend about this post : WordPress Media upload HTTP Error "><span class="head">Tell a friend</span></a></li>
</ul>
<div class="clean"></div>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/.htaccess' rel='tag' target='_self'>.htaccess</a>, <a class='technorati-link' href='http://technorati.com/tag/Apache+mod_security' rel='tag' target='_self'>Apache mod_security</a>, <a class='technorati-link' href='http://technorati.com/tag/HTTP+Error' rel='tag' target='_self'>HTTP Error</a>, <a class='technorati-link' href='http://technorati.com/tag/php.ini' rel='tag' target='_self'>php.ini</a>, <a class='technorati-link' href='http://technorati.com/tag/swfupload' rel='tag' target='_self'>swfupload</a>, <a class='technorati-link' href='http://technorati.com/tag/Wordpress' rel='tag' target='_self'>WordPress</a>, <a class='technorati-link' href='http://technorati.com/tag/Wordpress-MU' rel='tag' target='_self'>WordPress-MU</a></p>

<!-- end wp-tags-to-technorati -->
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>August 12, 2010 -- <a href="http://itechlog.com/linux/2010/08/12/linuxcon-2010-just-for-fun-poll-results-explained/" title="LinuxCon 2010 Just for Fun Poll Results explained">LinuxCon 2010 Just for Fun Poll Results explained</a></li><li>June 5, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/06/05/keyword-search-and-website-ranking-tools/" title="Keyword search and website ranking tools">Keyword search and website ranking tools</a></li><li>May 12, 2009 -- <a href="http://itechlog.com/itechlog-news/2009/05/12/offline-blogging-tools/" title="Offline Blogging Tools">Offline Blogging Tools</a></li><li>March 27, 2009 -- <a href="http://itechlog.com/web-programming/2009/03/27/htaccess-301-redirect/" title=".htaccess 301 Redirect">.htaccess 301 Redirect</a></li><li>December 13, 2008 -- <a href="http://itechlog.com/wordpress/2008/12/13/seo-and-wordpress/" title="SEO and Wordpress">SEO and Wordpress</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://itechlog.com/wordpress/2009/08/26/wordpress-media-upload-http-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
