Could not login to the ftp server.
giorgio79 - November 20, 2008 - 04:33
| Project: | Plugin Manager |
| Version: | 6.x-1.5 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I keep getting this message:
# Could not login to the ftp server.
in host I put my website address like www.hehehehe.com
user: lalala@zxcvzxcv.com
pass: lnflkjandfjkalf
something like that :P
It works in FTP clients, still the module complains.

#1
have you tried "localhost" for the host? That is usually what you want.
#2
Yep, tried that, also localhost:23, and simply host as well.
#3
what errors do you get?
#4
Thanks for coming back.
That is the thing, I only get
"Could not login to ftp"
It does not say if access denied for user or anything else, just that.
#5
I also had this problem when trying to login. I therefore changed my host name from localhost to ftp.example.com
#6
Hi all,
i have the same problem...
Could not login to the ftp server.
I tried to change things in the servername / but then i got "cannot find FTP server" / that means, that a ftp server is found / but login is impossible. No reason is given why. Login via FTP client works well. Is there anything i should now?
I am hosting at hostgator. With my own server i naver had this problem..
regards
christian
#7
I'm actually on a cheap virtual hosting server. I succesefully set evethyng just using the site alias:
Settings
Stored Username: xxxxx@aruba.it
Stored Hostname: ftp.example.it
FTP Settings
FTP Path: /www.example.it
#8
Is this still a problem in version 1.9?
btw to two errors you would get w/ regards to the ftp server are:
No ftp server could be found. (bad host name)
Could not login to the ftp server. (bad username/password)
which are you getting?
#9
The issue for me seems to have disappeared with the latest dev version...Using ftp.mysite.com etc etc worked fine.
Thanks a lot.
#10
Automatically closed -- issue fixed for 2 weeks with no activity.
#11
Running 6.x-1.x-dev and continue to receive the error "No ftp server could be found.". My site is hosted with GoDaddy, no apparent FTP path is defined (installed in the root directory on remote host), and I have tried the following common sensical hostname's:
domain.com
ftp.domain.com
www.domain.com
localhost
local
root
Site IP address and port, proven to function with FileZilla, entered in the ip:port format
I'm a newbie, what am I missing here?
#12
Same problem when trying to install modules using plugin manager.
Simply cannot connect to FTP.
Getting "No ftp server could be found."
drupal installed using godaddy interface (one-click)
I am able to log into the ftp account/directory in any other interface (browser, etc) except through the drupal admin - what's wrong?
#13
Hi guys,
Since yesterday I discovered this awesome module! First off, kudos to the creator(s), we'll be using this on all our companies' websites and will save us a truckload of time!
Second, I must say I'm not so convinced about the provided documentation as it took me about half a day to get this working.
It seemed that all my FTP credentials were correct under "Plugin Manager - Settings":
Host: notorious.halecomm.net
User: ftp_user
Pass: xxxxxxx
I tried these with cuteFTP and got it working.
After this issue, it seemed that Plugin Manager could not retrieve the installation path for drupal, so I had to put in the full linux path to my drupal installation:
Path: /home/ftp_user/www/drupal6 (with beginning / and no trailing / as "sites/default/" or "sites/all" is being added...
With these settings I managed to download all the necessairy files, but was unable to extract and copy them through the FTP system to my "/sites/all/modules/" directory.
After some Googling I found out the following on the PHP.net website, about the usage of "ftp_connect":
http://be.php.net/manual/en/function.ftp-connect.php
As our company webserver is behind our firewall, I suspected the problem was indeed in the lacking of PASV mode so I added the following line of code to "plugin_manager/ftp.backend.inc" on line 133:
ftp_pasv ($connect, true);So the whole code block from line 115 to line 138 looks something like:
<?php
// Try to guess which how far in we are chrooted...
if (empty($ftp_path)) {
foreach ($local_path AS $index => $value) {
unset($local_path[$index]);
if (@ftp_nlist($connect, implode('/', $local_path) .'/'. $dir)) {
$ftp_path = implode('/', $local_path) .'/'. $dir;
drupal_set_message(t('A drupal install was automatically located on ftp at @ftp_path.', array('@ftp_path' => $ftp_path)));
break;
}
}
}
else {
$ftp_path = $ftp_path .'/'. $dir;
if (!@ftp_chdir($connect, $ftp_path)) {
drupal_set_message(t('Your provided drupal install directory is invalid.') . l(t('Change it here.'), 'admin/plugin_manager/settings'), 'error');
return FALSE;
}
}
ftp_pasv ($connect, true);
// If we couldn't guess it, then quit.
if (!isset($ftp_path) || !@ftp_chdir($connect, $ftp_path)) {
drupal_set_message(l(t('Could not guess the ftp directory for drupal. Set it here.'), 'admin/plugin_manager/settings'), 'error');
return FALSE;
}
?>
I hope to be of any assistance,
Kind regards,
Kim