<?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>amount of time &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/amount-of-time/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Wed, 11 May 2011 04:18:18 +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 Resources Used By A PHP Script</title>
		<link>https://lifelinux.com/how-to-limit-resources-used-by-a-php-script/</link>
					<comments>https://lifelinux.com/how-to-limit-resources-used-by-a-php-script/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 11 May 2011 04:07:00 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[amount of time]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[filesize]]></category>
		<category><![CDATA[input time]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[limit resources]]></category>
		<category><![CDATA[max input]]></category>
		<category><![CDATA[max size]]></category>
		<category><![CDATA[maximum execution time]]></category>
		<category><![CDATA[maximum size]]></category>
		<category><![CDATA[memory limit]]></category>
		<category><![CDATA[php allow_url_fopen = Off]]></category>
		<category><![CDATA[php cgi.force_redirect = 0]]></category>
		<category><![CDATA[php file_uploads = Off]]></category>
		<category><![CDATA[php max_execution_time = 30]]></category>
		<category><![CDATA[php max_input_time = 30]]></category>
		<category><![CDATA[php memory_limit = 40M]]></category>
		<category><![CDATA[php post_max_size = 8M]]></category>
		<category><![CDATA[php scripts]]></category>
		<category><![CDATA[php sql.safe_mode = On]]></category>
		<category><![CDATA[php upload_max_filesize = 2M]]></category>
		<category><![CDATA[request data]]></category>
		<category><![CDATA[resource limits]]></category>
		<category><![CDATA[uploaded files]]></category>
		<category><![CDATA[web server service]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=390</guid>

					<description><![CDATA[<p>PHP supports the following resource limits directives in php.ini file. To limit resources used by a PHP script edit the file php.ini. Note that this change will affect all websites and PHP scripts on the server. To find the location of php.ini, you can use the phpinfo() PHP function to find it. Create file with [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-limit-resources-used-by-a-php-script/">How To Limit Resources Used By A PHP Script</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>PHP supports the following resource limits directives in <strong>php.ini</strong> file. To limit resources used by a PHP script edit the file php.ini. Note that this change will affect all websites and PHP scripts on the server.</p>
<p>To find the location of php.ini, you can use the phpinfo() PHP function to find it. Create file with following content:</p>
<pre>&lt;?php
phpinfo();
?&gt;</pre>
<p><span id="more-390"></span><br />
Sample outputs:<br />
<a href="http://www.lifelinux.com/wp-content/uploads/2011/05/php.ini_.png"><img loading="lazy" class="aligncenter size-medium wp-image-392" title="php.ini" src="http://www.lifelinux.com/wp-content/uploads/2011/05/php.ini_-300x49.png" alt="" width="300" height="49" srcset="https://lifelinux.com/wp-content/uploads/2011/05/php.ini_-300x49.png 300w, https://lifelinux.com/wp-content/uploads/2011/05/php.ini_.png 335w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>To edit php.ini, type the following command:</p>
<pre>[root@lifelinux ~]# vi /etc/usr/local/etc/php.ini</pre>
<p>Set maximum execution time of each script:</p>
<pre>max_execution_time = 30</pre>
<p>Set maximum amount of time each script may spend parsing request data</p>
<pre>max_input_time = 30</pre>
<p>Set maximum amount of memory a script may consume</p>
<pre>memory_limit = 64M</pre>
<p>Set maximum size of POST data that PHP will accept</p>
<pre>post_max_size = 8M</pre>
<p>Set maximum allowed size for uploaded files</p>
<pre>upload_max_filesize = 8M</pre>
<p>Disable/Enable HTTP file uploads (Disallow uploading unless necessary)</p>
<pre>file_uploads = Off</pre>
<p>Final, restart web server, example restart apache server, type the following command</p>
<pre>[root@lifelinux ~]# /etc/init.d/httpd restart</pre>
<g:plusone href="https://lifelinux.com/how-to-limit-resources-used-by-a-php-script/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-limit-resources-used-by-a-php-script/">How To Limit Resources Used By A PHP Script</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-resources-used-by-a-php-script/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
