From:             pburden98 at yahoo dot com
Operating system: windows 98 2nd Edition
PHP version:      5.0.0RC2
PHP Bug Type:     *Configuration Issues
Bug description:  php_mysql.dll unclear on module installation

Description:
------------
Standard installation of php5 works with apache how ever I am trying to
enable c:\php\ext\php_mysql.dll

Chosen path of installation as follows

1) Installed php5rc2

1.1 unzip into directory c:\php
1.1 copied "c:\php\php-php.ini-dist" to "C:\Program Files\Apache
Group\Apache\php.ini"
1.2 edited php.ini 
1.2.1 changed line 'extension_dir = "./"' to extension_dir =
"c:\php\ext\"

2) Setup Apache with php5rc2
2.1 copied "c:\php\php5ts.dll" to "C:\Program Files\Apache
Group\Apache\php5ts.dll"
2.2 added the following lines to "C:\Program Files\Apache
Group\Apache\conf\httpd.conf"
   ---start of new lines added to httpd.conf---
   LoadModule php5_module c:/php/php5apache.dll
   AddModule mod_php5.c
   AddType application/x-httpd-php .php
   ---end of new lines added to httpd.conf---

3) Set up test environment on Apache so I check php5 works
3.1 I set up a "virtualhost 192.168.0.5:8081" on apache

---Start of new lines in httpd.conf---
Listen *:8081
<VirtualHost 192.168.0.5:8081>
DocumentRoot /phpco/www/
ServerName pjb
DirectoryIndex index.html index.htm index.php
</VirtualHost>
---End of new lines in httpd.conf---

3.2 I set up a file index.php in the directory

---start contents of index.php---
<HTML>
hi from apache<BR>
<?php echo "hi from php5rc2"; ?>
</HTML>
---end contents of index.php---
3.3 I setup phpinfo.php too 
  <?php phpinfo(); ?>
3.4 Restarted the apache.  No problems accept for (exec() command not
found 'bug in apache'). saw the message

"Apache/1.3.29 (Win32) PHP/5.0.0RC2 running..."

4 Tested the PHP5
4.1 Visited the site "http://192.168.0.5:8081/";
  ---OUTPUT on mozilla 1.6---
   hi from apache
   hi from php5rc2
   ---OUTPUT on mozilla 1.6---
4.2 Also done a phpinfo.php
  Out i saw looked fine.

5 Enabled mysql extension
5.1 uncommented line 565 
   "extension=php_mysql.dll"
6 verified there is no more required dll files to be installed
6.1 I checked the INSTALL notes on any other dll files required for the
mysql extension to run [nothin]
6.2 I checked the php.net manuals on dll files to be installed [nothing]

7 Restarted apache

8 Verified it wasnt any dlls required by old distrobution
8.1 I reported the following 
http://bugs.php.net/bug.php?id=28255

SOFTWARE THAT WORKS
===================
windows98 box
--------------
SOFTWARE USED (sorted by Installed order)
1 Mozilla 1.6 [binary edition] works
2 MySQL server version: 4.0.18 [binary edtion] works
3 Apache/1.3.29 [binary edtion] works
4 php5.0.0rc2 [binary edition] works but with no extensions


linux box (stable all works, I have lots projects that work)
--------- 
PHP Version 4.2.2 [compiled by redhat team version9 386] works
Apache httpd-2.0.40-21.9 [compiled by redhat team version9 386] works
MySQL server version: 4.0.18-standard [compiled by me] works



Expected result:
----------------
Expected it to run or explain what is missing.

Actual result:
--------------
Error reported when loading php5
----Start of error----
PHP Warning:  PHP Startup: Unable to load dynamic library
'/php/ext/php_mysql.dll' - A device attached to the system is not
functioning. in Unknown on line 0
----End of error----

This is unclear.  And I wanted to use php5 to connect to my linux box.  I
dont know what php5 wants for me to use the mysql functions in php.

I have done the following to try and fix the problem
1) STFW (Searched the fantastic web)
1.1 Found out it could be a DLL file problem not loaded or not part of the
system 
1.2 Found out that php_mssql.dll has been reported on the BUG database for
php4.  Was closed due to not enought information.
1.3 http://blogs.phparch.com/mt/archives/000025.html
  explains about copying the dlls.  I could not do this test because
"http://bugs.php.net/bug.php?id=28255";

1.4 Tried to see if I get this new mysqli working
http://www.zend.com/manual/ref.mysqli.php
1.4.1 Couldnt has im working with a binary edition

2) Verified the following dll files (libMySQL.dll,php_mysql.dll)


2.1 I tried placing the php_mysql.dll in different places
   apache directory
   c:\windows\system directory

3) Verified latest MDAC is installed as requested by INSTALL (this maybe
another bug)
3.1 Downloaded mdac 2.8 from microsoft.com

4) Verified mysql works on windows

5) Verified php works

6) Verified apache works

7) Retraced my steps with other developers on irc

---END OF ACTUAL RESULTS

-- 
Edit bug report at http://bugs.php.net/?id=28285&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28285&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28285&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28285&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28285&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28285&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28285&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28285&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28285&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28285&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28285&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28285&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28285&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28285&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28285&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28285&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28285&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28285&r=float

Reply via email to