let me just make some correction to my previous post.
> >>Can you connect to the database from the local machine? How about >>connecting in any way from Apache? >> > >yes, i can connect to the database from the local machine I tried editing the .php file: I found out that when I use... @ $db = mysql_pconnect("localhost", "root", "password"); I can connect to the database from both the local & remote machines, but when I use... @ $db = mysql_pconnect("localhost", "user1", "password1"); the browser displays an error message saying "can't connect to the database". in other words I can only connect to mysql database if i use *root* in the .php file. > >>What I've run into with an Oracle database is that I needed to have >>certain environment variables set, and apache didn't have them set. I >>ended up putting the vars into the /etc/rc.d/init.d/httpd file in order >>to make sure they were set before apache started. > do you mean -- place the vars folder on /etc/rc.d/init.d/httpd? > > > > > > > > >>LdS> that's it. i'm now able to connect to apache server from remote machine. >>LdS> thanks Brian. >> >>LdS> Unfortunately, i do have another problem. >>LdS> I created a .html file and a .php file to connect to mysql database server. >>LdS> Browser from remote machine displays an error message saying that it can't >connect to the database. >>LdS> The database is up and running. >> >>LdS> anybody please help. >> >>LdS> thanks... >> >>LdS> luie >> >> >> >>LdS> Brian Curtis wrote: >> >>>>Hello Luie, >>>> >>>>Friday, November 16, 2001, 7:06:15 PM, you wrote: >>>> >>>>>>Is there a firewall on the machine blocking port 80/443 requests? >>>> >>>>LdS> I'm not sure, how do check if there is one and how do i configure it? >>>> >>>># service ipchains status >>>># service iptables status >>>> >>>>If either produce output, then you have a firewall running. If so, >>>>temporarily disable it with a '# service ipchains/iptables stop', then >>>>try connecting to your webserver from a remote host. >>>> >>>>If you can get through after that, then you'll need to start reading >>>>the proper docs/man pages to configuring your particular firewall __________________________________ www.edsamail.com _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list