I am trying to install PHP5 with Personal Web Server 4 on a Windows 98 Operating System. When I try to run a simple script under PWS ("hello.php"), I get the error message below:
PHP Startup: Unable to load dynamic library '/php_mysql.dll' - One of the library files needed to run this application can not be found. Can anyone offer assistance with this problem? I have provided a checklist of tasks completed based on the PHP manual. 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