Solved

PHP not finding Mysql extensions

Posted on 2008-10-07
3
883 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
  • 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

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now