#3548 [Com]: Unable to load dynamic library

From: Date: Thu, 14 Aug 2003 05:36:57 +0000
Subject: #3548 [Com]: Unable to load dynamic library
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45905@lists.php.net to get a copy of this message
ID: 3548 Comment by: iandbigejunk at yahoo dot com Reported By: Gonzalo-Andres dot Martinez at unilever dot com Status: Closed Bug Type: Installation problem Operating System: WinNT PHP Version: 4.0 Beta 4 New Comment: PHP MYSQL on Windows? Ok so here is what is really going on.... to do with this not found thing. 1. On NT4 (probably all win32's) there is probems with multi-boot and the instalation of the odbc libraries make sure you have the ODBC??.DLL's in the %systemroot% system32 directory. Be ware of the Microsoft install program. (My guess is; becuase my NT box is dual boot the ODBC dll's went to the C:\ drive.... just a guess there (but probably a good one). 2. the dll will not load (at least on a d: drive) from anyplace but the apache 'modules' subdir. 3. For version 5 an error in the documantation has it all wrong here is the correct lines to add to httpd.conf LoadModule php5_module modules/php4apache2.dll AddType application/x-httpd-php .php Note: the php5 module no longer has built in support for mysql .... Somtimes its in the cvs snap sometimes its not! My vote is MYSQL and IMAP ought to be built in . ALWAYS! but thats my opinion. So if your looking to MYSQL-PHP on windows problably don't bother with the experimental v5 php the 4.3.2 release is best still the httpd.conf should have two lines like : LoadModule php5_module modules/php4apache2.dll AddType application/x-httpd-php .php here is a list of files that worked for me ------------------------------------------- C:\apache-mysql-php win32>dir Volume in drive C is WIN_98 Volume Serial Number is 1538-0ED5 Directory of C:\apache-mysql-php win32 08/12/03 01:54p <DIR> . 08/12/03 01:54p <DIR> .. 08/12/03 01:57p 9,295,889 apache_2.0.47-win32-x86-no_ssl.exe 08/13/03 01:07p 5,556,616 MDAC_TYP.EXE 08/13/03 05:50p 3,042,853 mysqlcc-0.9.2-win32.zip 08/11/03 05:46p 22,715,611 mysql-4.0.14b-win.zip 08/13/03 09:34p 6,268,093 php4-win32-STABLE-200308140430.zip 08/13/03 10:02p 40,114 php.ini 08/13/03 09:43p 34,887 httpd.conf 9 File(s) 46,954,063 bytes 363,888,640 bytes free ---------------------- Previous Comments: ------------------------------------------------------------------------ [2000-07-25 21:18:17] brad@php.net Upgrade to the latest PHP 4, mySQL is now bundled. There is no need to load the dll's manually ------------------------------------------------------------------------ [2000-02-21 08:19:43] Gonzalo-Andres dot Martinez at unilever dot com Hi, I hope I'm reporting my problem in the right place. I've been using php-3_0_14-win32.zip successfully under WinNT 4 (SP6) for a while (with mysql support). Today I downloaded php-4_0b4-Win32.zip which I unziped in the directory where I had php3 running, I made the proper changes (configured the php.ini file where it is supposed to go). The proble is that for some reason I don't know php4 is not able to load the .dll files (any of them) In the particular case of mysql when I run php -v command I first get a Windows style message saying " The procedure entry poing mysql_errno could not be located in the dynamic link library LIBMYSQL.dll", once I close this dialog the command prompt returns a text that says "PHP Fatal error: Unable to load dynamic library 'c:\php\php_mysql.dll'<br> The specified procedure could not be found. in Unknown on line 0 X-Powered-By: PHP/4.0b4 Content-Type: text/html" Can you help me ?? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=3548&edit=1

« previous php.bugs (#45905) next »