Installing Mcrypt extension PHP Linux from source

Installing mcrypt Linux howto guide. Guide for Red Hat 5 CentOS 5 using PHP53 packages.

Install the PHP development packages.

yum install php53-devel

Install the Mcrypt development packages.

yum install libmcrypt-devel

Download PHP.


Extract the PHP archive and cd into the Mcrypt directory.

tar -zxf php-5.3.3.tar.gz && cd php-5.3.3/ext/mcrypt/

Install The PHP Mcrypt module.





make test

make install

Add the Mcrypt extension to the PHP configuration.

echo “” > /etc/php.d/mcrypt.ini

Restart Apache.

service httpd restart

Other versions of PHP can be found in the downloads section.



Linux, PHP, Virtual & Dedicated Servers , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

6 − five =