Jump to content

Cannot load MySQL extension


schmoukiz

Recommended Posts

I’ve installed Apache and MySQL, they both seem to be working fine (I can see PHP pages that don’t require a database) but I can’t get them to communicate using PHP scripts. When loading phpMyAdmin I get this error message: [color=purple]Cannot load mysql extension. Please check your PHP configuration[/color].

Here’s what I did so far:

- installed Apache 2.2.4 (the msi installer for Windows (XP, in my case) )
- installed PHP 5.2 in a directory called C:/php
- modified the php.ini file like this:

[color=green]doc_root = "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\"
extension_dir = "c:\php\ext"
[color=brown](or should this be without “/ext” as I found in a different source?)[/color]
extension=php_mysql.dll[/color]

- copied the files php.ini and php5ts.dll to C:\windows\system32\
- edited the httpd.conf file like this:

[color=green]LoadModule php5_module c:/php/php5apache2_2.dll
PHPIniDir c:\php\[/color]

- installed MySQL 5 through an installer for Windows. I can access it through MySQL Administrator and create new accounts so it appears to be functional.
- Added the paths of both PHP and MySQL to Windows path by adding their addreses (C:\php\;C:\Program Files\MySQL\MySQL Server 5.0\bin\; ) in System Variables, then restarting.

What am I missing?
Link to comment
https://forums.phpfreaks.com/topic/35154-cannot-load-mysql-extension/
Share on other sites

Archived

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

×
×
  • 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.