# 2.8.2 RuntimeExeption mcrypt extension not enabled - but it is

**URL:** https://forum.mautic.org/t/2-8-2-runtimeexeption-mcrypt-extension-not-enabled-but-it-is/8847
**Category:** Product Support
**Created:** [June 30, 2017, 7:14am UTC](https://forum.mautic.org/t/2-8-2-runtimeexeption-mcrypt-extension-not-enabled-but-it-is/8847 "2017-06-30T07:14:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kuko](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kuko](https://forum.mautic.org/u/Kuko)
#### Post date: [June 30, 2017, 7:14am UTC](https://forum.mautic.org/t/2-8-2-runtimeexeption-mcrypt-extension-not-enabled-but-it-is/8847/1 "2017-06-30T07:14:02Z")

</div>

Hello,  
  
  
  
I installed mautic 2.8.2 and these cronjobs  
  
  
  
\*/5 \* \* \* \* php /var/www/html/app/console mautic:segments:update --env=prod  
  
\*/5 \* \* \* \* php /var/www/html/app/console mautic:campaigns:rebuild --env=prod  
  
\*/5 \* \* \* \* php /var/www/html/app/console mautic:campaigns:trigger --env=prod  
  
  
  
and get this errors in the log:  
  
  
  
RuntimeException: The mcrypt extension is not enabled on this server. (uncaught exception) at /var/www/html/app/bundles/CoreBundle/Helper/EncryptionHelper.php line 31 while running console command `mautic:campaigns:trigger` [] []  
  
  
  
RuntimeException: The mcrypt extension is not enabled on this server. (uncaught exception) at /var/www/html/app/bundles/CoreBundle/Helper/EncryptionHelper.php line 31 while running console command `mautic:segments:update` [] []  
  
  
  
The PHPinfo says, that mcrypt is enabled, the Provider also says, that mcrypt is enabled, any idea what that can be?

---

<div class="post-metadata">

### Author: ![calevans](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@calevans](https://forum.mautic.org/u/calevans)
#### Post date: [June 30, 2017, 1:48pm UTC](https://forum.mautic.org/t/2-8-2-runtimeexeption-mcrypt-extension-not-enabled-but-it-is/8847/2 "2017-06-30T13:48:01Z")

</div>

Hi!

Ok, random thought here but did you check php -i? The CLI version of PHP is different from the mod\_php that the server runs. Usually, they have different php.ini files and enabling an extension on one doesn’t automatically enable it on the other. Your cron jobs are using the cli version of PHP.

Cheers! 🙂  
=C=

---

<div class="post-metadata">

### Author: ![Kuko](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kuko](https://forum.mautic.org/u/Kuko)
#### Post date: [June 30, 2017, 1:52pm UTC](https://forum.mautic.org/t/2-8-2-runtimeexeption-mcrypt-extension-not-enabled-but-it-is/8847/3 "2017-06-30T13:52:25Z")

</div>

Thank you! Yes, I think this is the problem, no mcrypt with php -i ☹

---

<div class="post-metadata">

### Author: ![Kuko](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kuko](https://forum.mautic.org/u/Kuko)
#### Post date: [June 30, 2017, 7:14am UTC](https://forum.mautic.org/t/2-8-2-runtimeexeption-mcrypt-extension-not-enabled-but-it-is/8847/4 "2017-06-30T07:14:02Z")

</div>

Hello,

I installed mautic 2.8.2 and these cronjobs

\*/5 \* \* \* \* php /var/www/html/app/console mautic:segments:update --env=prod  
\*/5 \* \* \* \* php /var/www/html/app/console mautic:campaigns:rebuild --env=prod  
\*/5 \* \* \* \* php /var/www/html/app/console mautic:campaigns:trigger --env=prod

and get this errors in the log:

RuntimeException: The mcrypt extension is not enabled on this server. (uncaught exception) at /var/www/html/app/bundles/CoreBundle/Helper/EncryptionHelper.php line 31 while running console command `mautic:campaigns:trigger` [] []

RuntimeException: The mcrypt extension is not enabled on this server. (uncaught exception) at /var/www/html/app/bundles/CoreBundle/Helper/EncryptionHelper.php line 31 while running console command `mautic:segments:update` [] []

The PHPinfo says, that mcrypt is enabled, the Provider also says, that mcrypt is enabled, any idea what that can be?
