在 Windows 7 上的 wamp apache 中安装 python cgi
我正在尝试在 Windows 7 上安装 mod_wsgi,但无法让它工作。我已经验证一切都是 32 位的,文件名是正确的,并且我已经为所有用户安装了 python 2.7。 python 路径已添加到 PATH 中,我已检查它在控制台中是否正常工作。有谁知道为什么 apache 会产生以下消息?
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为“所有用户”安装/重新安装 python。我遇到了同样的问题。
Install/Re-install python for "All users". I faced the same problem.