Re: New Server Install
| From: | b | Date: | Thu, 11 Sep 2008 01:10:45 +0000 |
| Subject: | Re: New Server Install | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279832@lists.php.net to get a copy of this message | ||
Robbert van Andel wrote:
I am working on a new webserver running Fedora 9. I installed php-mysql and php-mssql via yum. When I try to connect to our mysql server using php, I get the following error: Can't connect to MySQL server on 'mysqlservername' (13) Here's the weird part, I can connect to the mysql database server just fine from the web server's command line so I'm pretty confident that it's not a firewall issue. While trying to connect using PHP, I see no packets leaving the webserver.I'd guess it's SELinux blocking it. This will allow apache to connect to a remote server: /usr/sbin/setsebool -P httpd_can_network_connect=1