#29110 [Opn->Csd]: ftp_rawlist problem 'php_connect_nonb() failed: Connection refused'
| From: | fcurra at tecnonexo dot com | Date: | Tue, 21 Sep 2004 12:27:32 +0000 |
| Subject: | #29110 [Opn->Csd]: ftp_rawlist problem 'php_connect_nonb() failed: Connection refused' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66490@lists.php.net to get a copy of this message | ||
ID: 29110
User updated by: fcurra at tecnonexo dot com
Reported By: fcurra at tecnonexo dot com
-Status: Open
+Status: Closed
Bug Type: FTP related
Operating System: Linux 2.4.25
PHP Version: 4.3.7
New Comment:
I finally found the solution of my problem. It wasn't a PHP Bug, but a
firewall miss configuration. I enabled 'accept connection' rule on high
ports (1024 to 65535) for that server, and that worked out.
More about in : http://shorewall.net/FTP.html
Previous Comments:
------------------------------------------------------------------------
[2004-07-12 20:17:23] fcurra at tecnonexo dot com
I'm not sure if IPv6 is involved. I don't see any reference in
phpinfo(), and PHP is not compiled with '--disable-ipv6'. By the way,
i'm passing an IP address.
Thanks
------------------------------------------------------------------------
[2004-07-12 20:10:44] fcurra at tecnonexo dot com
result of var_dump(ftp_pasv($conn_id, true));
is bool(true)
------------------------------------------------------------------------
[2004-07-12 19:16:54] pollita@php.net
Oh, and is there any IPv6 involved here? (Take a look at phpinfo() to
see if it says IPv6 enabled) Does the remote server support IPv6? Are
you passing a hostname or an IP address?
If both ends are IPv6 capable, try connecting with an IPv4 address
(1.2.3.4 as opposed to ftp.foo.com) to see if it behaves properly.
------------------------------------------------------------------------
[2004-07-12 19:08:23] pollita@php.net
What is the return value of ftp_pasv()?
var_dump(ftp_pasv($conn_id, true));
------------------------------------------------------------------------
[2004-07-12 18:27:31] fcurra at tecnonexo dot com
Comment about behavior. If you don't use passive mode (comment line
ftp_pasv) then the warning doesn't appear. Any ideas?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29110
--
Edit this bug report at http://bugs.php.net/?id=29110&edit=1