Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of undefined constant MCRYPT_BLOWFISH

Tags:

php

apache

mcrypt

After reinstalling our server, MCRYPT is no longer working and PHP gives the notice

Use of undefined constant MCRYPT_BLOWFISH (Apache 2.4, PHP 5.5).

php -m returns mcrypt.

ls -al /etc/php5/apache2/conf.d/
20-mcrypt.ini -> ../../mods-available/mcrypt.ini

cat /etc/php5/mods-available/mcrypt.ini
; configuration for php MCrypt module
extension=mcrypt.so

Why is mcrypt not recognized? How can I make this work?

like image 645
Ben Rogmans Avatar asked Jul 07 '14 10:07

Ben Rogmans


1 Answers

No sooner do I speak do I find a solution, heh.

This worked for me: mCrypt not present after Ubuntu upgrade to 13.10

needed to go: sudo php5enmod mcrypt

even though it appeared to already be enabled, that fixed it.

like image 166
phazei Avatar answered Oct 02 '22 13:10

phazei