Jump to content

Unable to view mysql/mysqli under phpinfo()


gkw1975

Recommended Posts

Hi there,

 

I'm new to all this so I've been following instructions from various sites and books.  So far I have installed Apache, PHP and mysql, however when I browse to localhost/test.php (created to view phpinfo() through the browser) i can't see mysql or mysqli only the mysqlnd.

 

Here is an overview of software I've installed, OS and things I've added so far;

 

OS ver Windows7 Professional 32-bit VM
Apache ver 2.2.25-win32
PHP ver - 5.4.31 Win32 VC9
Mysql - 5.6.19
 
Ammended httpd.conf to include;
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
 
Ammended php.ini file to include;
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
 
added following to system variable PATH;
c:\php
C:\Program Files\MySQL\MySQL Server 5.6\lib (- this was for libmysql.lib)
 
Renamed my-default.ini to my.ini within C:\Program Files\MySQL\MySQL Server 5.6\
 
phpinfo() shows Configuration File (php.ini) Path as C:\Windows & Loaded configuration file as C:\php\php.ini
 
Changed the "/" in LoadModule php5_module "c:/php/php5apache2_2.dll" & PHPIniDir "C:/php" to "\" but this did not make any difference.
 
After every change I either stop/start both Apache2.2 & Mysql5.6 services or reboot the VM, but phpinf0() still only shows mysqlnd but not mysql or mysqli.
 
I'm at a loss now as researching it only seems to bring up links repeating everything I have already tried.
 
Any help would be greatly appreciated.
 
Many thanks
Link to comment
Share on other sites

 

I'm at a loss now as researching it only seems to bring up links repeating everything I have already tried.

The only thing I can suggest is for you to set the extension_dir directive to the full path to your PHP extension folder, eg

 

 extension_dir = "C:/php/ext"

 

Also enable these directives

display_errors = On
display_startup_errors = On

If PHP is having issues loading extensions it should pop up an error dialog when Apache is (re)started.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.