473,808 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A mystery: Why were my settings not working?

I was having problems getting mysql to work with php on my apache
server. Thankfully I got it working after reading a different thread,
which had me copy over the libmysql file to the apache/bin folder, but
this leaves the question: why didn't it work in the first place? It was
driving me nuts, and I'd still like to know why.

My settings before I dragged over the file:

XP Pro SP2
Latest PHP installed in "C:\Program Files\php"
Latest mysql with the latest Connector\PHP files in the proper PHP
dir's.
From phpinfo(): Configuration File (php.ini) Path: C:\Program Files\php\php.i ni

PHP Core
extension_dir: c:\Program Files\php\ext

Apache Environment
Path: "C:\Program Files\Microsoft DirectX SDK (February
2006)\Utilities \Bin\x86";C:\Pr ogram Files\Microsoft DirectX 9.0 SDK
(October
2005)\Utilities \Bin\x86;C:\WIN DOWS\system32;C :\WINDOWS;C:\WI NDOWS\System32\ Wbem;"C:\Progra m
Files\php";C:\P rogram Files\QuickTime \QTSystem\

(the path was set up many restarts ago)
From php.ini extension=php_m ysql.dll enabled
From the apache httpd.conf file # For PHP 5 do something like this:
LoadModule php5_module "c:/Program Files/php/php5apache2.dll "
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/Program Files/php"
From the Apache error log: Unable to load dynamic library 'c:\\Program
Files\\php\\ext \\php_mysql.dll '

From all the FAQ's and guides I read, that configuration should have

been a go. What was I doing wrong?

Jun 10 '06 #1
1 1590
sa******@gmail. com wrote:
I was having problems getting mysql to work with php on my apache
server. Thankfully I got it working after reading a different thread,
which had me copy over the libmysql file to the apache/bin folder, but
this leaves the question: why didn't it work in the first place? It was
driving me nuts, and I'd still like to know why.

My settings before I dragged over the file:

XP Pro SP2
Latest PHP installed in "C:\Program Files\php"
Latest mysql with the latest Connector\PHP files in the proper PHP
dir's.
From phpinfo():

Configuration File (php.ini) Path: C:\Program Files\php\php.i ni

PHP Core
extension_dir: c:\Program Files\php\ext

Apache Environment
Path: "C:\Program Files\Microsoft DirectX SDK (February
2006)\Utilities \Bin\x86";C:\Pr ogram Files\Microsoft DirectX 9.0 SDK
(October
2005)\Utilities \Bin\x86;C:\WIN DOWS\system32;C :\WINDOWS;C:\WI NDOWS\System32\ Wbem;"C:\Progra m
Files\php";C:\P rogram Files\QuickTime \QTSystem\

(the path was set up many restarts ago)
From php.ini

extension=php_m ysql.dll enabled
From the apache httpd.conf file

# For PHP 5 do something like this:
LoadModule php5_module "c:/Program Files/php/php5apache2.dll "
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/Program Files/php"
From the Apache error log:

Unable to load dynamic library 'c:\\Program
Files\\php\\ext \\php_mysql.dll '

From all the FAQ's and guides I read, that configuration should have

been a go. What was I doing wrong?


Sounds like the directory where libmysql.dll existed was not in your PATH. It
works later because that where you have Apache (either full or relative path) is.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jun 13 '06 #2

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

Similar topics

5
2207
by: BLaci | last post by:
Please take a look at the following drop in ad: http://www.traficdublu.ro/dev/dropin.htm The script is written in the http://www.traficdublu.ro/dev/amcuceba.js . I want to call the dropin.htm (which contains the script) from a new page in an iframe. The page is located at: http://www.traficdublu.ro/dev/popup.htm
6
1456
by: jim_geissman | last post by:
I have encountred situations like this before, but this one has me stumped. I have a pretty simple SP that collects information about residential properties from a large database. First step is to query on the basis of address or location, and collect a temp table of property IDs. Second step is to populate a composite table of property information by joining the IDs to a table of characterisitics. Third step is to update some fields...
8
1567
by: Al Reynolds | last post by:
Afternoon, In an earlier thread (http://tinyurl.com/5v4aa), I described a problem I was having which was rather bizarrely solved by changing the line: "inputbox.value = numq+ag-cw-cc;" to: "inputbox.value = numq+(ag)-(cw)-(cc);" This was needed in IE6 but not in any other browser I tried.
0
1261
by: denis.cornehl | last post by:
Hi, I have an unusual Problem with DB2. It is DB2 Version 7 and Fixpack 13 under Windows. We have written an application server which is accessing db2 via c++ and the cli interface. We used IBM Visual Age as our compiler, because we had to support OS/2. Now we ported it this year to windows and the microsoft-compiler (V8).
3
1586
by: GaryDean | last post by:
I have a situation where characters are somehow getting stripped from a textbox in an ItemTemplate in a cell of a DataGrid. In the itemDataBound event I am moving data from columns created at run time into other columns, created at design time, I have set up with Textboxes. This program has ran correctly for months until this recent condition. I have come upon the situation where a nvarchar field in a SQLServer table has a carriage...
1
2462
by: =?Utf-8?B?U2lzbmF6?= | last post by:
I'm having a very strange problem I can't seem to figure out and am hoping maybe somebody has seen it before. I get an exception "Cast string to date is invalid" with this chunk of code: ' class member Private m_invDate As Date ' this code is not exact from the program, but essentially does the same thing. This is were the exception occurs:
2
1663
by: K B | last post by:
I'm sorry to post OT here but I was hoping that someone could help me. I use Visual Studio 2005 and suddenly my Find feature has completely stopped working. When I select it, the screen flickers briefly...then nothing. I've tried reinstalling and the Ctrl+scrollbreak recommendation I found on line. Microsoft knowledgebase has nothing. Any suggestions...I use this a lot in development. thanks! Kit
0
1163
by: jobs | last post by:
I'm pulling my hair out. About a month ago I started a asp.net 2.0 project and I created a style sheet and skin file. I set the positioning of my divs, body font and colors etc.. everything nice and worked perfectly. Some other work got in the way, and I had not opened the project for some time. I now open the project and everything as it was. I go to make a few minor adjustments to the css file and none seem to take. As a test, I...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10631
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
10114
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
9196
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
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
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...
1
4331
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
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.