在 Windows 7 上的 wamp apache 中安装 python cgi

发布于 2024-11-30 06:46:08 字数 480 浏览 0 评论 0原文

我正在尝试在 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技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情绪 2024-12-07 06:46:08

为“所有用户”安装/重新安装 python。我遇到了同样的问题。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文