[root@ ~]# service httpd restart
停止 httpd: [失败]
正在启动 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:翻译是“无法打开共享对象文件”把libmhash.so.2所在目录的文件夹名加入/etc/ld.so.conf文件中!libmhash.so.2所在的目录就是上面的./usr/local/lib/
接着指令
#echo "/usr/local/lib">>/etc/ld.so.conf
# ldconfig
最后在WDCP上重启下服务,然后再去看看,你可能还会发现还有问题 libmcrypt.so.4 不存在,报错是
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