Home > Archive > PHP Language > April 2005 > PHP5.0.2win32 dont find mysql dll file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PHP5.0.2win32 dont find mysql dll file
|
|
| Jon Lennryd 2004-11-16, 8:55 pm |
| 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
| |
| Daedalus 2004-11-16, 8:55 pm |
| > 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
| |
| Jon Lennryd 2004-11-16, 8:55 pm |
| "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 s in 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
| |
| Jon Lennryd 2004-11-16, 8:55 pm |
|
> 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 s in 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
| |
| Jon Lennryd 2004-11-19, 3:55 am |
| "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 s in 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
| |
| nivzer 2005-04-25, 8:40 am |
| I 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 DLLS in ...\PHP\dlls\.
I did not have that problem before installing Service Pack 2 on WinXP, and maybe only WinXP SP2 does not load DLLs that are not in System32 folder. |
|
|
|
|