Re: mysql_connect won't when run from web server - SOLVED - SELINUX

2009-05-25 Thread Lisa Kachold
t;> >> -Original Message----- >> >From: Mike Butash >> >Sent: May 24, 2009 10:03 PM >> >To: Main PLUG discussion list >> >> >Cc: "Steven A. DuChene" >> >Subject: Re: mysql_connect won&#

Re: mysql_connect won't when run from web server

2009-05-25 Thread koder
--- > >From: Mike Butash > >Sent: May 24, 2009 10:03 PM > >To: Main PLUG discussion list > > >Cc: "Steven A. DuChene" > >Subject: Re: mysql_connect won't when run from web server > > >

Re: mysql_connect won't when run from web server

2009-05-25 Thread Lisa Kachold
it works fine. I really believe this eliminates any port or firewall > or ping or FQDN or localhost issues between the two boxes. > > -Original Message- > >From: Mike Butash > >Sent: May 24, 2009 10:03 PM > >To: Main PLUG discussion list > >Cc: "Steven

Re: mysql_connect won't when run from web server

2009-05-25 Thread Steven A. DuChene
eyond me. -Original Message- >From: Joe >Sent: May 25, 2009 12:10 AM >To: "Steven A. DuChene" , Main PLUG discussion >list >Subject: Re: mysql_connect won't when run from web server > >Is selinux enabled? If I remember correctly there is an option that

Re: mysql_connect won't when run from web server

2009-05-25 Thread Joe
ve this eliminates any port or firewall > or ping or FQDN or localhost issues between the two boxes. > > -Original Message- > >> From: Mike Butash >> Sent: May 24, 2009 10:03 PM >> To: Main PLUG discussion list >> Cc: "Steven A. DuChene"

Re: mysql_connect won't when run from web server

2009-05-25 Thread Steven A. DuChene
list >Cc: "Steven A. DuChene" >Subject: Re: mysql_connect won't when run from web server > >Is your hostname "mysql" valid, just "ping mysql" and see if you get a >response. Try to connect to "localhost" as well and see if it works.

Re: mysql_connect won't when run from web server

2009-05-24 Thread Lisa Kachold
Hi Steven, On Sun, May 24, 2009 at 3:53 PM, Steven A. DuChene < linux-clust...@mindspring.com> wrote: > Hello all: > I have a php to mysql database connection script that I am having a problem > with. > I have two systems. One is running apache and also happens to be my desktop > system. > Call t

Re: mysql_connect won't when run from web server

2009-05-24 Thread Charles Jones
Do you have php-mysql installed? Did you restart httpd after you installed it? Matt Graham wrote: After a long battle with technology, Steven A. DuChene wrote: But if that was the problem then the command line invocation on the Apache server should not work. I.E. if it was a port or firewa

Re: mysql_connect won't when run from web server

2009-05-24 Thread Matt Graham
After a long battle with technology, Steven A. DuChene wrote: > But if that was the problem then the command line invocation on the Apache > server should not work. I.E. if it was a port or firewall issue. apache:~$ mysql -u user --password=BLAH --host Mysql apache:~$ php -r '$c=mysql_connect("Mys

Re: mysql_connect won't when run from web server

2009-05-24 Thread Steven A. DuChene
But if that was the problem then the command line invocation on the Apache server should not work. I.E. if it was a port or firewall issue. > >> Can't connect to MySQL server on 'Mysql' (13) >> in /home/minime/public_html/testmysqlconnect_script.php on line 6 > >Are you running in safe mode? Is

Re: mysql_connect won't when run from web server

2009-05-24 Thread Matt Graham
After a long battle with technology, Steven A. DuChene wrote: > $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die("Error > connecting to mysql"); die("can't connect: ".mysql_error()); will give you a little more info about what's going wrong. > $ php testmysqlconnect_script.php >

Re: mysql_connect won't when run from web server

2009-05-24 Thread Steven A. DuChene
ime/public_html/testmysqlconnect_script.php on line 6 -Original Message- >From: "Steven A. DuChene" >Sent: May 24, 2009 3:53 PM >To: plug-discuss@lists.plug.phoenix.az.us >Subject: mysql_connect won't when run from web server > >Hello all: >I have a php to mysql da

mysql_connect won't when run from web server

2009-05-24 Thread Steven A. DuChene
Hello all: I have a php to mysql database connection script that I am having a problem with. I have two systems. One is running apache and also happens to be my desktop system. Call this one system Apache. The other system is running mysql and let's call this one Mysql. the connection script is