Django
mod_wsgi.so:無法將 mod_wsgi.so 載入到伺服器:libpython2.5.so.1.0:無法打開共享對象文件:沒有這樣的文件或目錄
我收到以下錯誤:當我嘗試重新啟動伺服器時:
[root@lts5srv1 mod_wsgi-2.3]# service httpd restart Stopping httpd: [FAILED] Starting httpd: httpd: Syntax error on line 202 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_wsgi.so into server: libpython2.5.so.1.0: cannot open shared object file: No such file or directory [FAILED]
當我輸入:
[root@lts5 /]# ldd /usr/lib64/httpd/modules/mod_wsgi.so libpython2.5.so.1.0 => /root/epd-5.1.0/lib/libpython2.5.so.1.0 (0x00002b4b53ccf000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b4b54036000) libdl.so.2 => /lib64/libdl.so.2 (0x00002b4b54251000) libutil.so.1 => /lib64/libutil.so.1 (0x00002b4b54456000) libc.so.6 => /lib64/libc.so.6 (0x00002b4b54659000) libm.so.6 => /lib64/libm.so.6 (0x00002b4b549b1000) /lib64/ld-linux-x86-64.so.2 (0x0000003d9f600000)
當我輸入時,我怎樣才能做到這一點:
[root@lts5srv1 /]# ldd mod_wsgi.so ldd: ./mod_wsgi.so: No such file or directory
..顯示相同的結果?
對我來說,解決方案是:在新的 Python 站點封包件夾中重新安裝新版本的 Python 和其他需要的模組。(當您嘗試了所有方法並且似乎不起作用時,請嘗試重新安裝新版本的 python 並且不要使用預設版本)按照此連結查看各個步驟..: 解決方案