PDA

View Full Version : unable to connect to ftp


mstemmer
23rd of November 2006 (Thu), 10:50
Hello,
I posted this question before.
I'm not able to test my ftp settings. I used the correct loginname and password and the correct server.
Still I get the error that it cannot login.

Pekka
23rd of November 2006 (Thu), 12:15
Make sure you have chosen FTP ENGINE: "EE Internal ftp library" and then do the test. What does the message window tell you exactly?

FTP connection problems are 99% firewall related.

mstemmer
23rd of November 2006 (Thu), 12:55
whether I choose my server ftp-namer or 127.0.0.1 I get this message

FTP SERVER NAME: EE PROGRAM SERVER
FTP SERVER: 127.0.0.1
CONNECT: FAILED Reason: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:21

FILESIZE RETRIEVAL BATCH TEST
ABORTED: not logged in.

In case of my own server 127.0.0.1 shows my server name. None of the 2 options will work.

http://www.mstemmerfotografie.nl/test/ftp.JPG
http://www.mstemmerfotografie.nl/test/ftp2.JPG

I assume you mean that my ISP-server has activated a firewall? That's something I can't control?

Pekka
23rd of November 2006 (Thu), 14:56
That has nothing to do with user name/pass - it is purely issue of server not responding. Is you ftp server on? Is it in port 21? What does the install test say about connecting to funet.fi?

Try localhost instead of 127.0.0.1 - or full domain name.

mstemmer
23rd of November 2006 (Thu), 16:14
Connecting with funet.fi gives this repsons. The same as my own server. Probably something wrong with php?

FTP SERVER NAME: funet
FTP SERVER: funet.fi
CONNECT: FAILED Reason: fsockopen() [function.fsockopen]: unable to connect to funet.fi:21

FILESIZE RETRIEVAL BATCH TEST
ABORTED: not logged in.

Matt

Pekka
23rd of November 2006 (Thu), 16:29
No because fsockopen() returns an error it works and PHP works. That lefts us firewall settings or ftp server configuration. Are you sure ftp server is on? And that it allows port 21 communication with localhost and httpd server user. If you have server admin contact support and ask them to make this work. What is needed that:

PHP user (usually same as apache) may use sockets and connect to ftp server.
Ftp server is on at port 21.
Passive transfers are enabled.

mstemmer
23rd of November 2006 (Thu), 17:06
Hello Pekka,
I spoke to my server admin contact:

Liny: Sorry we do not allow that on our servers :-(
you: you don't allow passive transfers? Neither the use of sockets?
Liny: We have FTP running in passive mode ..
Liny: But we do not allow sockets on the servers

Pekka, I think it's not possible for me to use Ee as we know this?

Matt

Pekka
24th of November 2006 (Fri), 10:19
Yes, you can use EE without FTP but it is harder and you lose lots of features.
Is this paid server provider? If so, then I would suggest suggesting them that they do what client asks them to do - if not it is very wise to change provider to someone who does.

mstemmer
24th of November 2006 (Fri), 10:30
Hi Pekka,
Thanks for your reaction. My Provider is One.com (a scandinavian....;-))
Can you tell me, is there any tutorial to work with ee without ftp?

Matt