downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Runtime Configuration> <Requirements
[edit] Last updated: Sun, 19 May 2013

view this page in

Installation

You need to compile PHP with the --with-mcrypt[=DIR] parameter to enable this extension. DIR is the mcrypt install directory. Make sure you compile libmcrypt with the option --disable-posix-threads .



Runtime Configuration> <Requirements
[edit] Last updated: Sun, 19 May 2013
 
add a note add a note User Contributed Notes Installation - [9 notes]
up
3
Nancy H
1 month ago
To install php mcrypt you must install Libmcrypt first. Libmcrypt can be installed like this:

cd /usr/local/src
wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz
tar -zxvf libmcrypt-2.5.8.tar.gz
cd /usr/local/src/libmcrypt-2.5.8
./configure --prefix=/usr/local
make
make install
up
6
trenton at rainleader dot com
2 years ago
If using a Debian-based Linux system, you can run the following commands:

sudo apt-get install php5-mcrypt
sudo /etc/init.d/apache2 restart
up
1
OpenSourceVictim
3 years ago
Mcrypt.dll should be included in the WINDOWS installer of PHP.
Or in the WINDOWS installer of phpmyadmin.
up
1
james dot mclean at gmail dot com
3 years ago
You can install Mcrypt from the PHP Source Tree as a module if you choose.

You first need to ensure you have libmcrypt, libmcrypt-devel, and mcrypt installed, then do:

# cd php-5.x.x/ext/mcrypt
# phpize
# aclocal
# ./configure
# make && make install

Enable the module by adding: 'extension=mcrypt.so' to PHP.ini.

Done!

Very handy if you need to install a single module and you may have installed PHP via RPM, but don't wish to recompile your whole PHP install.
up
0
sobit dot akhmedov at gmail dot com
5 days ago
To install Mcrypt for PHP 5.3.x using Brew on Mac OS X, run the following command:

brew install php53-mcrypt
up
-3
info at guffert dot net
4 years ago
In case you are an operator and you are not familiar with the generation of software you must know, that the installation of additional libraries may be  insufficient. You may suffer a malfuntion of the package with the known http server log message: "Cannot load mcrypt extension. Please check your PHP configuration." although you expect the configuration to be right.
For an operator, generation of software is inconvenient. Instead you should check your PHP basic installation. The problem may be that you do not have extracted the mcrypt extension during the installation process. Using the Windows installer, you may change your installation by rerunning the setup. In case you have the right php.ini, the extension declaration in php.ini and libmcrypt.dll in the system path the extension should work. Keep control in the http server log!
up
-4
dave at mcoe dot us
1 year ago
http://rpmfind.net/linux/RPM/epel/beta/6/x86_64/php-mcrypt-5.3.2-3.el6.x86_64.html

installed into RHEL6.2 with no issues, restarted httpd, good to go.
up
-3
bmathis-php dot net at directedge dot us
4 years ago
For recent versions of mcrypt, you must also use the compile option "--enable-dynamic-loading", so you need both of these:
--disable-posix-threads --enable-dynamic-loading
up
-5
mihai doru
4 years ago
If you wish to install mcrypt on Windows, you should also place libmcrypt.dll in the PATH of your system.

 
show source | credits | sitemap | contact | advertising | mirror sites