Solved

PHP not finding Mysql extensions

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

809 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