A little further in the Moodle Install... now a PHP issue

A little further in the Moodle Install... now a PHP issue

by Ryan Marshall -
Number of replies: 6

I got to the database setting screen, entered the information and got this error.


Error: database driver problem detected

The site administrator should verify server configuration

PHP has not been properly configured with the MySQLi extension so that it can communicate with MySQL. Please check your php.ini file or recompile PHP. MySQLi extension is not available for PHP 4.


What did I miss in the PHP.ini file? 

Is there a list of what all needs to be modified in PHP to make Moodle happy?

Average of ratings: -
In reply to Ryan Marshall

Re: A little further in the Moodle Install... now a PHP issue

by Guillermo Madero -

Hello Ryan,

Are you still trying to install under Windows Server 2008, IIS7, PHP5.3.6, MySQL 5.5.10?

https://moodle.org/mod/forum/discuss.php?d=171701
https://moodle.org/mod/forum/discuss.php?d=222694
https://moodle.org/mod/forum/discuss.php?d=222900
https://moodle.org/mod/forum/discuss.php?d=257283
https://moodle.org/mod/forum/discuss.php?d=258078
https://moodle.org/mod/forum/discuss.php?d=263666

This is really weird.

Well, you may need to uncomment (by removing the initial semicolon) or add the following line:

extension=php_mysqli.dll

Of course, the php_mysqli.dll file should be at the ext directory.

http://docs.moodle.org/26/en/Windows_installation

https://moodle.org/mod/forum/discuss.php?d=164020

In reply to Guillermo Madero

Re: A little further in the Moodle Install... now a PHP issue

by Ryan Marshall -

Sorry Forgot I'm using , Windows 2008 Server, IIS7.5, PHP5.4.31, MySQL 5.6.17 (fresh install on a new machine) Installing Moodle 2.6.X


I double checked, the extension=php_mysqli.dll is uncommented

File php_mysqli.dll is in the ext directory

I have even restarted IIS


I'm still getting that error.

In reply to Ryan Marshall

Re: A little further in the Moodle Install... now a PHP issue

by Luis de Vasconcelos -

On Windows PHP comes in two flavours - thread-safe and non-thread-safe. Make sure that your both PHP and the php_mysqli.dll file are the non-thread-safe versions. On Windows/IIS you need to run the non-thread-safe version of PHP under FastCGI.

In reply to Luis de Vasconcelos

Re: A little further in the Moodle Install... now a PHP issue

by Ryan Marshall -

I am using the Non-Thread Safe Version

In reply to Guillermo Madero

Re: A little further in the Moodle Install... now a PHP issue

by Ryan Marshall -

Is there a specific place that extension=php_mysqli.dll should be in t he php.ini file?

In reply to Ryan Marshall

Re: A little further in the Moodle Install... now a PHP issue

by Ryan Marshall -

Never mind my last post.

What I found out is that in the php.ini file the line extension_dir = "ext" should be extension_dir = "c:\php\ext"

and you have to uncomment 

extension=php_curl.dll

extension=php_gd2.dll

extension=php_intl.dll
extension=php_mbstring.dll

extension=php_mysql.dll

extension=php_mysqli.dll

extension=php_oci8_11g.dll