简体   繁体   中英

Installing python cgi in wamp apache on windows 7

I'm trying to install mod_wsgi on windows 7, but can't get it to work. I've validated that everything is 32-bit, the filenames are correct and I've installed python 2.7 for all users. The python path has been added to PATH and I have checked it's working in console. Does anyone have any idea why apache produces the following message?

The Apache service named  reported the following error:
>>> httpd.exe: Syntax error on line 128 of C:/wamp/bin/apache/Apache2.2.17/conf/httpd.conf: Cannot load C:/wamp/bin/apache/Apache2.2.17/modules/mod_wsgi.so into server: The Apache service named is not a valid Win32 application.     

Install/Re-install python for "All users". I faced the same problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM