Anyway, here’s one for the Googlers out there.
If, while trying to install mod_python into Apache in Windows, you get an error like this:
Syntax error on line 173 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_python.so into server: The specified module could not be found.
, here’s how to fix it:
Include the python directory into your PATH environment variable
set PATH=%PATH%;C:\Python24 or something similar to that), and then try again.
The “fucking hell, so simple and it took me so long!” some people heard from my room was proof that the solution worked for me.
The error is incorrect, anyway, it’s supposed to say something more in the lines of “the module failed to load.”. If it still doesn’t work, make sure you’re using the module for the correct versions of Apache and Python.