Error accessing http://localhost/phpmyadmin/

PHP Version:

What’s the best way to fix this?

3 Spice ups

What specifically are you stuck with your subject line doesn’t match the error - you can access the page, but you get an error - are you stuck with the error?

It tells you what to do.

Have you checked the configuration to ensure the extension is configured?

1 Spice up

I’ve already configured everything and nothing works.

1 Spice up

Let’s start with that, then…what config are you using that isn’t working? Because if you configured everything but nothing works, then you’ve misconfigured it and we can’t help if you don’t post the config that isn’t working.

I’m using the php.ini-developmen file.

1 Spice up

You’re missing something, or you’ve misconfigured something.

Perhaps instead of linking a file to Google drive, you could just tell us what you modified.

It looks like you’re also running this on Windows, why this needs to be on datacentre though is a different question.

Is your extension where you specified

extension=“C:\Server\bin\PHP\extphp_mysqli.dll”

FYI, you should remove the quotes - this may be why it’s not working, but why php.ini.development and not the live one?

1 Spice up

I’m following this manual: Web Server on Windows 11 (Apache, MySQL, PHP and phpMyAdmin): step-by-step installation guide - Ethical hacking and penetration testing

I removed the quotation marks from extension=“C:\Server\bin\PHP\extphp_mysqli.dll” and nothing changed.

1 Spice up

But is it the right place?

Did you restart Apache, if not it wont take effect.

Also, to clarify, did you make the change in php.ini, not the development one, why would you be using that file?

1 Spice up

You likely have the mysqli extension line commented out. Open the php.ini file and find the line:

  • ;extension=mysqli
    remove the semicolon
  • extension=mysqli

The semi colon is a comment character.

1 Spice up

It’s not commented out, that was my thought.

I expect the path is wrong, Apache just needs restarting or the OP needs to make this change in the live php.ini file, not the development one.

2 Spice ups

php.ini does not exist.

Just:
php.ini-development
and
php.ini-production

1 Spice up

This one then - remember, I can’t see your setup, but I did say live one, I’m not sure I follow why you’re editing the development one and not production.

1 Spice up

I edited in development and production:

;extension=mysqli” to extension=mysqli

Restarted Apache and nothing changed.

1 Spice up

Either way your screen shot shows it did not find any config at all

1 Spice up

Those are templates. Make a copy of one (I don’t care which) and rename it php.ini. PHP expects a .ini file. Your error is because it can’t fin the php.ini file.

3 Spice ups

It’s not just about this one line

Does this file, path exist, is it correct?

You’re getting an error because something you’ve uncommented is missing, not in the place you’ve said or spelled differently, or something you’ve not uncommented needs to be.

What will all this be for, I hope it’s not Wordpress.

1 Spice up

Just to confirm for the OP.

It states this in the top of the file you are editing.

; PHP’s initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP’s behavior.

2 Spice ups

This is not for WordPress.

I changed extension=“C:\Server\bin\PHP\extphp_mysqli.dll” to extension=mysqli

I did this using php.ini-production and php.ini-development:

Captura de tela 2025-11-24 192539

And nothing.

1 Spice up

I followed all the instructions in the tutorial and it’s still giving me an error.

I post a comment on the tutorial website and it removes it.

1 Spice up

As has already been mentioned, you need to use one of those files php.ini-production or php.ini-development and take a copy calling it php.ini.

You need to have the path to the dll listed.

If this is for ethical hacking and you’re struggling with the setup, it’s only going to get harder from here on out. But why use Windows and not a Linux box, something more suited to hacking in the first instance?

1 Spice up