I am not able to run python cgi script in ubuntu using xampp
I have made necessary changes in httpd.conf(/opt/lampp/etc)
<Directory "/opt/lampp/htdocs">
Options +ExecCGI
AddHandler cgi-script .cgi .py
Order allow,deny
Allow from all
</Directory>
==========================================================
and my python script file is
#!/usr/bin/python
# -*- coding: UTF-8 -*-# enable debugging
import cgitb
cgitb.enable()
print "Content-Type: text/html;charset=utf-8"
print "Hello World!"
===========================================================
Thanks in advance !