I'm a newbie and trying to create the following simple cgi script and stored it in /usr/lib/cgi-bin/hello.py:
#!/usr/bin/python print "Content-type: text/html" print print "<html>" print "<center>Hello, Linux.com!</center>" print "</html>"
Also, I have add the following code to the /etc/apache2/sites-available/000-default.conf:
<Directory "/var/www/cgi-bin"> Options +ExecCGI AddHandler cgi-script .py </Directory>
and tried to run on browser by http://usr/lib/cgi-bin/hello.py. It's not working