How did you install PHP with –mcrypt and –mhash?
wget http://kent.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.7.tar.gz
tar -pxzf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
./configure –disable-posix-threads
make
make install
cd ..
echo “/usr/local/lib/libmcrypt” >>/etc/ld.so.conf
ldconfig
cd /usr/src
wget http://kent.dl.sourceforge.net/sourceforge/mhash/mhash-0.9.4a.tar.gz
tar -pxzf mhash-0.9.4a.tar.gz
cd mhash-0.9.4
./configure
make
make install
cd ..
cd /usr/src
wget http://easynews.dl.sourceforge.net/sourceforge/mcrypt/mcrypt-2.6.4.tar.gz
tar -pxzf mcrypt-2.6.4.tar.gz
cd mcrypt-2.6.4
./configure
make
make install
cp /usr/local/lib/libmcrypt.* /usr/lib
ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2
ldconfig
Update
Using the above for PHP4.2.2 we had a segfault ever time we started apache. This was fixed by removing all the old files :-
rm /usr/lib/libmcrypt.*
rm -r /usr/local/lib/libmcrypt
Then reinstalling all the latest versions. It could have been where we had older versions installed. But the above versions worked for us with PHP4.2.2
you can also grab the RSS feed or Subscribe to Techgurulive by Email
Not Getting
You use this argument to specify the path where Apache should be installed on the file system. In this case, the path is specified as /usr/local/apache. This is the default...
APC is the Alternative PHP Cache, which is a free, open, and robust framework for caching and optimizing PHP intermediate code. What this means is that APC reads your PHP...
































