October 15, 2015

Magento - The PDO extension is required for this adapter but the extension is not loaded.



When I upload site live from my local server and getting such kind of error that the PDO extension is required for this adapter but the extension is not loaded.

So I think that the pdo.so php extension must be required in server. And first check in php.ini file If you have access of that file.

;extension=pdo_mysql.so

Please uncomment the above line to activate it

extension=pdo_mysql.so

Save the file and restart the server.


If you have no access of the php.ini file, follow the following steps

Step 1. Please check your Magento installation directory there must me a file named as php.ini.sample.

Step 2. Now rename the file from php.ini.sample to php.ini

Step 3. Put the below code into it

extension = pdo.so
extension = pdo_sqlite.so
extension = sqlite.so
extension = pdo_mysql.so

Step 4. Now refresh your browser cache and the problem has been solved.


Enjoy!

No comments:

Post a Comment

The Future of Technology: Emerging Trends to Watch in 2025

Introduction As we navigate through 2025, the technological landscape continues to evolve at an unprecedented pace. Innovations that once se...