我试图为我在虚拟环境中找到的Python 2.7编译mod_wsgi。我的服务器默认值为2.6.6。
所以我在mod_wsgi源上运行了这个:
./configure --with-python=/var/www/virtualenv-2.7/lib/python2.7 \ LDFLAGS="-R/usr/local/lib"
然后
make && make install
在这样做之后,当我尝试启动httpd时,我收到了这个错误:
Syntax error on line 202 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_wsgi.so into server: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
答案 0 :(得分:1)
您是否检查了" mod_wsgi.so"在里面" / etc / httpd / modules /"?
如果它在那里,请尝试更改" /etc/httpd/modules/mod_wsgi.so" to" modules / mod_wsgi.so"