From:             mikerob818 at cs dot com
Operating system: Windows 98
PHP version:      5.0.4
PHP Bug Type:     PWS related
Bug description:  PHP Startup: Unable to load dynamic library '/php_mysql.dll' 

Description:
------------
Error message when try to run hello.php under PWS:

PHP Startup: Unable to load dynamic library '/php_mysql.dll'- One of the
library files needed to run this application can not be found.

The checklist below is based on PHP Manual.  If the manual is missing
instructions, please provide.

Thanks,

Robin
*******************
Description
Manual Installation:
Download zip binary distribution from downloads page
Website: http://www.php.net/downloads.php

Description
Microsoft 98/NT :
Download latest version of Microsoft Data Access Components (MDAC) for
your
platform
Website: http://msdn.microsoft.com/data/

Description
Extract distribution file into c:\php

Description
Add c:\php to PATH by editing autoexec.bat file

path C:\WINDOWS;C:\WINDOWS\COMMAND;C:\php

Description
Download PHP extensions into c:\php5
Website: http://www.php.net/downloads.php

Description
Place php5activescript.dll in c:\php
Register dll with DOS command:
cd c:\php
regsvr32 php5activescript.dll
(regsvr32.exe was copied from c:\Windows\System\inetsrv)

Message: DllRegisterServer in php5activescript.dll succeeded

Description
To test if ActiveScript working: create test.wsf in c:\php
Double click file
If receive little window with "Hello World!", you're done

Description
Set up valid configuration file for php:
php.ini-recommended saved as php.ini

Description
ActiveScript doesn't use php.ini file
Create php-activescript.ini and place it in c:\php

Description
CGI users must set the cgi.force_redirect PHP directive to 0
in php.ini
in php-activescript.ini

Description
In php.ini
php-activescript.ini

check these values:
doc_root = c:\inetput\wwwroot
extension_dir = "./"

Description
PWS 4 does not support ISAPI, only PHP CGI should be used

Edit the pws-php5cgi.reg file in c:\php
".php"="c:\\php\\php-cgi.exe"
double click to merge registry file into system

In Personal Web Manager:*
View > Advanced > Edit Properties
Check box Execute

*Note: It appears that the PHP manual is incorrect. This manual states
the
following:

In the PWS Manager, right click on a given directory you want to add PHP
support to, and select Properties. Check the 'Execute' checkbox, and
confirm.


Description
The default location PHP searches for extensions is c:\php5

In php.ini
php-activescript.ini

kept default setting for extension_dir

Description
Enable the extensions
In php.ini
php-activescript.ini

Done by deleting leading ; from extension you want to load

Removed ; from beginning of:
extension=php_mysql.dll

Description
Create hello.php and put in web server's root directory (document_root).
Use
browser to access locally with:

http://localhost/hello.php

Code:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

Got error message:
PHP Startup: Unable to load dynamic library '/php_mysql.dll'
One of the library files needed to run this application can not be found



Files under c:\php

fdftk.dll, fribidi.dll, gds32.dll, go-pear.bat, install.txt,
libeay32.dll,
libmhash.dll, libmysql.dll, license.txt, msql.dll, news.txt,
ntwdblib.dll,
php.exe, php.gif, php.ini, php.ini-dis, php.ini-recommended,
php_mysql.dll,
php5activescript.dll, php5apache.dll, php5apache_hooks.dll,
php5apache2.dll,
php5embed.lib, php5isapi.dll, php5nsapi.dll, php5ts.dll,
php-activescript..ini, php-cgi.exe, php-win.exe, pws-php5cgi.reg,
pws-php5isapi.reg, regsvr32.exe, snapshot.txt, ssleay32.dll, test.wsf,
yaz.dll

Files under c:\php\ext

php_bz2.dll, php_cpdf.dll, php_curl.dll, php_dba.dll, php_dbase.dll,
php_dbx.dll, php_dio.dll, php_exif.dll, php_fdf.dll, php_filepro.dll,
php_gd2.dll, php_gettext.dll, php_ifx.dll, php_imap.dll,
php_interbase.dll,
php_ldap.dll, php_mbstring.dll, php_mcrypt.dll, php_mhash.dll,
php_mime_magic.dll, php_ming.dll, php_msql.dll, php_mysql.dll,
php_mysqli.dll, php_oci8.dll, php_openssl.dll, php_oracle.dll,
php_pgsql.dll, php_pspell.dll, php_shmop.dll, php_snmp.dll, php_soap.dll,
php_sockets.dll, php_sybase_ct.dll, php_tidy.dll, php_xmlrpc.dll,
php_xsl.dll


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

Reply via email to