[root@ ~]# service httpd restart
停止 httpd: [失敗]
正在啟動(dòng) httpd:httpd: Syntax error on line 54 of /www/wdlinux/httpd-2.2.22/conf/httpd.conf: Cannot load /www/wdlinux/httpd-2.2.22/modules/libphp5.so into server: libmhash.so.2: cannot open shared object file: No such file or directory
[失敗]
3.cannot open shared object file:翻譯是“無(wú)法打開共享對(duì)象文件”把libmhash.so.2所在目錄的文件夾名加入/etc/ld.so.conf文件中!libmhash.so.2所在的目錄就是上面的./usr/local/lib/
接著指令
#echo "/usr/local/lib">>/etc/ld.so.conf
# ldconfig
最后在WDCP上重啟下服務(wù),然后再去看看,你可能還會(huì)發(fā)現(xiàn)還有問題 libmcrypt.so.4 不存在,報(bào)錯(cuò)是
httpd: Syntax error on line 54 of /www/wdlinux/httpd-2.2.22/conf/httpd.conf: Cannot load /www/wdlinux/httpd-2.2.22/modules/libphp5.so into server: libmcrypt.so.4: cannot open shared object file: No such file or directory