You need to enable the PDO and PDO_MYSQL extensions in your php.ini file

During the install of Piwik on a windows server 2008 IIS and php 5.2.8 install I get the following error:

You need to enable the PDO and PDO_MYSQL extensions in your php.ini file.

On a windows server you can add the following lines in your php.ini
extension=php_pdo.dll
extension=php_pdo_mysql.dll

On a Linux server you can compile php with the following option --with-pdo-mysql In your php.ini, add the following lines
extension=pdo.so
extension=pdo_mysql.so

More information on the PHP website.

I’ve uncommented extension=php_pdo.dll as well as extension=php_pdo_mysql.dll

When go to a phpinfo page it shows the php.ini and shows that they both are uncommented, however it does not say anything else about php_pdo_mysql.dll or php_pdo.dll What is the expected result of phpinfo in regards to the following extensions?

[quote=Sthon @ Feb 24 2009, 12:44 AM]I’ve uncommented extension=php_pdo.dll as well as extension=php_pdo_mysql.dll

When go to a phpinfo page it shows the php.ini and shows that they both are uncommented, however it does not say anything else about php_pdo_mysql.dll or php_pdo.dll What is the expected result of phpinfo in regards to the following extensions?[/quote]
Could it be you need to install some extra modules? I needed to specifically install PDO and PDO_MYSQL on my Linux system; I’m guessing it’s the same on Windows.

Both dll’s are in the ext directory so I don’t think that is the case…

You might need to stop/start IIS.

Thanks, it worked!

work well :slight_smile:

thank you