php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37952 MySQL Extension not working with php5apache2.dll
Submitted: 2006-06-28 21:25 UTC Modified: 2006-06-28 22:05 UTC
From: matt at criticalcode dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5CVS-2006-06-28 (snap) OS: Windows XP Build 2600
Private report: No CVE-ID: None
 [2006-06-28 21:25 UTC] matt at criticalcode dot com
Description:
------------
Install Apache 2.0.58 >
Unpack and put php5.2.0-dev snap into c:/php
Follow install instructions on php.net/install

Using php5apache2.dll, I can see the php.ini path in Apache is c:\WINDOWS, I rename php.ini-recommended, restart apache2, server will not process php files.

Use php.ini-dist, PHP as CGI (see install guide), everythign works fine. So basically, you cannot use MySQL and php5apache2.dll together. I tested all the variances of thise setup. But I'm keeping it short here. Also tested on Apache 2.0.55 - same results


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-28 22:02 UTC] tony2001@php.net
http://php.net/mysql

"MySQL is no longer enabled by default, so the php_mysql.dll DLL must be enabled inside of php.ini. Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH. See the FAQ titled "How do I add my PHP directory to the PATH on Windows" for information on how to do this. Although copying libmysql.dll to the Windows system directory also works (because the system directory is by default in the system's PATH), it's not recommended."
 [2006-06-28 22:05 UTC] matt at criticalcode dot com
Yes, I did read about this. I added c:/php to my windows PATH= environmental variables and rebooted.

This had no effect on MySQL.

Also the extension php_mysql.dll was enabled in the c:/php/php.ini
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC