ID:               45512
 Comment by:       carsten_sttgt at gmx dot de
 Reported By:      jianglinchun at live dot com
 Status:           Feedback
 Bug Type:         MySQL related
 Operating System: windows xp(sp3)
 PHP Version:      5.2.6
 New Comment:

> 1. The enviornment variable should refreshed correctly.
> This maybe a problem

A service (Apache) recognize an environment variable change only with a
Windows restart.


> 2. Home directory and extention directory are strongly
> demanded to be added the enviornment variables.

Only the PHP dir should be in your PATH:
http://de.php.net/manual/en/install.windows.manual.php

(LoadFile is also not neccesary, if the PHP dir is in your PATH)


Previous Comments:
------------------------------------------------------------------------

[2008-07-15 02:27:58] jianglinchun at live dot com

Finally. I solved this problem by copy libmysql.dll from Php home
directory to c:\windows.

1. I am very sure that I configured php module for apache correctly.
2. I changed my enviornment variable to add "D:\open
source\php\php-5.2.6-Win32" to the path
3. restart apache
4. make suare the php.ini was loaded correctly
5. I visit the phpinfo.php page. I found that the enviornment variable
wasn't refreshed. I tried to restart apache a couple of times. But the
path variable were still the same.
6. I copy libmysql.dll to c:\windows and restarted apache. I found
mysql information on my phpinfo.php page finally.

I thought:
1. The enviornment variable should refreshed correctly. This maybe a
problem
2. Home directory and extention directory are strongly demanded to be
added the enviornment variables.

Hope this help your guys. :D A nice day. :D

------------------------------------------------------------------------

[2008-07-15 01:03:03] synaptic dot axon at gmail dot com

Time to get serious, jani...

------------------------------------------------------------------------

[2008-07-14 18:19:56] [EMAIL PROTECTED]

Check phpinfo() for what php.ini file is actually loaded and used..

------------------------------------------------------------------------

[2008-07-14 15:30:12] jianglinchun at live dot com

Description:
------------
I have problem with configure php_mysql for php-5.2.6-Win32.

The same problem:
1.
http://we.designandco.de/2008/06/19/php-526-win32-wtf-happened-to-the-mysql-extension/

2.
http://www.nabble.com/PHP-5.2.6-integrating-MYSQL-5.0.51b-on-APACHE-2.0.63-%2B-Windows-XP-SP2)-td17201936.html

------begin httpd.conf------
#php
LoadFile "D:\open source\php\php-5.2.6-Win32\php5ts.dll"
LoadModule php5_module "D:\open
source\php\php-5.2.6-Win32\php5apache2_2.dll"
PHPIniDir "D:\open source\php\php-5.2.6-Win32"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
------end httpd.conf------

------begin php.ini------
; Directory in which the loadable extensions (modules) reside.
extension_dir = "D:\open source\php\php-5.2.6-Win32\ext"
------begin php.ini------


Reproduce code:
---------------
When those code are executed.
<?php
phpinfo();
?>

mysql will be found nowhere.

Expected result:
----------------
php_mysql.dll should be loaded!


Actual result:
--------------
php_mysql.dll doesn't loaded


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45512&edit=1

Reply via email to