Dear all,

I have got the following problem, please kindly help.
The problem was caused that when I compiled Apache 1.3.14 with DSO, which is running properly. And then I compiled PHP 4.0.4 is also running properly.
However, I tried to compile PHP 4.0.4 with libmcrypt 2.4.8 and mhash 0.8.5 by this configure (./configure --with-apxs=[path to apxs of apache] --enable-memory-limit=yes --enable-debug=no --enable-track-vars --with-mysql --enable-ftp --enable-bcmath --enable-calendar --with-mcrypt=/usr/local/lib --with-mhash=/usr/local/lib --enable-wddx); The "libmcrypt.so.4" and "mhash.so.2" files stored in /usr/local/lib, then I restarted the apache (apachectl restart)... I got the error message:
Dear all,

I have got the following problem, please kindly help.
The problem was caused that when I compiled Apache 1.3.14 with DSO, which is running properly. And then I compiled PHP 4.0.4 is also running properly.
However, I tried to compile PHP 4.0.4 with libmcrypt 2.4.8 and mhash 0.8.5 by this configure (./configure --with-apxs=[path to apxs of apache] --enable-memory-limit=yes --enable-debug=no --enable-track-vars --with-mysql --enable-ftp --enable-bcmath --enable-calendar --with-mcrypt=/usr/local/lib --with-mhash=/usr/local/lib --enable-wddx); The "libmcrypt.so.4" and "mhash.so.2" files stored in /usr/local/lib, then I restarted the apache (apachectl restart)... I got the error message:
Dear all,

I have got the following problem, please kindly help.
The problem was caused that when I compiled Apache 1.3.14 with DSO, which is running properly. And then I compiled PHP 4.0.4 is also running properly.
However, I tried to compile PHP 4.0.4 with libmcrypt 2.4.8 and mhash 0.8.5 by this configure (./configure --with-apxs=[path to apxs of apache] --enable-memory-limit=yes --enable-debug=no --enable-track-vars --with-mysql --enable-ftp --enable-bcmath --enable-calendar --with-mcrypt=/usr/local/lib --with-mhash=/usr/local/lib --enable-wddx); The "libmcrypt.so.4" and "mhash.so.2" files stored in /usr/local/lib, then I restarted the apache (apachectl restart)... I got the error message😃ear all,

I have got the following problem, please kindly help.
The problem was caused that when I compiled Apache 1.3.14 with DSO, which is running properly. And then I compiled PHP 4.0.4 is also running properly.
However, I tried to compile PHP 4.0.4 with libmcrypt 2.4.8 and mhash 0.8.5 by this configure (./configure --with-apxs=[path to apxs of apache] --enable-memory-limit=yes --enable-debug=no --enable-track-vars --with-mysql --enable-ftp --enable-bcmath --enable-calendar --with-mcrypt=/usr/local/lib --with-mhash=/usr/local/lib --enable-wddx); The "libmcrypt.so.4" and "mhash.so.2" files stored in /usr/local/lib, then I tested the apache (apachectl configtest)... I got the error message:

Syntax error on line 238 of /www/apache/conf/httpd.conf:
Cannot load /www/apache/libexec/libphp4.so into server: libmhash.so.2: cannot op
en shared object file: No such file or directory

If I didn't compile with mcrypt or mhash, the apache and php are running properly. But the file "libmhash.so.2" is in /usr/local/lib, either I config without the path (--with-mhash) it also failed.
Please help ... Thank you!

    P.S. The files "libmcrypt.co.4" and "libmhash.so.2" in /usr/local/lib, the previous message has some wrong string...

      I had a similar problem though with different libraries.

      Make sure /etc/ld.so.config contains a line with /usr/local/lib and then run ldconfig -v (I think this must be done as root). Restart apache.

      Hope that helps!

        a year later

        I am having the same problem, and ld-so.conf already has the /usr/local/bin directory specified inside it.

          Write a Reply...