Forums / Install & configuration / Cannot load module 'pdo_mysql'

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

eZ debug

Timing: Jan 19 2025 02:36:08
Script start
Timing: Jan 19 2025 02:36:08
Module start 'content'
Timing: Jan 19 2025 02:36:10
Module end 'content'
Timing: Jan 19 2025 02:36:10
Script end

Main resources:

Total runtime1.7414 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 590.2031180.8281
Module start 'content' 0.00731.7300 771.0313536.2109
Module end 'content' 1.73730.0041 1,307.242242.0938
Script end 1.7414  1,349.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.1791140.0002
Check MTime0.00140.0805140.0001
Mysql Total
Database connection0.00080.043810.0008
Mysqli_queries1.695797.3724580.0292
Looping result0.00060.0372560.0000
Template Total1.695797.420.8478
Template load0.00220.128220.0011
Template processing1.693497.245220.8467
Template load and register function0.00020.014210.0002
states
state_id_array0.00180.105810.0018
state_identifier_array0.00220.125820.0011
Override
Cache load0.00180.1053230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.046220.0004
Fetch class attribute name0.00170.100140.0004
XML
Image XML parsing0.00060.036920.0003
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00160.0933180.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs