Hi,

I am a compiliing PHP5 on a Linux box with MySQL 5 and Apache2. The goal is
to have both the mysqli and curl extensions enabled in PHP. This is the
configure command I used:

./configure --with-mysqli=/usr/local/mysql/bin/mysql_config
--with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-zlib=/usr
--enable-xslt --with-xslt-sablot --with-openssl --enable-mbstring
--with-curl

This compiles, installs and functions fine. This is where it gets strange.
When I do a phpinfo() on the server it shows the mysqli extension to be
4.1.x, where the mysql libraries I am linking against are 5.0.15. If I do a
"php -i" command from the command line it says I am running the mysqli
extension 5.0.15. As would be expected the mod_php5 module will not connect
to mysql, but the command line version will.

If I change the configure command and remove '--with-curl', then make and
install the phpinfo() shows the mysqli extension to be 5.0.15 (which is what
I need).

To summarize, i can't get PHP5 to link to the mysql 5 client libraries if I
try to build it with curl suppport. Anyone experiences something like this
before or have any ideas as to what to do about it?

Thanks

Peer

Peer Allan 
Sr. Web Developer, e-Business

CanadaDrugs.com 
24  Terracon Place 
Winnipeg, MB, Canada
R2J  4G7 

Phone: (204) 654-7951
Cell: (204) 781-8719
Fax:  (204) 654-7910
www.canadadrugs.com



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
CanadaDrugs.com
http://www.canadadrugs.com
Tollfree voice:1-800-CAN-DRUG
Tollfree fax:  1-888-DRUG-FAX
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to