?
Solved

PHP not finding Mysql extensions

Posted on 2008-10-07
3
Medium Priority
?
928 Views
Last Modified: 2013-12-13
OS windows Vista 64-bit
PHP version 5.2.5(x64)
Apache version 2.2.9(Win32)
Mysql version 2.0.67 (64-bit)

I have seen a couple of similar scenarios on this site but cannot find solution,
Apache is running fine,
Php is Fine
Mysql is Fine

but Mysql does not appear on phpinfo page?

PHP is in directory  C:/php/

I have added this to Apache httpd file.

LoadModule php5_module "C:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"

I have copies of php_mysql.dll and php_mysqli.dll in the php folder and "php/ext/" folder as well as in the "Windows/System32/"
I have added the PATH to php in the Environment Variables

PHP.ini has which is in  "c:/php/php.ini"
extension_dir = "C:\php\ext\"

and
extension=php_mysql.dll and

extension=php_mysqli.dll    uncommented

ANY help would be appreciated.
Daniel


0
Comment
Question by:earnest60
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Expert Comment

by:AielloJ
ID: 22668476
You can tell from the number of responses that this is one of those posts that brings back painful memories to many of us.  I've gone into my setup and extracted paths and config items that you can use to compare to yours.  I'm running XP Pro, and MySQL 5.x.

Is there an exception in the firewall for MySQL Server?  Try turning off the firewall temporarily to see if that affects the problem in any way.

PATH (relevant fragments)
-------
PATH=C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\PHP;C:\PHP\ext;

PHP.ini file
------------
extension=php_mysql.dll   <-- Make sure uncommented

Is the php_mysql.dll file in the C:\PHP\ext folder?  I vaguely remember having to move it from somewhere else, like from the MySQL files folders to the PHP folders.

Sorry I can't be of more definitive help.  Let me know if any of this works.
0
 

Accepted Solution

by:
earnest60 earned 0 total points
ID: 22711620
After leaving it a few days and restarting my computer all is well, Sorted, Phew, Relief
0
 

Author Comment

by:earnest60
ID: 22711647
Sorry AielloJ: i forgot to thank you in your effort to help me out, but I think I had solved the problem.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question