Code Comments
Programming Forum and web based access to our favorite programming groups.Hi! I have a very frustrating problem! I have installed php5.0.2 into apache2.0.52 at windows xp, service pack 2. This works fine, the server is responding, and php answers nicely. When I install MySQL 4.1.7, I can start the database server, and it works as it should. But when I try to get php to recognize mysql, the trouble begins.. Apache tries to load php, but fails with this error message: PHP Startup: Unable to load dynamic library 'c:\php\extensions\php_mysql.dll' - Can't find the procedure. After that, apache crashes. I have the php_mysql.dll in the extensions dir, and the php.ini contains this line: extension_dir = "c:\php\extensions\" all according to the install.txt file. In the windows PATH, there is the 'c:\php;c:\php\extensions' path. If I remove the line extension=php_mysql.dll everything starts nicely, of course without mysql. Why can't php find the dll file?? This is beyond my understanding, so please help me! Jon Lennryd
Post Follow-up to this message> I have the php_mysql.dll in the extensions dir, and the php.ini contains > this line: extension_dir = "c:\php\extensions\" > all according to the install.txt file. > In the windows PATH, there is the 'c:\php;c:\php\extensions' > path. > If I remove the line > extension=php_mysql.dll > everything starts nicely, of course without mysql. > > Why can't php find the dll file?? > > > This is beyond my understanding, so please help me! > > Jon Lennryd I can't explain it, but in Windows XP I experienced the same problem with some of the php extensions. I finaly got those extensions to work by putting them in C:\WINNT\system32\ folder. Anyway this was a temporary development environment so I didn't try very hard to find how to make them work in php\extensions\, but at least it worked fine from the .../system32 folder. WinXP is not my usual working environment, so maybe someone will be able to tell you more... for now you may want to try the system32 folder Dae
Post Follow-up to this message"Daedalus" <arsenault.daniel@videotron.ca> wrote in news:kuIld.6803$SC.25510@wagner.videotron.net: > > I can't explain it, but in Windows XP I experienced the same problem > with some of the php extensions. > I finaly got those extensions to work by putting them in > C:\WINNT\system32\ folder. > Anyway this was a temporary development environment so I didn't try > very hard to find how to make them work in php\extensions\, but at > least it worked fine from the .../system32 folder. > WinXP is not my usual working environment, so maybe someone will be > able to tell you more... for now you may want to try the system32 > folder > > > Dae > > > Hi Dae, I tried to put php_mysql.dll in the system32 folder, but it did not help. I also tried to give 'All' permissions to read all folders and files in the php directory. I tried to remove the line extension_dir = "c:\php\extensions\", but then php defaults to "c:\php5\ext\" or something similar. It does not sin the system32 folder at all. I finally tried to change extension_dir = "c:\windows\system32\", but this only generates the same message: "PHP Startup: Unable to load dynamic library 'c:\windows\system32 \php_mysql.dll' - Can't find the procedure. " This is so strange.. /Jon Lennryd
Post Follow-up to this message> Hi Dae, > I tried to put php_mysql.dll in the system32 folder, but it did not > help. I also tried to give 'All' permissions to read all folders and > files in the php directory. I tried to remove the line > extension_dir = "c:\php\extensions\", > but then php defaults to "c:\php5\ext\" or something similar. > It does not sin the system32 folder at all. > > I finally tried to change > extension_dir = "c:\windows\system32\", > but this only generates the same message: > "PHP Startup: Unable to load dynamic library 'c:\windows\system32 > \php_mysql.dll' - Can't find the procedure. " > > This is so strange.. I fixed it! With a tip from a friend. He told me to copy libmysql.dll from c:\php to c:\windows, and that solved everything! /Jon Lennryd
Post Follow-up to this message"Daedalus" <arsenault.daniel@videotron.ca> wrote in news:kuIld.6803$SC.25510@wagner.videotron.net: > > I can't explain it, but in Windows XP I experienced the same problem > with some of the php extensions. > I finaly got those extensions to work by putting them in > C:\WINNT\system32\ folder. > Anyway this was a temporary development environment so I didn't try > very hard to find how to make them work in php\extensions\, but at > least it worked fine from the .../system32 folder. > WinXP is not my usual working environment, so maybe someone will be > able to tell you more... for now you may want to try the system32 > folder > > > Dae > > > Hi Dae, I tried to put php_mysql.dll in the system32 folder, but it did not help. I also tried to give 'All' permissions to read all folders and files in the php directory. I tried to remove the line extension_dir = "c:\php\extensions\", but then php defaults to "c:\php5\ext\" or something similar. It does not sin the system32 folder at all. I finally tried to change extension_dir = "c:\windows\system32\", but this only generates the same message: "PHP Startup: Unable to load dynamic library 'c:\windows\system32 \php_mysql.dll' - Can't find the procedure. " This is so strange.. /Jon Lennryd
Post Follow-up to this messageI encountered same problem, but with another extensions, and i solved it by 1. copying all DLLs from ...\PHP\extensions TO ...\Windows\System32; 2. copying all dynamic link libraries from (...)\PHP\dlls\ to (...)\Windows\ System32 directory (because DLLs that reside in ...\PHP\extensions rely on D LLS in ...\PHP\dlls\. I did not have that problem before installing Service Pack 2 on WinXP, and m aybe only WinXP SP2 does not load DLLs that are not in System32 folder.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.