473,394 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

php_mysql.dll fails to load

I have apache2, mysql 4.0.21 and php 5.0.2.on xp pro.

All works fine up to the point where I enable the php_mysql.dll module
in php.ini. I followed the instructions and copied libmysql.dll to
c:\windows, also modified the "extension_dir" to point to
c:\sqlphp\php\ext which works fine as the error message I get shows the
proper path for php_mysql.dll file. Also, I checked it out to see if the
file is there and it is indeed in that directory.
Here is the error message:
---------------------
PHP Warning: PHP Startup: Unable to load dynamic library
'c:\sqlphp\php\ext\php_mysql.dll' The specified module could not be
found. In Unknown on line 0
---------------------

So far, I did a search on the internet and other people who had the same
problem seem to say that by moving libmysql.dll and php_mysql.dll to
\windows or \windows\system32 the problem would be sorted. Unfortunately
for me, tried it and it doesn't work, i get the same message. I even
tried to register the dlls manually using regsrv32 and even that failed.

By the way, I get this message when I start php from the command line. I
had to disable apache2 as it falls over as soon as it tries to load the
php module which in turn tries to load the php_mysql.dll module. Also,
Apache2 reports the same error before crashing, so for the time being I
disabled the service.

I would appreciate any help on this issue as it starting to drive me mad.

Many thanks
alex
Jul 17 '05 #1
1 2730
Thanks, it has been sorted.
alex

Alex Popescu wrote:
I have apache2, mysql 4.0.21 and php 5.0.2.on xp pro.

All works fine up to the point where I enable the php_mysql.dll module
in php.ini. I followed the instructions and copied libmysql.dll to
c:\windows, also modified the "extension_dir" to point to
c:\sqlphp\php\ext which works fine as the error message I get shows
the proper path for php_mysql.dll file. Also, I checked it out to see
if the file is there and it is indeed in that directory.
Here is the error message:
---------------------
PHP Warning: PHP Startup: Unable to load dynamic library
'c:\sqlphp\php\ext\php_mysql.dll' The specified module could not be
found. In Unknown on line 0
---------------------

So far, I did a search on the internet and other people who had the
same problem seem to say that by moving libmysql.dll and php_mysql.dll
to \windows or \windows\system32 the problem would be sorted.
Unfortunately for me, tried it and it doesn't work, i get the same
message. I even tried to register the dlls manually using regsrv32 and
even that failed.

By the way, I get this message when I start php from the command line.
I had to disable apache2 as it falls over as soon as it tries to load
the php module which in turn tries to load the php_mysql.dll module.
Also, Apache2 reports the same error before crashing, so for the time
being I disabled the service.

I would appreciate any help on this issue as it starting to drive me mad.

Many thanks
alex

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Harry | last post by:
Since yesterday, when I try and start apache, I get the following message: Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_mysql.dll' - the specified...
19
by: Nancy | last post by:
Hi, When I start my PC(winXP Pro), it always says: Unknown(): Unable toload dynamic library './php_msql.dll' - The specified module could not be found. Then my Apache servre starts, load php...
7
by: ccp999 | last post by:
I keep getting this: "PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified module could not be found." when I tried to load the php_mysql.dll...
2
by: MS | last post by:
Why do I keep getting this error mesgage on my phpinfo() page trying to get PHP and MySQL to communicate? I am running this in IIS. Here's what I have - My php.ini resides in my C:\WINNT...
1
by: snapcount | last post by:
Hi, I need some help with this. I've enabled php_gd2.dll and php_mbstring.dll in the php.ini file and they're loading ok but the php_mysql.dll is not getting loaded. Apache's error.log reports:...
0
by: redally | last post by:
Hi, Can anyone help me out? I run Windows ME and WinMySQLadmin 1.4 and it sees the database OK but. PHP Warning: PHP Startup: Unable to load dynamic library 'D:\php\ext\php_mysql.dll' a device...
0
by: java | last post by:
Hi there! After I overcame some short_open_tag (thanks, Rik!) I encounter another strange php-behaviour. The script I just got to work on the windows-commandline obviously does as php.ini tells...
2
by: Reporter | last post by:
According to the PHP Manual, "If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts." I find this...
9
by: Christopher Koeber | last post by:
Hello, I am attempting to perform a PHP installation on an Apache 2.2.6 web server instance that is loaded on a Windows 2003 server operating system (R2 SP2). I have a third party application...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.