• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Mysqli extension not loaded

#1
HTML:
An unexpected database error occurred. Please try again later.
<!-- The Mysqli extension is required for this adapter but the extension is not loaded -->
My XenForo website is not working after I tried to install BlockScript and ionCube to another virtual host. Anyone have an idea how I can solve this problem? Website: www.spillere.no
 
#3
The thing is, I am using a dedicated Windows Server 2008 R2. I am using XAMPP v3.2.1 with Apache HTTP Server v2.4. So, I guess I have to fix it myself. Any idea?
 

wang

Well-known member
#4
The thing is, I am using a dedicated Windows Server 2008 R2. I am using XAMPP v3.2.1 with Apache HTTP Server v2.4. So, I guess I have to fix it myself. Any idea?
I think that you must install the mysqli extension in PHP. That should fix the error.
 

Robust

Well-known member
#7
Install the PHP MySQLi extension. I'm only a Linux sysadmin, not a Windows sysadmin, so I can't fully assist with this, however, the link above should answer your question.
 

Tracy Perry

Well-known member
#9
I don't think that link will help me.
Odds are if you had read the full page and comments it may have
>On Windows, PHP is most commonly installed using the binary installer. Once PHP has been installed, some >configuration is required to enable mysqli and specify the client library you want it to use.

Basically, if you want to add extensions you can double-click again on the installer file. The installer will find the already installed PHP and will ask if you want to change the installation.

When you go through the prompts it will take you back to the list of extensions and you can pick which extensions you want to add.

For the mysqli extension the installer also edited php.ini so that the extension was enabled:

[PHP_MYSQLI]
extension=php_mysqli.dll

the installer added those lines to the end of the file.
 
#10
I am using XAMPP, which is an all-in-one type of thing (it installed PHP for me). Which installer are you talking about? I just want to be sure before I do anything.
 
#12
The XAMPP forums seems very empty though. I encountered another problem also, Apache isn't starting. Any idea how do reinstall PHP when using XAMPP?
 

Brogan

XenForo moderator
Staff member
#13
I use XAMPP and literally all that is required is to run the installer so I suspect you have either done something wrong or have it configured incorrectly.

You will have to seek support elsewhere for any issues related to XAMPP though.