473,659 Members | 2,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MySQL module won't load under php5

I am running php 5 against a apache 2 server under WindowsXP.
I have php installed at c:/php and extentions at c:/php/ext.
extensions_dir is set correctly and extention php_mysql is declared.
I use a 'recomended' ini file but with display_error On for now.
When starting apache I get the error 'Cannot load
'c:/php/ext/php_mysql.dll'.
php from the command line 'php index.php' grinds the correct output.
But since php_mysql isn't loaded the php5-module bails out at the first
mysql_connect call.

What on earth is going on here?

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 17 '05 #1
3 2235
On Tue, 08 Feb 2005 23:59:59 +0100, John Thingstad
<jo************ @chello.no> wrote:
I am running php 5 against a apache 2 server under WindowsXP.
I have php installed at c:/php and extentions at c:/php/ext.
extensions_dir is set correctly and extention php_mysql is declared.
I use a 'recomended' ini file but with display_error On for now.
When starting apache I get the error 'Cannot load
'c:/php/ext/php_mysql.dll'.
php from the command line 'php index.php' grinds the correct output.
But since php_mysql isn't loaded the php5-module bails out at the first
mysql_connect call.

What on earth is going on here?


I forgot to mention that apache is set up to read the php.ini
file at c:/php and this works.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 17 '05 #2
On Tue, 08 Feb 2005 23:59:59 +0100, "John Thingstad"
<jo************ @chello.no> wrote:
What on earth is going on here?


Did you copy the mysql library from the root of the PHP5 installation
directory into your windows/system32 directory as per the installation
instructions? This one tripped me up a bit.

Also make sure you are using the correct MySQL extension (there are
two).

Jul 17 '05 #3
> Also make sure you are using the correct MySQL extension (there are
two).


Yes, there are two. For MySQL 4.0 or before, load php_mysql.dll and for
MySQL 4.1 and above, load php_mysqli.dll, and change all the "mysql"
functions in your scripts to "mysqli" functions.
Jul 17 '05 #4

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

Similar topics

0
1891
by: phpnube | last post by:
I used this php package to install on my system... (i had problems with the isapi package from php so im back to the cgi portion of PHP php-cgi.exe) PHP 5.0.0 installer - 26 July 2004 (CGI only, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. N.B. no external extensions included It works fine... as the test page outputs the...
1
3286
by: Kevin | last post by:
I posted this to the sourceforge phpMyAdmin ng, but there was a comment that it was properly a php question, so I'm posting it here. I'm on Windows XP, and have just installed Apache, php 5, and phpMyadmin from zipped binaries. The only thing irregular thing I’m conscious of doing is unpack phpMyadmin, files and directories, directly into \Apache2\htdocs, because that was the only place I knew I could reach with the <http://localhost>...
2
1721
by: Tony | last post by:
I'm trying to setup PHP5 on a test server at work. I removed PHP 4 and setup PHP5 as a clean install. I did the manual install per the instructions. The machine run Windows Server 2003 with IIS 6.0. I have 2 annoying issues: No matter what I do, when I look at phpinfo() it reports that it is reading the php.ini file from c:\windows. Even though I have made all the ini file adjustments, put in the registry change, etc. it still won't...
1
4439
by: David Moore | last post by:
Hi All, I'm moving some php/mysql development work from one PC to another. I wanted to use the latest versions of php, MySQL and Apache on the new machine, so I've downloaded the appropriate stuff and installed it. However, I'm getting the old familiar error when starting the server: PHP Startup: Unable to load dynamic library 'c:/php/ext/php_mysql.dll - The specified module could not be found Now I understand that this is because it...
5
2780
by: solitary.wanderer52 | last post by:
I am running PHP5 under Linux. Just a newbie and would like to have it integrated with MySQL. When I execute phpinfo() in a webpage, I see tons of info on php, but nothing on MySQL. Perhaps this is because I installed MySQL after I installed PHP. Is there a way to get PHP to recognize MySQL? Thanks, Steve
8
7087
by: deko | last post by:
I've just loaded phpMyAdmin on a Debian Linux server with Apache2, MySql5 and PHP5. myserver # dpkg -l | grep php ii libapache-mod-php5 5.2.0-8+etch4 ii libapache2-mod-php4 4.4.4-8+etch2 ii php4-common 4.4.4-8+etch2 ii php5-common 5.2.0-8+etch4 ii php5-gd 5.2.0-8+etch4 ii php5-mcrypt 5.2.0-8+etch4
3
8816
by: menzies | last post by:
Hi, I"m new to this forum, but I have been trying all day to install DBD::mysql onto my Intel MacBook. I've read lots of forums pages and none have gotten me to a successful 'make test' or a successful 'sudo make install.' Before every attempt I even do a sudo make distclean to make sure I haven't gotten things mucked up from a prior attempt. OS: Mac OS X 10.4.10 MySQL: v5.0.41 for Mac OSX-i686 DBI: v1.58 (installed fine using CPAN)...
4
1473
Lazandra
by: Lazandra | last post by:
Hi, I have installed php5 and mysql 4.1. But i can't get them to work properly. I have searched and found some sites but they all give different ways of doing it. Does anyone know of a site that tells you exactly what to do? The error i get when i try and load phpMyAdmin is "Cannot load mysql extension. Please check your PHP configuration. - Documentation"
3
2135
by: R.A.M. | last post by:
I use PHP5 in Windows XP Professional with Apache and MySQL installed. I would like to use MySQL. Now, I cannot use mysql_* functions because mysql_connect(...) returns Fatal error: Call to undefined function mysql_connect() PHP is problably not correctly configured to use MySQL. I think so, because when I open: localhost/phpinfo.php I receive no information about MySQL. So far, I have modified c:\windows\php.ini: ;;;;;;;;;;;;;;;;;;;;;;
0
8330
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
8746
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...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
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...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2749
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
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.