LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-20-2003, 11:08 AM   #1
knueven7
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 140.254.37.133) And is that all I have to do to get php to use mysql on a different server?
 
Old 03-20-2003, 07:52 PM   #2
Crashed_Again
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 34.56.66.94

hmmm...good you give a better explanation of what exactly you are trying to do.
 
Old 03-21-2003, 08:23 AM   #3
knueven7
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 140.254.37.133?
 
Old 03-21-2003, 04:58 PM   #4
bulliver
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:
Code:
  --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 05:02 PM.
 
  


Reply


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 config.inc.php.in Confusedious Linux - Software 2 11-03-2005 06:08 AM
php parseing config irvken Linux - Software 3 12-09-2004 03:08 PM
Can't find php config? gakom Mandriva 2 12-01-2004 08:34 AM
PHP config HeDZ Linux - Networking 1 05-16-2003 06:01 PM
PHP config DATA_OK Linux - Software 4 02-21-2002 03:07 AM


All times are GMT -5. The time now is 09:49 AM.

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