PHP extension error while installing Magento

I was installing Magento 1.3.2.1 in my Windows XP computer. I am using Xampp. I encountered the following errors during the installation.

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

I googled and the answer was to load the extension in php.ini file. In xampp, there are two places where php.ini file is found. It is present inside php folder and inside apache/bin folder. You can load extensions mentioned in the above error by changing the php.ini file. Search for curl, mcrypt and pdo_mysql then just uncomment i.e. remove the semi-colon (;) present before the line of the extension. After that, you have to restart (stop and start) apache from your xampp control panel.

Change:

;extension=php_curl.dll to extension=php_curl.dll
;extension=php_mcrypt.dll to extension=php_mcrypt.dll
;extension=php_pdo_mysql.dll to extension=php_pdo_mysql.dll

It’s as simple as that but that didn’t work for me. Why? Because I also had apache and php installed separately in my computer. I had installed PHP and Apache server separately before installing the Xampp. So, xampp had used the php.ini configuration file of the Apache server installed before. And that php.ini file was inside programs file/apache group/apache/bin/php.ini. In this situation, changing php.ini file inside xampp folder will not solve my problem. I found my mistake by looking at phpinfo() of xampp.

Anyways, editing the right php.ini file will solve the above error. If anyone has faced the problem like mine then please see “Configuration File (php.ini) Path” in phpinfo(). There you will find the path of php.ini file. You have to edit that file.

I have the same problem – my php.ini file does not have ;extension=php_mcrypt.dll, anyone have any ideas?

pradeep

Hi, I am trying that but no result……

About

Mukesh Chapagain is a graduate of Kathmandu University (Dhulikhel, Nepal) from where he holds a Masters degree in Computer Engineering. Mukesh is a passionate web developer who has keen interest in open source technologies, programming & blogging. more...