Jump to content

Archived

This topic is now archived and is closed to further replies.

RandomZero

PHP5 and MySQL5

Recommended Posts

I can't get them to work together on WinXP:(

I'm trying to install phpmyadmin, but when I try to access the page I get the error
"phpMyAdmin - Error
Cannot load mysql extension. Please check your PHP configuration. - Documentation".

I've searched countless forums/help sites for a solution but so far I've come up with nothing.
I've uncommented the php_mysql.dll from php.ini, put libmysql.dll in system32, added the environment variables, even tried php_mysqli.dll in php.ini, but nothing works.

Any help at this point would be appreciated..

Share this post


Link to post
Share on other sites
Have your restarted your server?  Make sure you have setup the extension_dir directive.

Prehaos a have a read of [url=http://www.phpfreaks.com/forums/index.php/topic,95378.0.html]this FAQ[/url].

Share this post


Link to post
Share on other sites
okay make sure there is not other libmysql.dll PHP may be finding.

So go to Start ? Search > All files and folders

Type in libmysql.dll

There should be no other instance libmysql.dll other than libmysql.dll being in the MySQL bin folder, in zip files or the your php folder. If you find any other instance of libmysql.dll in C:\WINDOW or C:\WINDOWS\SYSTEM32 either delete or rename them.

Share this post


Link to post
Share on other sites
There were 2 different versions, so I replaced the older one in the MySQL bin folder.

Restarted both apache and mysql but still get the error.

Share this post


Link to post
Share on other sites
I have no Idea. Check that php is using the correct php.ini so create a new file called php.php then add the following:
[code=php:0]<?php
phpinfo();
?>[/code]

What does the [b]Configuration File (php.ini) Path[/b] line say? Is that correct path to the php.ini you're edting?

Share this post


Link to post
Share on other sites
IIS is anothewr webserver. Why on earth would you want two different web servers on the same computer!

You can setup IIS and Apache on the same computer if you wish. However you'll have to setup IIS or Apache to use a different port. As by default they both use the same port which is port 80 (port 80 is the standard port for HTTP requests).

Share this post


Link to post
Share on other sites

×

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.