<?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>Fatal Error: PHP Allowed Memory Size Exhausted &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/fatal-error-php-allowed-memory-size-exhausted/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Wed, 11 May 2011 04:39:32 +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 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>
