Alt-PHP-Faq
Cheapest CO.UK domains in the UK! £1.88 per year!
And PHP/MySQL hosting 1p/1c for the first month, NO CATCH!


Question :

How did you install PHP with --mcrypt and --mhash?

Answer :
This works for us, let us know if you have other ways to do the install.

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

Categories Return to Main PHP Faq

Installation

 

Questions

Installation
How to install PHP on Apache?
How do I install Apache, MySQL, PHP on Linux?
I am trying to install GD + Truetype with PHP4, but all I get is libgd was not built with TrueType font support
When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good.
Can I compile php with mysql without having mysql sources?
How do I install PHP as a CGI?
How do I stop spammers using header injection with my PHP Scripts? (Webmasters)
How can I get PWS (Microsoft Personal Webserver) to work?
I have errors trying to install libxml so I can use --with-dom for PHP (checking for DOM in default path... not found)?
How do I install Sablotron with PHP?
Is there a Windows version of MySQL?
Is there an archive that installs mysql,php4,apache and perl on a windows system?
I'm trying to compile PHP 4.1.1 on a SunOS 5.8 box as a DSO module with mcrypt 2.4.18 (i.e. libmcrypt.so.4.2.8), I get loads of errors.
What do I have to do to convert PHP3 pages to PHP4 pages? Are there any compatibility problems?
Installing MySQL Perl Modules DBI
How do I install Sablotron to work with PHP on Windows?
How do I install the PostGRESQL client librarys so PHP can talk to remote PGSQL servers?
What version should I install?
Use ereg_replace to replace only the first occurence of a string instead of all?
make install gives an error saying i need LoadModule line in httpd.conf but its already there
error: conflicting types for `XML_FEATURE_UNICODE'
How do I stop spammers using header injection with my PHP Scripts? (Server Admin)
How do I install Curl?
Installing ioncobe with php5.2.3 gives the error Failed loading ioncube_loader_lin_5.2.so: ioncube_loader_lin_5.2.so: undefined symbol: zend_hash_destroy
 

Return to the main FAQ list



Free Forum    
Design & Layout Copyright © 2000- 2008 PHP MySQL Web Hosting Comments to Webmaster
Hosted by PHP 4 Hosting - PHP and MySQL Webhosting and Domain Names