Cannot load module 'pdo_mysql'

Author Message

Pascal France

Sunday 21 September 2008 11:13:50 pm

Hi,

When I use bin/php/ezcache.php -c --clear-all --purge I get this message:

PHP Warning: Cannot load module 'pdo_mysql' because required module 'pdo' is not loaded in Unknown on line 0

Therefore, I have installed the pdo and pdo_mysql modules, I have added:

extension=pdo.so
extension=pdo_mysql.so

at the end of my php.ini (php5) and I have restarted Apache.

But I always get the same message.

Do I forgot to do something ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Gaetano Giunta

Monday 22 September 2008 12:15:05 am

Take care: often the ini file used by php in cli mode is not the same it uses when run as Apache module

Principal Consultant International Business
Member of the Community Project Board

Pascal France

Monday 22 September 2008 1:37:16 am

Hi Gaetano,

Of course, you are right.

The good file is not /etc/php5/apache2/php.ini but /etc/php5/cli/php.ini

But now, the message is:

PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.