How to config cgi python apache2 Windows



How to config cgi python apache2 Windows 7 Windows 8 Windows 10

you must have python and wamp or just apache2 installing on your pc

Link Wamp Windows Apache Mysql PHP
http://www.wampserver.com/

Link Python
https://www.python.org/downloads/

add those lignes to httpd.conf apache2 config file between directory
—————————————————————————————–
AddHandler cgi-script .cgi .py
Options Indexes FollowSymLinks ExecCGI
—————————————————————————————–

index.py test page

——————————————————————————————–
print “Content-type: text/html”
print
print “Hello”
———————————————————————————————

source

Reply

Do NOT follow this link or you will be banned from the site!