Solved – PHP Warning: Module 'PDO' already loaded in Unknown on line 0.

by

Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUponShare on VKBuffer this page

Question : I got this error  Log in CMS  (Joomla  and  WordPress) : PHP Warning: Module ‘PDO’ already loaded in Unknown on line 0.

Solution:

First locate php.ini

Locate  php.ini

In VPS  and dedicated  server  with centos installed  php.ini should be  under   /usr/local/lib

Edit  php.ini   file  en  remove  the  extra duplicated  lines ,

 ; If you wish to have an extension loaded automatically, use the following
 ; syntax:
 ;
 extension = "pdo.so"
 extension = "pdo_sqlite.so"
 extension = "sqlite.so"
 extension = "pdo_mysql.so"
 extension = "pdo.so"
 extension = "pdo_sqlite.so"
 extension = "sqlite.so"
 extension = "pdo_mysql.so"
 ;

Now restart   apache

 /etc/init.d/httpd restart