Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PHP not finding Mysql extensions

Posted on 2008-10-07
3
Medium Priority
?
944 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

604 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