Magento Installation pdo_mysql, mcrypt extensions error


Magento Installation pdo_mysql, mcrypt extensions error

Magento is becoming more and more popular and whilst installing Magento many clients come across the following message

PHP Extension “pdo_mysql” must be loaded
PHP Extension “mcrypt” must be loaded

To resolve the issue, firstly you would need to find out which php.ini file is used by your website. This can be achieved using phpinfo().

phpinfo() is commonly used to check configuration settings and for available predefined variables on a given system. If you don’t already have an info.php page in your hosting space. Please create a new text file and upload it to your hosting space. You will need to name the file info.php

Your new info.php page should have 1 line of code only. Please put the following code in your new file:


That’s all you need, now save the file to your hosting space, and view the php page in your browser.
Once you view info.php in your web browser, it will populate the page with all the PHP settings and values. It is a good resource to determine what the current settings are for your PHP installation.

Once you have determined the path of the php.ini file used by your site, you need to open that php.ini in a text editor such as notepad or Editpad and search for extension=php_mcrypt.dll and de-comment. The same way search for extension=php_pdo_mysql.dll and and de-comment.

Save the changes to php.ini and close the file. You may need to restart server as well.

Leave a Reply

You must be logged in to post a comment.