Install PHP-Mcrypt on Centos 6

Install php-mcrypt on CentOS 6

I was able to figure this out; it was a lot simpler then I thought. Under the WHM manager go to: Home >> Software >> EasyApache (Apache Update) >> There you have two options "Build Profile" or "Customize Based On Profile". I went Customize to keep my current config then followed the instructions on the page.

Eventually there was a place to add and remove php modules. There you will find ever module under the sun. Just select the one you want and rebuild the profile. It was really that simple.

PHP mcrypt and REMI

You have 2 PHP stacks installed.

  • php-* (default version, in /usr)
  • php56-php-* (parallel installable version, in /opt)

According to phpinfo information, the second is used, so you need php56-php-mcrypt.

For installation instruction, see the Wizard.

CentOS 6/PHP5 - Can't Install mcrypt?

I have the EPEL repository all set up...

Except you don't, because it's trying to install the EL5 package on your EL6 system. Verify your EPEL installation and try again.

i install mcrypt but it says : mcrypt extension is required

You can try:

sudo php5enmod mcrypt

Cannot install php-mcrypt even using EPEL/REMI repositories

Problem solved!

On WHM Control Panel, go to Apache update and find the section called Exhaustive Options List and finally find Mcrypt extension to install and that's all!

Php 5.3 mcrypt not working on CentOS 6.3 32-bit

This seem to be a issue in the 32bit version of mcrypt when using yum install php-mcrypt to install. Take a look @ Installing php-mcrypt on centos 6.4 (32 bytes) causes problem, the mcrypt.ini file has the wrong entry

You need to edit /etc/php.d/mcrypt.ini and change

extension=module.so

To

extension=mcrypt.so

Then save and restart apache.



Related Topics



Leave a reply



Submit