Posted by giorgio79 on November 20, 2008 at 4:33am
Jump to:
| Project: | Plugin Manager |
| Version: | 6.x-1.5 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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.
Comments
#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
#14
Okay, now I'm super confused. I have the following structure:
->Shared hosting with Godaddy
->Drupal core installed in [max] subdirectory @ www.bebeshelly.com/max
->Plugin Manager module installed @ www.bebeshelly.com/max/sites/all/modules
Successful FTP login via FileZilla using:
Logon type: normal
Host: bebeshelly.com
User: blahblah
Pass: blahblah
Now, moving to the Plugin Manager's "Settings" page:
Stored Username: blahblah
Stored Hostname: bebeshelly.com? [functioning in FileZilla]
FTP Path: leave blank for autodetect? [otherwise?]
Then, to the Plugin Manager's "Install" page:
Installation method: FTP
Hostname: bebeshelly.com? [as explained previously, I have tried all kinds of variations to no avail]
Username: blahblah
Password: blahblah
All attempted Hostname/FTP Path entries have lead to the following errors: "No ftp server could be found";"Unable to install...".
I ran this snippet in my Drupal subdirectory [bebeshelly.com/max] to get an idea of whats what:
<?phpecho __FILE__;
?>
and got the result: "/home/content/29/5517629/html/max/whatever.php"
So, what the crap do I use for Hostname and FTP path!? What else am I missing? What about permissions?
#15
hostname localhost works for me
#16
Also confused.
Do we then configure ftp as follows: account=[ftp-user@domain.com] + pwd=[ftp password] + hostname=localhost ?
(I'm hosting on HostGator, where the standard is FTP configured to go to a specified sub-folder.)
#17
Which FTP hosting provider do you guys use? That can also make a difference.
#18
Can a TEST Function (trigger by Button/Save) be added onto the Config Page?
Do a local ftp of a dummy file, to verify the local config is ok.
#19
My host name(hostgator) would not work. Kept saying No ftp server could be found. But replacing hostname with ip address worked perfectly.
#20
Have just spent an hour trying to configure - finally left my ftp path totally blank and voila! All worked! Even downloaded and extracted into my sites/all/modules folder correctly.
Stored username: username (whatever it may be)
Stored hostname: localhost
FTP Path: leave blank
Well that all worked for me anyway!
#21
I've been using the plugin manager without any issues for several weeks on GoDaddy's shared hosting. I then had my hosting "upgraded" to the GoDaddy Grid Hosting option and now have this same "No ftp server could be found" problem.
I've tried all the possible solutions mentioned in the above postings and still no joy :-(
GoDaddy's tech support can offer no assistance, even though it appears evident that changing the hosting is what has triggered the problem.
Does anyone have any other suggestions as to how to make this work again?
Thanks in advance for any help.
#22
I'm also haing the same problem, using the default settings.
Method:=ftp, Hostname:=localhost, Username:=admin, Password:=blahblah
Result:=Could not login to the ftp server
Removing the username and password suggests that the ftp server is found but does not have permissions to create directory and I assume file.
Method:=ftp, Hostname:=localhost, Username:=, Password:=
Result:=Unable to create directory
Thanks in advance,
Chuck
#23
Site administrator does not allow standard ftp. Will continue with sftp and uninstall plugin_manager.
#24
Authors of this module - you see how many people spent time again and again to get these settings right.
The docs and/or the error messages are _insufficient_ - okay?
Get them right, please.
#25
I got it to work but initially had some troubles.
Ask yourself if you've ever ftped to your site in any fashion before. (I use bluehost which gives me so many nice tools for everything, I lost track of details such as hostname and username.) If the answer is "YES, I've ftped to my site," then the problem MUST be one of the following inputs into the Plugin Manager:
hostname,
username
password.
At first I didn't know what hostname, username, password to use. I asked myself, does it want the hostname of MY hosting system or does it want that information for the Drupal modules system (logon to it via FTP). I also had a metaphysical moment where I had to imagine what FTP client was asking (server-side or client-side) in trying to figure out what host. I knew I clicked on a link on the modules site, so I decided it couldn't be asking for more information about the durpal modules website. So it had to be for my webhosting service.
I had to go to my hosting service website and get my username and password. (I rarely use my username as I usually login via domain name, which bluehost must map to the username.)
Someone further up the thread posted a very ineresting point about the error message:
(I'm paraphrasting, sorry.) "can't login" means bad username/password.
"PHP get address error" means bad hostname.
hostname may not be what you think it is as your domain name doesn't have to be == to hostname.
Sorry this won't help your specific problem. Best advice is call/research your hosting service for hostname, username, password. (You probably know your password.) If you don't yet trust the Plugin Manager, then take the FTP information and use your favorite (and trusted) ftp module to try to get an FTP login into your hosting site. If that doesn't work, then you still don't have those three parameters right: hostname, username, password.
Good luck!
==>Lancer---
#26
Hi all,
I have the same problem, I know the FTP user name and password, however I cannot install any plugins, I keep getting the response "No Server Could be Found".
My website hosted on Godaddy, so I have posted the question in the Godaddy community forum, and this is the answer I got:
BTW, Godaddy have deleted this topic from their forum (very professional)
I have sent two emails to the support, which were never answered...
Since this didn't solve the problem, I called Godaddy support (As Cristopher G asked me.), however the answer I got from GoDaddy was:
Not surprisingly, for the first time I didn't get the "how did we do questionnaire".
OK, beside the fact that Godaddy's support sucks, and I had to ventilate, does anybody with a Godaddy hosting account knows how to solve this issue?
thanks a lot
Dana
#27
Module returns error: "Your provided drupal install directory is invalid." when the folders "sites/all/modules" or "sites/all/themes" do not exist in your drupal installation. Be sure to make sure that both of these folders exist.