libmhash.so.2: cannot open shared object file: No such file or directory

No errors were found during wdcp installation! But the operation is abnormal (for example, setting the default home page is invalid), or the following error is reported when installing wdcp:

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

 

or

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: wrong ELF class: ELFCLASS32

 

Solution:

  According to the content of the error, enter the corresponding directory 

      cd /www/wdlinux/httpd-2.2.22/modules/

 View file dependencies

   ldd libphp5.so 

  

 It can be seen from this that two files are missing, just install these two pieces.

Install libmcrypt.so.4

yum install libmcrypt-devel 

or after downloading libmcrypt-2.5.8-alt1.x86_64.rpm

rpm -ivh  libmcrypt-2.5.8-alt1.x86_64.rpm

 

Install  libmhash.so.2

After downloading   mhash-0.9.9.9-3.el6.x86_64.rpm

 

rpm -ivh mhash-0.9.9.9-3.el6.x86_64.rpm

 

Check
   ldd libphp5.so  again after installation

That is, if you still find not found, it means that it is not installed!

 

Check in WDCP, enter website management = "site list =" configuration file check  as follows, the following content appears, indicating that it is normal

Nginx configuration file is normal

Apache configuration file is OK 

 

The above is the solution to the problem I encountered when installing WDCP, I hope it will be useful to you!

 

   

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326914209&siteId=291194637