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.

wget http://www.php.net/get/php-5.3.3.tar.gz/from/uk.php.net/mirror

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.

phpize

aclocal

./configure

make

make test

make install

Add the Mcrypt extension to the PHP configuration.

echo “extension=mcrypt.so” > /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 *

seven − two =