<?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>birghtyoursite &#187; apache</title>
	<atom:link href="http://www.brightyoursite.com/blog/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brightyoursite.com/blog</link>
	<description>Bright your site</description>
	<lastBuildDate>Mon, 19 Dec 2011 09:39:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>windows2003 apache .htaccess Server error fix</title>
		<link>http://www.brightyoursite.com/blog/2010/04/16/windows2003-apache-htaccess-server-error-fix/</link>
		<comments>http://www.brightyoursite.com/blog/2010/04/16/windows2003-apache-htaccess-server-error-fix/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 06:20:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://www.brightyoursite.com/blog/?p=359</guid>
		<description><![CDATA[This problem happen when i change IIS to apache on windows server 2003. Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. let me share the way how i fixed this,hope this can help you. [...]]]></description>
			<content:encoded><![CDATA[<p>This problem happen when i change IIS to apache on windows server 2003.<b><br />
Server error!<br />
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.  </b><br />
let me share the way how i fixed this,hope this can help you.<br />
<span id="more-359"></span></p>
<h3>Introduce</h3>
<p>
I have a  php which work with win2k3 and IIS, but this not steady and aways have problems happen, sometimes load very slow, so i decide to use apache,and then i use XAMPP to install apache php on my server, at last all works ok except the url rewrite with .htaccess.For iis i use <a target='_blank' href='http://iirf.codeplex.com/Release/ProjectReleases.aspx'>IIRF</a> to do the url rewrite, it&#8217;s similar to .htaccess, so i copy the rewrite rules to the .htaccess directly.Once i enabled the .htaccess rules ,the site got the error:<br />
 <b><br />
Server error!<br />
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.  </b>
</p>
<h3>The way  fix </h3>
<p>
At begining, i google this error, and get following suggestions:</p>
<ol>
<li>1. make sure you enabled the rewrite modle in apache httpd.conf</li>
<li>2. all following to your .htaccess<br />
AddType application/x-httpd-fastphp5 .php<br />
Action application/x-httpd-fastphp5 /fcgi-bin/php5fcgi<br />
AddType application/x-httpd-php5 .php<br />
Action application/x-httpd-php5 /fcgi-bin/php5fcgi</li>
<li>3. add Options Indexes FollowSymLinks to the .htaccess </li>
<li>4. &#8230;.</li>
</ol>
<p>I see, some are works for others ,but none of those worked for me. XAMPP enabled the rewrite module by default .<br />
here is my .htaccess file</p>

<div class="wp_syntax"><div class="code"><pre class="cgi" style="font-family:monospace;">RewriteRule  ^myMB.html  myMB.php [I,L]</pre></div></div>

<p>it&#8217;s a simple line, but make the site down.Add finally, i find the problem.Go to the</p>

<div class="wp_syntax"><div class="code"><pre class="cgi" style="font-family:monospace;">xampplite\apache\logs</pre></div></div>

<p>and open error.log , at the bottom of the log i see something</p>

<div class="wp_syntax"><div class="code"><pre class="cgi" style="font-family:monospace;">.....htdocs/.htaccess: RewriteRule: unknown flag 'I'</pre></div></div>

<p>I find the problem easy, It&#8217;s the unknown flag &#8216;I&#8217;, that&#8217;s only for IIRF not apache .htaccess. After remove this flag ,the site work again.
</p>
<h3>Summary</h3>
<p>
I post this article, just want to say: when we got similar type of errors,<b>we should look at the log files first</b>, that can make we know the error more clearly. maybe just a small fault it can caused big problem, check the log file will save your time and help you fix the problem.<b> Let&#8217;s all keep the good habits of check log file.</b>Enjoy Reading!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brightyoursite.com/blog/2010/04/16/windows2003-apache-htaccess-server-error-fix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

