I’ve been struggling to get python 3.11 + flask app running within iis using wfastCGI. I havent found anythig about wfastcgi and 3.11 on;y 3.8, has anyone managed to achieve serving a flask app in iis under python 3.11?
Many thanks for any pointers, I’ve had chatGPT guiding me but running out of ideas.
added a module mapping for FastCGI with request path *, executable C:\Users\compass\AppData\Local\Programs\Python\Python311\python.exe|C:\Users\compass\AppData\Local\Programs\Python\Python311\Lib\site-packages\wfastcgi.py
request restrictions set to script, deselected invoke handler checkbox
made sure iis has read/write execute to the folder with python and flask app in it
created log folder for errors and made sire iis has write access to it
I don’t think it should be that physical path, seeing as the physical path is one level higher, it just seems to append the url path on. So that might be a symptom of whats wrong, but that s a guess.
all good chatGPT came through with the good in the end and suggested that I add the application pool to have read,write execute permission to the python folder.