Installing Moodle 2.8 - mysqli error

Installing Moodle 2.8 - mysqli error

by Laura M -
Number of replies: 2

I'm trying to install moodle on a wamp server. I'm running PHP 5.4.4, MySQL 5.7.14, and Apache 2.4.23.

Right now I'm looking at an error that says

Error: database driver problem detected

The site administrator should verify server configuration

PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP.

I've checked the php.ini file to be sure that the extension=php_mysqli.dll line wasn't commented and restarted the server. MySQLi has a checkmark by it on the extensions list.

What else should I try?
Average of ratings: -
In reply to Laura M

Re: Installing Moodle 2.8 - mysqli error

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Is php_mysqli.dll installed and in the right place?

Is there anything in the error logs that might explain why the module has not loaded?

I don't know much about Windows so replying mostly because nobody else has wink

Average of ratings: Useful (1)
In reply to Howard Miller

Re: Installing Moodle 2.8 - mysqli error

by Laura M -
Those are good suggestions, Howard.

It's located in C:\wamp\bin\php\php5.4.4\ext. Do I need to install it somehow? I thought it came bundled with php. I have MySQLi version 5.0.11.

The error log shows this:

[14-Feb-2017 15:05:29 UTC] PHP Warning:  PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20100525

Edit: I rechecked my php.ini files and I'd been editing the wrong one :/ Everything looks good now.