phpinfo doesn´t list mysql/mysqli

Hello guys,

I am a total newbie to this php thing and i found a problem after i installed php and mysql. Let´s see what you think,

The

<?php

phpinfo();

file is not showing the mysql installation when displayed on a browser,

I am using Apache 2.4 and php 5.6.4,

I have already enabled extensions

extension_dir="c:\php\ext"
extension=php_mysql.dll
extension=php_mysqli.dll

I have checked that mysql.dll and mysqli.dll are inside c:\php\ext , although i have also tried moving them to windows32. No luck.

My PHPInidir points to “C:\PHP”,

I have also tried moving php.ini to c:\ and changing phpinidir path. No luck.

I have edited the “path” env. variable to include c:\php and c:php\bin.

Nothing on the php installation manual helped either.

What else could i be missing?

Any help would be greatly appreciated.

If this is just for a local development environment you are much better off by just firing up a virtual machine to act as your server. Or in worst case just install xampp or some other bundled apache/php/mysql pack for windows.

Have a look in my modern web development thread to see how to set up vagrant to easily test out your code on different virtual machines
http://www.phphelp.com/forum/the-occasional-tutorial/modern-web-development-let's-develop-something-together

Jim,

It is local environment.

I had already downloaded xampp. Is it possible that Xampp interferes with mysql/php which i installed also?

Xamp has everything you need. You do not need a separate install of PHP and Mysql.

Thank you Kevin, but i already know the alternatives. I am already using Xampp.

I am looking to solve this problem even if i uninstall php/mysql right after and don´t ever use it.

Alternatives?

Why on earth would you install xamp then uninstall php/mysql?

Let me ask you three quick questions:

  1. Did you install PHP?
  2. Did you install MySql?
  3. Did you install XAMP?

I’m going to assume you did by this quote here:

The answer is yes (and no).
You can have several PHP versions installed, provided you set them up properly.
I suspect this is not what you were after. I believe you wanted one installation to use as local server - right?

Ok, if you go the traditional way, you only needed a webserver as you had already installed php/mysql.
Then you came along and installed XAMP (you know what this means right?)
X = *nix
A = Apache
M = Mysql
P = PHP

So now you have two versions of php and two versions of mysql - probably fighting each other at start up.
I suggest you uninstall one (or both) and start again using just XAMP as this is a single installer that will install everything you need.

Hope that helps,
Red. :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service