Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

PHP5.0.2win32 dont find mysql dll file
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




Report this thread to moderator Post Follow-up to this message
Old Post
Jon Lennryd
11-17-04 01:55 AM


Re: PHP5.0.2win32 dont find mysql dll file
> 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



Report this thread to moderator Post Follow-up to this message
Old Post
Daedalus
11-17-04 01:55 AM


Re: PHP5.0.2win32 dont find mysql dll file
"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





Report this thread to moderator Post Follow-up to this message
Old Post
Jon Lennryd
11-17-04 01:55 AM


Re: PHP5.0.2win32 dont find mysql dll file

> 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


Report this thread to moderator Post Follow-up to this message
Old Post
Jon Lennryd
11-17-04 01:55 AM


Re: PHP5.0.2win32 dont find mysql dll file
"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





Report this thread to moderator Post Follow-up to this message
Old Post
Jon Lennryd
11-19-04 08:55 AM


Re: Re: PHP5.0.2win32 dont find mysql dll file
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 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.

Report this thread to moderator Post Follow-up to this message
Old Post
nivzer
04-25-05 01:40 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:02 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.