<?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>htaccess &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Tue, 24 May 2011 09:35:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Limit File Upload Size On Apache</title>
		<link>https://lifelinux.com/how-to-limit-file-upload-size-on-apache/</link>
					<comments>https://lifelinux.com/how-to-limit-file-upload-size-on-apache/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Tue, 24 May 2011 09:25:56 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[apache .htaccess]]></category>
		<category><![CDATA[apache 2]]></category>
		<category><![CDATA[configuration options]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Limiting Upload Size]]></category>
		<category><![CDATA[LimitRequestBody]]></category>
		<category><![CDATA[request body]]></category>
		<category><![CDATA[restart apache web server]]></category>
		<category><![CDATA[uploads]]></category>
		<category><![CDATA[virtual host]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=748</guid>

					<description><![CDATA[<p>To limit the total size of the HTTP request body sent from the client use LimitRequestBody Directive. The LimitRequestBody directive allows the user to set a limit on the allowed size of an HTTP request message body within the context in which the directive is given (server, per-directory, per-file or per-location). If the client request [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-limit-file-upload-size-on-apache/">How To Limit File Upload Size On Apache</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>To limit the total size of the HTTP request body sent from the client use <strong>LimitRequestBody</strong> Directive.<br />
<span id="more-748"></span><br />
The <strong>LimitRequestBody</strong> directive allows the user to set a limit on the allowed size of an HTTP request message body within the context in which the directive is given (server, per-directory, per-file or per-location). If the client request exceeds that limit, the server will return an error response instead of servicing the request. The size of a normal request message body will vary greatly depending on the nature of the resource and the methods allowed on that resource. CGI scripts typically use the message body for passing form information to the server. Implementations of the PUT method will require a value at least as large as any representation that the server wishes to accept for that resource.</p>
<p>This directive gives the server administrator greater control over abnormal client request behavior, which may be useful for avoiding some forms of denial-of-service attacks.</p>
<p>This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.</p>
<p>For example,if we want to limit upload size to 100k for  /var/www/html/uploads, we need to add below commands to .htaccess or httpd.conf.</p>
<pre>
&lt;Directory "/var/www/html/uploads"&gt;
    LimitRequestBody 102400
&lt;/Directory&gt;
</pre>
<p>Finally, restart apache ( if added to httpd.conf ), type the following command as root</p>
<pre>
# /etc/init.d/httpd graceful
</pre>
<g:plusone href="https://lifelinux.com/how-to-limit-file-upload-size-on-apache/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-limit-file-upload-size-on-apache/">How To Limit File Upload Size On Apache</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-limit-file-upload-size-on-apache/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Increase PHP Memory Limit</title>
		<link>https://lifelinux.com/how-to-increase-php-memory-limit/</link>
					<comments>https://lifelinux.com/how-to-increase-php-memory-limit/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 11 May 2011 04:19:40 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[Fatal Error: PHP Allowed Memory Size Exhausted]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[memory_limit]]></category>
		<category><![CDATA[PHP Memory Limit]]></category>
		<category><![CDATA[php_value]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[vi command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=400</guid>

					<description><![CDATA[<p>If you have seen an error like “Fatal Error: PHP Allowed Memory Size Exhausted” in webserver logs or in your browser, this means that PHP has exhausted the maximum memory limit. There are several techniques to increase the PHP memory limit and you only need to use one of them. Changing memory limit globally from [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-increase-php-memory-limit/">How To Increase PHP Memory Limit</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>If you have seen an error like “<em><span style="color: #ff0000;">Fatal Error: PHP Allowed Memory Size Exhausted</span></em>” in webserver logs or in your browser, this means that PHP has exhausted the maximum memory limit.  There are several techniques to increase the PHP memory limit and you only need to use one of them.<span id="more-400"></span></p>
<h3>Changing memory limit globally from php.ini</h3>
<p>To find locate the php.ini file used by your web server. You can use the phpinfo() PHP function to <a href="http://www.lifelinux.com/how-to-limit-resources-used-by-a-php-script/">find it</a>. After, type the following command to edit php.ini file:</p>
<pre>[root@lifelinux ~]# vi /etc/usr/local/etc/php.ini</pre>
<p>Edit the memory_limit parameter in the php.ini file</p>
<pre>memory_limit = 32M</pre>
<p>You will require root access to make changes to php.ini on the system. This change is global and will be used by all php scripts running on the system. Once you change this value, you will need to restart the web server in order for it to become active.</p>
<h3>Changing memory limit using .htaccess</h3>
<p>Edit the .htaccess file in the web root directory. Look for the section:</p>
<pre>php_value memory_limit 32M</pre>
<p>This method will only work if PHP is running as an Apache module.</p>
<h3>Changing memory limit inside a single php script</h3>
<p>Set this directive inside a single php script:</p>
<pre>ini_set('memory_limit', '32M');</pre>
<g:plusone href="https://lifelinux.com/how-to-increase-php-memory-limit/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-increase-php-memory-limit/">How To Increase PHP Memory Limit</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-increase-php-memory-limit/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
