Can not run CGI program on my VPS
<p>I have linux VPS on which i tried to find out httpd.conf to check settings and to deploy my test CGI script. I found following list httpd.conf :</p>

<pre><code>/home/cpeasyapache/src/httpd-2.2/docs/conf/httpd.conf
/home/cpeasyapache/src/modsecurity-apache/tests/regression/server_root/conf/httpd.conf
/usr/local/apache/conf/original/httpd.conf
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf_pre_ea3/original/httpd.conf
/usr/local/apache/conf_pre_ea3/httpd.conf
</code></pre>

<p>Which one should i consider ? however i checked into :</p>

<pre><code>/home/cpeasyapache/src/httpd-2.2/docs/conf/httpd.conf
/usr/local/apache/conf/httpd.conf
</code></pre>

<p>where i can see the :</p>

<pre><code>ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
&lt;Directory "/usr/local/apache/cgi-bin"&gt;
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
</code></pre>

<p>So as per the setting i write my test.py and chmod 755 test.py and try to run from my browser :</p>

<p><a href="http://xxx.xxx.xxx.xxx/cgi-bin/test.py" rel="nofollow">http://xxx.xxx.xxx.xxx/cgi-bin/test.py</a></p>

<p>But i am not able to print "hello test" as inside the script i have given a print statement.</p>

<p>I am getting "500 Internal Server Error" . I am new in this field .</p>

<p>Could anybody please help me on this .</p>