Re: Question on the port PHP uses to connect to remote MySQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 29 January 2003 11:34, Louis Feng wrote:
> Here is my problem. I have PHP running on one machine, mysql on another
> one. Everything works fine till I put a firewall on the PHP machine,
> which blocks pretty much every port there is except port 80. Now, PHP
> can't connect to the mysql database anymore. If I disable the firewall
> on the PHP machine it works again. So I eliminate the reasons down to
> that PHP must uses some port for mysql return the query. 


> The question is
> which port does PHP use for the connection? 

Most likely it varies. Your firewall should have stateful inspection so that 
whatever port was used to initiate the connection with mysql should be 
allowed through.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
We're all in this alone.
		-- Lily Tomlin
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux