473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\e xt 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.d ll' 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\system 32 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 2741
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\e xt 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.d ll' 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\system 32 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
3230
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 procedure could not be found. I am running PHP 5.0 on Apache 2 and have been for some time. I got this error when I first installed PHP5/Apache2 on this machine (a
19
13277
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 module and works well. I copied php_msql.dll to my system32 directory. Who knows what's wrong? Thanks a lot?
7
18254
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 module when starting my Apache 2.0 in windows XP. The file, php_mysql.dll is there. why? Do I have to load this file before I can use "mysql_connect()"?
2
11743
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 directory. In it, I have removed the ';' from the extension=php_mysql.dll. Also in the php.ini file I set extension_dir = c:\PHP\Ext
1
5489
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: PHP Warning: PHP Startup: Unable to load dynamic library 'c:/program files/php/ext/php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 What puzzles me is that the MySQL server works ok, PHP works ok,
0
1474
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 attached to the system is not functioning in unknown on line 0. (2) No such file or directory exists:exec() may not be safe Apache 1.3.31(Win32) PHP 5.1.6 running
0
1665
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 php to do and loads php_mysql.dll: E:\ersDHCP>php ./extractLog.php .... some mysql-stuff, some output, OK
2
5930
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 confusing because I have two dll libraries installed on my Windows XAMP system: (1) php_mysql.dll
9
4587
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 that will reside within the Apache instance that requires PHP 5.2.6 loaded with MySql support. The installation of PHP succedded without incident (it was done manually) and I can run phpinfo() to get information about the installation. However,...
0
8312
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.