<?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>Tech.Bitez &#187; Apache</title>
	<atom:link href="http://www.mwasif.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mwasif.com</link>
	<description>Bits and pieces of linux, mysql, apache, php</description>
	<lastBuildDate>Sun, 20 Jun 2010 10:07:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>child pid 2299 exit signal File size limit exceeded (25)</title>
		<link>http://www.mwasif.com/2008/9/signal-file-size-limit-exceeded/</link>
		<comments>http://www.mwasif.com/2008/9/signal-file-size-limit-exceeded/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 15:30:44 +0000</pubDate>
		<dc:creator>Wasif</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.mwasif.com/2008/9/child-pid-2299-exit-signal-file-size-limit-exceeded-25/</guid>
		<description><![CDATA[Apache does not work properly when there is large log (2GB) file(s).]]></description>
			<content:encoded><![CDATA[<p>Today I found that Apache on my server was very slow and a lot of <em>child pid xxxx exit signal File size limit exceeded (25)</em> errors in error_log.</p>
<p>I simply searched for large (2gb) log files and deleted them. Everything became normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mwasif.com/2008/9/signal-file-size-limit-exceeded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increasing file upload limit in PHP</title>
		<link>http://www.mwasif.com/2008/8/increasing-file-upload-limit-in-php/</link>
		<comments>http://www.mwasif.com/2008/8/increasing-file-upload-limit-in-php/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 19:10:40 +0000</pubDate>
		<dc:creator>Wasif</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.mwasif.com/2008/8/increasing-file-upload-limit-in-php/</guid>
		<description><![CDATA[Increasing file upload limit in PHP, Apache (php.ini and .htaccess).]]></description>
			<content:encoded><![CDATA[<p>There are different options to increase file upload limit in PHP. First is changing PHP configuration file (php.ini) and restarting webserver or overwriting the php.ini value in .htacces (this option is available if you are running Apache).</p>
<p>There are 2 directives which affect upload limit i.e. upload_max_filesize and post_max_size.</p>
<p>Now we look at the first method. First you have to find out where the php.ini is. To find out the location, make a .php file containing only this code and place it in your webroot and point your browser to this file.</p>
<pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/phpinfo"><span style="color: #000066;">phpinfo</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
<p>In the page output you can find <em>Configuration File Path</em>. Open this file and change the values for upload_max_filesize and post_max_size according to your requirement e.g. to set 10MB upload limit, the values will be<br />
<strong>upload_max_filesize = 10M<br />
post_max_size = 10M</strong></p>
<p><span id="more-8"></span><br />
After changing the values, save php.ini and restart the webserver. If you open up the above PHP file again, you'll see the updated values of upload_max_filesize and post_max_size.</p>
<p>In case you don't have access to php.ini (in shared hosting environment) or don't want to restart the webserver then the best option is to use .htaccess. </p>
<p>The syntax for .htaccess as follows<br />
<strong>php_value upload_max_filesize 10M<br />
php_value post_max_size 10M</strong></p>
<p><a href="http://httpd.apache.org/">Apache</a> supports .htaccess. I am not sure if you can overwrite these settings in .htaccess with <a href="http://www.lighttpd.net/">lighttpd</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mwasif.com/2008/8/increasing-file-upload-limit-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable register globals</title>
		<link>http://www.mwasif.com/2007/3/enable-register-globals/</link>
		<comments>http://www.mwasif.com/2007/3/enable-register-globals/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 13:49:23 +0000</pubDate>
		<dc:creator>Wasif</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.mwasif.com/2007/3/enable-register-globals/</guid>
		<description><![CDATA[You can enable register globals in many ways including php.ini, .htaccess and using PHP code even on shared host.]]></description>
			<content:encoded><![CDATA[<p>It is strongly recommended that you do not turn on the register_globals. But if you still want to turn on register_globals then follow these steps</p>
<p>Make a .php file containing only this code </p>
<pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/phpinfo"><span style="color: #000066;">phpinfo</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
<p>And upload this file to your new server and open in the browser. In the page output find the value for 'register_globals'. If it is off, then you can solve this problem in the following ways</p>
<p><span id="more-3"></span></p>
<ol>
<li>Turn on the register_globals in php.ini by<br />
<strong>register_globals = On</strong><br />
(it will not be possible if you are on a shared web server) </li>
<li>Put extract($_REQUEST) on the top of every .php file.</li>
<li>Turn on register_globals using .htaccess make a text file with the name .htaccess and put the following code in it and upload to the root folder<br />
<strong>php_flag register_globals on</strong><br />
If you already have a .htaccess file in your website, then simply put this code in it.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.mwasif.com/2007/3/enable-register-globals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>enable mod_rewrite in Apache 1.3+WinXP</title>
		<link>http://www.mwasif.com/2007/1/enable-mod_rewrite-in-apache-13winxp/</link>
		<comments>http://www.mwasif.com/2007/1/enable-mod_rewrite-in-apache-13winxp/#comments</comments>
		<pubDate>Mon, 28 May 2007 11:58:51 +0000</pubDate>
		<dc:creator>Wasif</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache mod_rewrite]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[search engine friendly urls]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Easy steps to enable Apache mod_rewrite for Search Engine Friendly URLs with mod_rewrite]]></description>
			<content:encoded><![CDATA[<p>mod_rewrite provides an effective way to make short/friendly URLs and it also makes your site more attractive for search engine crawlers.</p>
<p>You can enable mod_rewrite for Apache 1.3 with the below steps easily.</p>
<p><b>First step</b><br />
Remove '#' in front of<br />
LoadModule rewrite_module modules/mod_rewrite.so<br />
Make sure 'mod_rewrite.so' is available under 'apache installation directory/modules'.</p>
<p><b>Second step</b><br />
Remove '#' in front of<br />
AddModule mod_rewrite.c<br />
<span id="more-1"></span></p>
<p><b>Third step</b><br />
Set AllowOverride to any of these<br />
AllowOverride FileInfo Options<br />
or<br />
AllowOverride All</p>
<p>Rember, you will find 2 instances of AllowOverride. One like<br />
&lt;Directory /&gt;<br />
    Options FollowSymLinks<br />
    AllowOverride None<br />
&lt;/Directory&gt;</p>
<p>and the 2nd one similar to</p>
<p>&lt;Directory "C:/Program Files/Apache Group/Apache/htdocs"&gt;<br />
    Options Indexes FollowSymLinks MultiViews<br />
    AllowOverride None<br />
    Order allow,deny<br />
    Allow from all<br />
&lt;/Directory&gt;</p>
<p>Change the value in the 2nd instance.<br />
Don't forget to restart Apache for these changes to take affect.</p>
<p>A cool <a href="http://www.ilovejackdaniels.com/mod_rewrite_cheat_sheet.pdf" rel="external nofollow">mod_rewrite cheat sheet</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mwasif.com/2007/1/enable-mod_rewrite-in-apache-13winxp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
