PHP setup and MySQL

LittleStevie

Junior Member
Apr 2, 2002
10
0
0
Hi,

I tried to setup a apache, php and mysql on an old pentium running RH linux. The problem is this machine doesn't have enough space to compile and install all these sources. The question is, can i install apache + php on this old pentium, MySQL on another internally networked machine, and somehow have them working together? If that's possible, what should I do with the php configuration where I have to type --with-mysql=path?

TIA
 

Alizarin

Junior Member
Dec 8, 2000
21
0
0
Actually, when you call mysql_connect in php, you can specify a server address to connect to, so to answer your question, yes you can.

example:
$link = mysql_connect("datacomp:port", "user", "password");

If you don't change the default MySQL port the port isn't required in the function call.

Hope this helps!
 

Alizarin

Junior Member
Dec 8, 2000
21
0
0
Ha, that's supposed to be "datacomp: port" (with no space) the auto-smiley thing made it do that