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
Solved

PHP not finding Mysql extensions

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses four methods for overlaying images in a container on a web page
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

839 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