I've researched this on Stackoverflow and other sites but I can't get it to work. I have WAMPSERVER 3.2.3 ruuning under Win10 on my desktop PC; PHP version 7.3.21, MySQL 5.7.31 and Apache 2.4.26. WAMPSERVER is installed on the C: drive in c:\wamp64, localhost is H:\sites.web. I've installed Python under C:\Python3.9 and I can use it from the command line. I downloaded mod_wsgi-4.7.1-cp39-cp39-win_amd64. whl and installed it using pip but didn't end up with a mod_wsgi.so file. I made the following changes to the Apache http.conf file
<Directory "${SRVROOT}/cgi-bin">
AllowOverride None
Options None
Require all granted <- changed to granted from denied
</Directory>
added +ExecCGI to this line
Options +Indexes +FollowSymLinks +Multiviews +ExecCGI
and added .py to this line
AddHandler cgi-script .cgi .py
as per this Youtube video https://www.youtube.com/watch?v=N3XfGXi4ifE
But when I come to running a python script under localhost it doesn't work. Am I missing something? I get an error message that I don't have permsision to run that script.
Thanks
Paul