Laxidasical Posted June 5, 2007 Share Posted June 5, 2007 I recently installed MySQL 5 and PHP 5 on my laptop so that I can use it as a development machine. Everything went smoothly (or so I thought) until I checked phpinfo() and saw that the mysql extension didn't load. GD2 and other extensions loaded fine though!?!?!?! I eventually narrowed the issue down to the MySQL library (libmysql.dll). It was initially residing in c:\php (as it should). When I moved it to c:\windows the mysql extension loaded correctly. This is odd to me because everything else is readable in my c:\php directory (php.ini, \ext, etc.). While MySQL is now working, I really didn't want to have libmysql.dll (or any other PHP files) outside of the PHP directory. Anyone have any ideas??? These have already been done during the initial install: - Added c:\php to the system path - Added PHPRC in system variables (value = c:\php) - Set permissions of the PHP folder (c:\php) as readable for the IIS user - Set the correct extension directory in php.ini - Uncommented php_mysql.dll in php.ini Environment: - Windows XP Professional SP2 - IIS 5.1 - MySQL 5.0.41 - PHP 5.2.3 Quote Link to comment Share on other sites More sharing options...
atkman Posted June 15, 2007 Share Posted June 15, 2007 I put this file in the windows/system32 folder. It took me several hours to do this and I finally got PHP, mysql and IIS6 to act like one big happy family. here are my steps: http://www.atksolutions.com/articles/install_php_mysql_iis.html Quote Link to comment Share on other sites More sharing options...
Laxidasical Posted June 15, 2007 Author Share Posted June 15, 2007 I put this file in the windows/system32 folder. It took me several hours to do this and I finally got PHP, mysql and IIS6 to act like one big happy family. here are my steps: http://www.atksolutions.com/articles/install_php_mysql_iis.html I was trying to avoid moving any of the files from c:\php to anywhere else in the file system, mainly for upgrade purposes later on... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.