Unable to login to a domain via FTP Plesk

4

Unable to login to a domain via FTP

Symptoms
Login to domain.com via FTP fails for all users. The following error message is displayed:
Cannot log in, home directory inaccessible

Cause
There could be several reasons. This error occurs if:

1. The host name is longer than 15 symbols.

2. The domain resolves to a different IP than the one which has been configured in Plesk.

3. The FTP server configuration is broken.

Resolution
1. To change the host name ,right-click the My Computer icon and choose Properties. Select the Computer Name tab, then click the Change button. Specify the computer name as desired and click OK. When done, restart your computer.

2. Please check if domain.com resolves to the same IP it has been configured for in Plesk. You can use the following command :

nslookup yourdomain.com

The returned IP should be the same as the one configured in Plesk for the domain.

3. If the name of your server is shorter than 15 symbols and the domain resolves to the proper IP, it could mean that something is broken in the FTP configuration.

You should follow the steps below to fix the issue:

a. For versions 8 and 9 only: Repair permissions on the home folders of problem domains. This can be done using the Control Panel:

Plesk , domains, mark problem domain, Click on Check permissions

b. Re-configure the FTP configuration using the Plesk command line tool ftpmng.exe as follows:

Note: The below commands will not affect functioning of your Web (HTTP/HTTPS) sites. However any custom FTP configuration will vanish.

Remove your domain entry from FTP server configuration:
“%plesk_bin%\ftpmng.exe” –remove-vhost –vhost-name=yourdomain.com

Add your domain vhost entry into FTP server configuration and reconfigure it:
“%plesk_bin%\ftpmng.exe” –reconfigure-vhost –vhost-name=yourdomain.com

c. If this issue happens to every domain, you can repair the FTP configuration for all domains using the following commands:

Note: The below commands will not affect functioning of your Web (HTTP/HTTPS) sites. However any custom FTP configuration will vanish.

Remove all domain entries from FTP server configuration:
“%plesk_bin%\ftpmng.exe” –remove-all

Add all domain entries into FTP server configuration and reconfigure them:
“%plesk_bin%\ftpmng.exe” –reconfigure-all
==================================>
Reference : http://kb.parallels.com/en/549

Login via FTP fails with “530 Login incorrect” error in Plesk

5

Login via FTP fails with “530 Login incorrect” error

Symptoms
I am trying to access the Parallels Plesk Panel (PP) server via FTP using the domain of the FTP user or webuser, but I get the following error:

530 Login incorrect.
Login failed.
421 Service not available, remote server has closed connection

Cause
This error may be caused by an incorrect user name/password pair. Also, this error occurs in cases where the FTP user does not have enough permissions to access their home directory, or this directory does not exist at all.
Resolution
Make sure that the right user name and password are used. To be sure, you can set a new password for the problem user through the PP Control Panel and try to log in via FTP again.

Check that the user’s home directory exists and that it is accessible by the user. For example, assume that the “username” user cannot log in via FTP.

– Log in to the PP server as the “root” user

– Check where the home directory for this user is:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e ‘select home from sys_users where login=”username”‘
+——————————+
| home |
+——————————+
| /var/www/vhosts/domain.com |
+——————————+

– Compare this directory with the one from /etc/passwd (they should match):
# grep ‘^username:’ /etc/passwd
username:x:10001:2524::/var/www/vhosts/domain.com:/bin/false

If they do not, rename the user to any new name through the PP CP, and then rename it back. This should fix the problem.

– Check if this directory exists and has the right permissions:
# ls -lad /var/www/vhosts/domain.com
d——— 14 root root 4096 2008-02-22 11:50 /var/www/vhosts/domain.com

– Correct permissions if needed:
# chmod 755 /var/www/vhosts/domain.com

– Try to log in via FTP again.
==========================================>
Reference : http://kb.parallels.com/en/4647