Re: mcrypt don't work.

From: Date: Tue, 03 Feb 2004 18:26:09 +0000
Subject: Re: mcrypt don't work.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-176710@lists.php.net to get a copy of this message
Have you tried to check if PHP has been compiled with mcrypt? try this on a page <?php phpinfo(); ?> Look for mcrypt directives, if not there you need to download it and compile it like so. http://mcrypt.sourceforge.net Get both the libmcrypt and mcrypt compressed archives from command prompt on linux... cd /path/to/libmcrypt.xx.tar.gz gzip -dfrv libmcrypt.xx.tar.gz tar -xvf libmcrypt.xx.tar cd libmcrypt.xx/ ./config --disable-posix-threads make make install now do the same for mcrypt cd /path/to/mcrypt.xx.tar.gz gzip -dfrv mcrypt.xx.tar.gz tar -xvf mcrypt.xx.tar cd mcrypt.xx/ ./config --disable-posix-threads make make install now you need to compile php for mcrypt support cd /path/to/php-4.xx ./configure --with-mcrypt=/path/to/libmcrypt/ make make install simple, now if your using apache on windows you need to get the windows executables from mcrypt.sourceforge.net Also if mcrypt is already installed simple do a find find / | grep libmcrypt from a command prompt to find the libraries, if you cannot find it them install it, or just re-compile php to include support. Hope this helps, it took me awhile to figure it out too. Jas

« previous php.general (#176710) next »