Re: mysql_connect won't when run from web server

2009-05-25 Thread Steven A. DuChene
discussion list plug-discuss@lists.plug.phoenix.az.us Cc: Steven A. DuChene linux-clust...@mindspring.com 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. Most

Re: mysql_connect won't when run from web server

2009-05-25 Thread Joe
: 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. Most default installs will listen only on 127.0.0.1, not the live IP most distro's bind to the hostname from the network

Re: mysql_connect won't when run from web server

2009-05-25 Thread Steven A. DuChene
me. -Original Message- From: Joe j...@nationnet.com Sent: May 25, 2009 12:10 AM To: Steven A. DuChene linux-clust...@mindspring.com, Main PLUG discussion list plug-discuss@lists.plug.phoenix.az.us Subject: Re: mysql_connect won't when run from web server Is selinux enabled? If I remember

Re: mysql_connect won't when run from web server

2009-05-25 Thread Lisa Kachold
: 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. Most default installs will listen only on 127.0.0.1, not the live IP most distro's bind to the hostname from

Re: mysql_connect won't when run from web server

2009-05-25 Thread koder
: May 24, 2009 10:03 PM To: Main PLUG discussion list plug-discuss@lists.plug.phoenix.az.us Cc: Steven A. DuChene linux-clust...@mindspring.com Subject: Re: mysql_connect won't when run from web server Is your hostname mysql valid, just ping mysql

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

2009-05-25 Thread Lisa Kachold
A. DuChene linux-clust...@mindspring.com 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. Most

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

Re: mysql_connect won't when run from web server

2009-05-24 Thread Steven A. DuChene
) in /home/minime/public_html/testmysqlconnect_script.php on line 6 -Original Message- From: Steven A. DuChene linux-clust...@mindspring.com 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

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: ?php $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
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: 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

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

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 this one