schmoukiz Posted January 22, 2007 Share Posted January 22, 2007 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.dllPHPIniDir 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 More sharing options...
linuxdream Posted January 22, 2007 Share Posted January 22, 2007 Are you sure you copied the php_mysql.dll into your c:\php\ext\ directory? Link to comment https://forums.phpfreaks.com/topic/35154-cannot-load-mysql-extension/#findComment-166123 Share on other sites More sharing options...
schmoukiz Posted January 22, 2007 Author Share Posted January 22, 2007 Yes, the file is there Link to comment https://forums.phpfreaks.com/topic/35154-cannot-load-mysql-extension/#findComment-166477 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.