<?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>Kurinchi Blogger Scribbles ... &#187; CGI</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/tag/cgi/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Premature end of script headers: apache error</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/premature-end-of-script-headers-apache-error.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/premature-end-of-script-headers-apache-error.html#comments</comments>
		<pubDate>Sun, 16 Aug 2009 09:17:54 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[500 internal server error]]></category>
		<category><![CDATA[apache error]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[content type]]></category>
		<category><![CDATA[file permission]]></category>
		<category><![CDATA[header error]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[premature end of script headers]]></category>
		<category><![CDATA[shebang]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=635</guid>
		<description><![CDATA[Apache errors and the approach to solve it Premature end of script headers 500 Internal Server Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. Some troubleshooting tips: i) Check /var/log/apache2/error.log (in ubuntu, check the respective apache error log location for the messages) ii) Check if the content type [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Apache errors and the approach to solve it</strong></p>
<p><strong>Premature end of script headers<br />
500 Internal Server Error<br />
The specified CGI application misbehaved by not returning a complete set of HTTP headers. </strong></p>
<p><em>Some troubleshooting tips:</em></p>
<p>i) Check <strong>/var/log/apache2/error.log </strong>(in ubuntu, check the respective apache error log location for the messages)</p>
<p>ii) Check if the content type of the page is correctly set for the html content output. </p>
<p><strong>print &#8220;Content-type: text/html\n\n&#8221;;</strong></p>
<p>iii) Check if a valid permission has been given for the file to get executed. The file need permission 755 for it to be executed on the server.</p>
<p>iv) Check if the configuration path, inclusion path are set correctly in the referenced programs</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/premature-end-of-script-headers-apache-error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Permission denied: exec of failed in Apache Server</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/08/permission-denied-exec-of-failed-in-apache-server.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/08/permission-denied-exec-of-failed-in-apache-server.html#comments</comments>
		<pubDate>Sat, 15 Aug 2009 06:10:54 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[apache error]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[permission denied]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=631</guid>
		<description><![CDATA[Apache Permission Denied Error can be caused due to one of many configuration mistakes listed below Check the apache configuration settings i) The first is the reference to folder where cgi or perl files will reside and its execute permission settings &#60;ScriptAlias /cgi-bin/ /usr/local/cgi-bin/&#62; &#60;Directory "/usr/local/cgi-bin"&#62; AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Apache Permission Denied Error </strong>can be caused due to one of many configuration mistakes listed below</p>
<p><em>Check the apache configuration settings</em></p>
<p><strong>i) The first is the reference to folder where cgi or perl files will reside and its execute permission settings</strong></p>
<pre>
 &lt;ScriptAlias /cgi-bin/ /usr/local/cgi-bin/&gt;
 &lt;Directory "/usr/local/cgi-bin"&gt;
     AllowOverride None
     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
     Order allow,deny
     Allow from all
 &lt;/Directory&gt;
</pre>
<p><strong>ii) The second is the proper add handlers that are set for the file execution</strong></p>
<pre>
AddHandler cgi-script .cgi .pl
&lt;Files ~ "\.pl$"&gt;
    Options +ExecCGI
&lt;/Files&gt;
&lt;Files ~ "\.cgi$"&gt;
   Options +ExecCGI
&lt;/Files&gt;
</pre>
<p>Check the apache error log for any messages <strong>(/var/log/apache2/error.log).</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/08/permission-denied-exec-of-failed-in-apache-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CGI Vs. Perl &#8230; What then is CGI?</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/04/cgi-vs-perl-what-then-is-cgi.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/04/cgi-vs-perl-what-then-is-cgi.html#comments</comments>
		<pubDate>Wed, 29 Apr 2009 02:09:48 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[CGI Perl]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=278</guid>
		<description><![CDATA[CGI is not a programming language. It is a standard programming interface which gives a web page the capability to run/access other resources on the server(s) which visitors wouldn&#8217;t have direct access to. Perl is a scripting language. It is often misconceived to be the same as CGI, as Perl was the popular language at [...]]]></description>
			<content:encoded><![CDATA[<p><strong>CGI</strong> is not a programming language. It is a standard <strong>programming interface</strong> which gives a web page the capability to run/access other resources on the server(s) which visitors wouldn&#8217;t have direct access to.</p>
<p><strong>Perl is a scripting language</strong>. It is often misconceived to be the same as CGI, as Perl was the popular language at the time when CGI gained momentum in the web world.</p>
<p>CGI can refer to a &#8220;<em>scripting language</em>&#8221; which gets interpreted when calls to a page from the webserver is being made. It can be referred as a &#8220;<em>program</em>&#8220;, when it gets executed on the webserver to have access to resources with hard coded paths other programs when a call from a web page happens.</p>
<p>In short, all Web applications built using ASP/PHP/Python/Perl speaks through the channel &#8211; CGI.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/04/cgi-vs-perl-what-then-is-cgi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

