473,769 Members | 6,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Odd problem installing PHP5

WinXP Pro, Apache 1.3.27, trying to add PHP 5.0.4 with MySQL support to
the mix. Everything works fine until I add 'extension=libm ysql.dll' to
php.ini, and then starting Apache gives me the same error popup two or
three times, all with the same message:
PHP Startup: Invalid library (maybe not a PHP library) 'libmysql.dll'

I've tried all manner of variations of extension_dir, and copied
libmysql.dll from the php5 distro into c:\windows\syst em32, all to no
avail. PHP seems to work otherwise, but there's no MySQL support.
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0523-6, 06/09/2005
Tested on: 6/10/2005 9:02:58 AM
avast! - copyright (c) 1988-2005 ALWIL Software.
http://www.avast.com

Jul 17 '05 #1
6 2256
Use php_mysql.dll not libmysql.dll inside php.ini

Read the PHP manual, it talks about this:
http://php.net/mysql

Jul 17 '05 #2
Philip Olson wrote:
Use php_mysql.dll not libmysql.dll inside php.ini

Read the PHP manual, it talks about this:
http://php.net/mysql

Ahh, thanks... I was going by the install.txt which didn't specify that,
it just said to use libmysql.dll for php5.

That seems to be working now...
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0523-6, 06/09/2005
Tested on: 6/10/2005 4:38:47 PM
avast! - copyright (c) 1988-2005 ALWIL Software.
http://www.avast.com

Jul 17 '05 #3
Make sure you copy the *.dll files from the php install to the system32
directory (or the directory where apache.exe lives.

Jul 17 '05 #4
.... I should have been more specific, sorry, copy the dll files from
the root of the PHP install, you do not have to copy the dlls from the
ext directory as the extension_dir points to that directory. You
might be able to set a path variable to point to the php root, but I
couldn't get it to work for me.

Jul 17 '05 #5
Actually it's much preferred to never copy *any* PHP files (or any
files at all really) into the system32 directory. That's sloppy.
Instead, setup the system PATH environment variable as mentioned in the
manual to point to the PHP directory so all PHP files can be found.

install.txt is generated directly from the PHP manual. Please specify
where it says this so it can be corrected/clarified.

Jul 17 '05 #6
Sorry I missed your comment about PATH :-) It works, be sure it's the
system path and not the user path. And restart Windows after setting it.

Jul 17 '05 #7

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

Similar topics

0
2892
by: michael newport | last post by:
I did the following as instructed in the docs. (see below) everything seemed to install ok and I started apache with no complaints, but, 1)I do not see a process for apache using ps -ef 2) In yast I see that the new apache2 version is installed but not php5, its still on php4 any ideas ??
2
1811
by: Rob Ristroph | last post by:
Has anyone built the PHP5 beta 4 as an apache module ? I am using apache 2. Is there some trick, or missing instructions, or known bug ? Perhaps you have to use some version of apache earlier than 2.0.48, the current latest ? I have built php4 before without problems. After trying a variety of things and never getting a libphp5.so, I am at a loss as to how to go about this. (When I did a configure without using the --with-apxs2,
3
2644
by: Scott Matthews | last post by:
Hey all, I just tried installing PHP5 under IIS for the first time, but I can't seem to get the php.exe to work. I unzipped the package, and pointed the IIS .php 'executable' attribute over to php.exe in the PHP5 folder, but when I then call up a .php page, it just stalls. If I then point the IIS .php executable over to php.exe in the
3
2113
by: Erick Howenstine | last post by:
I'm installing PhP5 on WinXP, with Apache2. In my Apache's httpd.conf file I have added LoadModule php5_module c:/php-5/php5apache2.dll and moved the .ini file to C:/Windows/php.ini Apache works with the php module loaded. When I look at this code with my IE browser: <? phpinfo(); ?> or
2
3264
by: Brad Shinoda | last post by:
I've been running apache and PHP by using apt-get packages for a long time now, and it's been working fine for me. But the other day I tried to get image functions working and hit a brick wall with the packaging. I get my packages from stable. Basically, when I tried to install php4-gd2, I get something like this: php4-gd2 depends on zendapi-20040901 I seem to have that (virtual) package already installed however. The only way I...
2
2585
by: y_oda2002 | last post by:
Hi everyone I was wondering if anyone could help me. I am trying to install ph so that i can learn the code. So far i havent had any problem installing apache. However when i try to get mysql to run wit apache and php the windows services gives an error upon startin apache. Something lik error module not found. php_mysql.dll does not exist
5
8183
by: bissatch | last post by:
Hi, I am trying to install Apache and PHP. I have installed apache fine where I can type in http://localhost and it displays the default Apache page. When trying to install PHP I have run the installer file which seemed to go OK. It is when configure the Apache httpd.conf file that I get the problem. I have updated the ScriptAlias to read:
1
4728
by: Janne Vuori | last post by:
I have Apache 2.0.54 and PHP 5.0.4 running on XP Professional. Everything is working ok but when I am tryin to add the extension php_ssh2.dll into use the PHP will generate an error message: PHP Warning: PHP Startup: Unable to load dynamic library 'c:/php5/ext/php_ssh2.dll' - The specified module could not be found.\r\n in Unknown on line 0 ON httpd.conf I have LoadModule php5_module "c:/php5/php5apache2.dll" AddType...
1
1884
by: Nospam | last post by:
I am trying to get mysql 4, php5, and apache to work on my winxp sp2 comp, unfortunately even though php5 and apache seems to work ok I am unable to utilise mysql with php and apache, I have yet to see a guide that has a problem free installation, if there is such a guide or a fix on how to get php5, apache and mysql all working on winxp sp2, after having moved libmysql.dll to the c:\php directory as well as the c:\windows\system...
1
4151
by: Gilles Ganault | last post by:
Hello I'd like to play with MemcacheD and see how it improves read access to data, but I'm a bit lost at how to get from a working Apache2 + PHP5 + MySQL5 server on FreeBSD 6.3. I've never used PECL and PEAR before, and they seem required to install MemcacheD. I just ran "make config ; make ; make install" to build the php5 and
0
9423
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
10211
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
10045
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
8872
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
7409
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
5299
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3959
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
3562
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.