Software⏱️ 2 min read📅 2026-05-31

How to Fix: Mcrypt extension is missing in 14.04 server for mysql

The mcrypt extension is missing in php configuration.

Quick Answer: Check if php5-mcrypt is installed, as it seems to be already installed. Verify the php version and ensure that the mcrypt extension is enabled in the php.ini file.

The 'Mcrypt extension is missing' error in phpMyAdmin on Ubuntu 14.04 can be resolved by following the steps below.

🔍 Why This Happens

  • The Mcrypt extension has been deprecated and removed from PHP 7.1, which is included in Ubuntu 14.04.

🛠️ Step-by-Step Verified Fixes

Method 1: Enable Mcrypt using php.ini

  1. Step 1: Open the /etc/php5/apache2/php.ini file in a text editor.

Step 2:

  1. Step 2: Add the following line to the file: 'extension=php_mcrypt.dll' and save the changes.

Method 2: Reinstall php5-mcrypt

  1. Step 1: Run the command 'sudo apt-get install libmcrypt-dev' to reinstall the Mcrypt library.

Step 2:

  1. Step 2: Run the command 'sudo apt-get install php5-mcrypt' to reinstall the php-mcrypt extension.

🎯 Final Words

By following these steps, you should be able to resolve the 'Mcrypt extension is missing' error in phpMyAdmin and ensure that your MySQL server is functioning correctly.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions