473,385 Members | 1,912 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,385 software developers and data experts.

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.ini

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

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

(the path was set up many restarts ago)
From php.ini extension=php_mysql.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 1571
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.ini

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

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

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

extension=php_mysql.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*******@attglobal.net
==================
Jun 13 '06 #2

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

Similar topics

5
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...
6
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...
8
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:...
0
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...
3
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...
1
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: '...
2
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...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.