Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-20-2003, 10:08 AM   #1
LQ Newbie
Registered: Mar 2003
Posts: 25

Rep: Reputation: 15
php config?

how would I change this statement if mysql was located on a different machine? (machine name = fred IP And is that all I have to do to get php to use mysql on a different server?
Old 03-20-2003, 06:52 PM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I don't understand this question very well but here goes:

machine name = othermachine IP

hmmm...good you give a better explanation of what exactly you are trying to do.
Old 03-21-2003, 07:23 AM   #3
LQ Newbie
Registered: Mar 2003
Posts: 25

Original Poster
Rep: Reputation: 15
sorry about that. I forgot to write the rest of the post. Anyway, I am trying to configure php with mysql, but the mysql is on a different server. This is the statement I was talking about
./configure --with-mysql=/usr/local/mysql What do I do with this if mySQL is on machine
Old 03-21-2003, 03:58 PM   #4
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
You can leave out --with--mysql=/usr/local/mysql altogether. PHP comes with the needed libraries to talk with MySql built in, so just use "--with--mysql" with no arguments when configuring php

From php ./configure --help:
  --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base directory.
                          If unspecified, the bundled MySQL library will be used.

Last edited by bulliver; 03-21-2003 at 04:02 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP parse error in Confusedious Linux - Software 2 11-03-2005 05:08 AM
php parseing config irvken Linux - Software 3 12-09-2004 02:08 PM
Can't find php config? gakom Mandriva 2 12-01-2004 07:34 AM
PHP config HeDZ Linux - Networking 1 05-16-2003 05:01 PM
PHP config DATA_OK Linux - Software 4 02-21-2002 02:07 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration