尝试在 MAMP 中安装 mod_wsgi 时出现问题
我使 mod_wsgi 如下所示
$./configure
--with-python=/Library/Frameworks/Python.framework/Versions/2.7/bin/python
--with-apxs=/usr/local/apache2/bin/apxs
checking Apache version... 2.0.63
configure: creating ./config.status
config.status: creating Makefile
$sudo make $sudo make install
然后我将文件从 /usr/local/apache2/modules/mod_wsgi.so
复制到 /Applications/MAMP/Library/modules/mod_wsgi
。
然后我在 httpd.conf
中添加了以下内容:
LoadModule wsgi_module modules/mod_wsgi.so
最后,我为 Apache 加注星标,但出现错误。
$ sudo /Applications/MAMP/Library/bin/apachectl start
Syntax error on line 287 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_wsgi.so into server: cannot create object file image or add library
I make mod_wsgi is like following
$./configure
--with-python=/Library/Frameworks/Python.framework/Versions/2.7/bin/python
--with-apxs=/usr/local/apache2/bin/apxs
checking Apache version... 2.0.63
configure: creating ./config.status
config.status: creating Makefile
$sudo make $sudo make install
And then I copy file from /usr/local/apache2/modules/mod_wsgi.so
to /Applications/MAMP/Library/modules/mod_wsgi
.
Then I added the following in httpd.conf
:
LoadModule wsgi_module modules/mod_wsgi.so
Finally, I star Apache and I get an error.
$ sudo /Applications/MAMP/Library/bin/apachectl start
Syntax error on line 287 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_wsgi.so into server: cannot create object file image or add library
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
httpd.conf
: