<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[I am unable to send attachments through Webmail interface or upload big files via PHP scripts.]]></title>
<link>http://kb.parallels.com/en/780</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">I am unable to send attachments through Webmail interface or upload big files via PHP scripts.</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 780&nbsp;</div>
					<div>Last Review: Oct,6 2008</div>
					<tr>
						<td>Author: </td>
						<td></td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>system</td>
					</tr>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Symptoms</h2>
					You are able to upload small files in Webmail or with some PHP script, but big files cannot be uploaded or you get <em>&quot;The page cannot be displayed</em>&quot; error when push &quot;Send Message&quot; button. If error reporting is enabled you receive the &quot;<em>Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)</em>&quot; or &quot;<em>Request Entity Too Large</em>&quot; error.
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					PHP has several configuration options to limit resources consumed by scripts. By default PHP is configured to upload files with size up to 2MB.
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					<p>Try to increase the following values in /etc/php.ini, for example:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>memory_limit = 32M</span><br /><span style='font-family: courier new,courier;font-size: 12px;'>upload_max_filesize = 24M</span><br /><span style='font-family: courier new,courier;font-size: 12px;'>post_max_size = 12M</span><br /><br />and restart Apache.</p>
				</div>
				<div class="article-part">
					<h2>Additional information</h2>
					If the <strong>upload_max_filesize</strong> is larger than <strong>post_max_size</strong>, you must increase <strong>post_max_size</strong> so that it is bigger than <strong>upload_max_size</strong><br />If the value of <strong>post_max_size</strong> is larger than <strong>memory_limit</strong>, you must increase <strong>memory_limit</strong> so that it is larger than <strong>post_max_size</strong>.<br /><br />Parameter    &#39;<strong>LimitRequestBody</strong>&#39; in apache configuration may also be checked and increased if necessary on some OSes. For example,<br /><br /><em>/etc/httpd/conf.d/php.conf:</em><br /><br /><span style='font-family: courier new,courier;font-size: 12px;'># Cause the PHP interpreter handle files with a .php extension.</span> <span style='font-family: courier new,courier;font-size: 12px;'>#</span> <span style='font-family: courier new,courier;font-size: 12px;'>&lt;Files *.php&gt;</span><br /><span style='font-family: courier new,courier;font-size: 12px;'>&nbsp;&nbsp;&nbsp; SetOutputFilter PHP</span><br /><span style='font-family: courier new,courier;font-size: 12px;'>&nbsp;&nbsp;&nbsp; SetInputFilter PHP</span><br /><span style='font-family: courier new,courier;font-size: 12px;'>&nbsp;&nbsp;&nbsp; LimitRequestBody 524288</span><br /><span style='font-family: courier new,courier;font-size: 12px;'>&lt;/Files&gt;</span>
				</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=780&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=780&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '780',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<guid isPermaLink="false">439 LastUpdated: 2008-10-06 09:10:43</guid>
<pubDate>2008-10-06 09:10:43</pubDate>
</item>
</channel>
</rss>



