Prerequisites:
- Microsoft Visual C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/
You will need at least C++ 14.0 - Python must be installed, in my case it is version 3.10.0 64bit.
Start a command prompt in administrator mode, this is essential.
Type:
$ set MOD_WSGI_APACHE_ROOTDIR=C:/xampp/apache
to point to your apache installation path. Notice the normal backslashes and no quotes.
Install mod-wsgi via pip
$ pip install mod-wsgi
The result should be more or less like this:
Collecting mod-wsgi Using cached mod_wsgi-4.9.4.tar.gz (497 kB) Using legacy 'setup.py install' for mod-wsgi, since package 'wheel' is not installed. Installing collected packages: mod-wsgi Running setup.py install for mod-wsgi ... done Successfully installed mod-wsgi-4.9.4
After this you have to edit the httpd.conf