Need Help to Configure apache Server to run CGI Script written in Python
<p>I cannot configure Apache Server to run CGI script written in python. I have searched the net and I have add all the information in "httpd.conf" file located at "C:\wamp\bin\apache\Apache2.2.17\conf" the details of modifications are;</p>

<hr>

<pre><code>&lt;Directory /&gt;
Options FollowSymLinks +ExecCGI 
AllowOverride None
Order deny,allow
Deny from all
&lt;/Directory&gt;

&lt;Directory "C:\wamp\bin\apache\Apache2.2.17\cgi-bin"&gt;
AllowOverride None
Options None
Order allow,deny
Allow from all
&lt;/Directory&gt;

AddHandler cgi-script .cgi .py
</code></pre>

<hr>

<p>I have added above mentioned settings in "httpd.conf" file located at "C:\wamp\bin\apache\Apache2.2.17\conf" and restarted the wamp server.</p>

<hr>

<p>When ever I try to run my python CGI script browser just prints my code no error message. the link i am using is; <a href="http://localhost/cgi-bin/first_cgi_script.py" rel="nofollow">http://localhost/cgi-bin/first_cgi_script.py</a></p>

<hr>

<p>My code is;</p>

<pre><code>#!c:\Python27\python.exe -u

import time

def printHeader( title ):
     print """Content-type: text/html

     &lt;?xml version = "1.0" encoding = "UTF-8"?&gt;
     &lt;!DOCTYPE html PUBLIC
     "-//W3C//DTD XHTML 1.0 Strict//EN"
     "DTD/xhtml1-strict.dtd"&gt;
     &lt;html xmlns = "http://www.w3.org/1999/xhtml"&gt;
     &lt;head&gt;&lt;title&gt;%s&lt;/title&gt;&lt;/head&gt;
     &lt;body&gt;""" % title

printHeader( "Current date and time" )
print time.ctime( time.time() )
print "&lt;/body&gt;&lt;/html&gt;"
</code></pre>

<hr>

<p>Help is required thanks.</p>
