APPLIES TO:

  • Parallels Plesk Panel for Windows

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 are several possible causes. This error occurs if any of the following is true:

  1. The host name is longer than 15 symbols.
  2. The domain resolves to a different IP than the one that 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. Check if domain.tld resolves to the same IP it has been configured for in Plesk. You can use the following command:
    nslookup domain.tld
    

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

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. Follow the steps below to rebuild FTP server configuration:

  1. For Plesk 8 and Plesk 9 only: Repair permissions on the home folders of the problem domains. This can be done using the Control Panel: go to Domains, mark the problem domain, and click on Check permissions.
  2. Re-configure the FTP configuration.
    • For Plesk 11.0 and earlier: Use the Plesk command line tool ftpmng.exe as follows:
      "%plesk_bin%\ftpmng.exe" --remove-vhost --vhost-name=domain.tld 
      "%plesk_bin%\ftpmng.exe" --reconfigure-vhost --vhost-name=domain.tld
      
    • For Plesk 11.5: Use the utility repair.exe as follows:
      "%plesk_cli%\repair.exe" --reconfigure-ftp-site -webspace-name domain.tld
      
  3. If this issue occurs with every domain, you can repair the FTP configuration for all domains using the following commands:
    • For Plesk 11.0 and earlier: Use the Plesk command line tool ftpmng.exe as follows:
      "%plesk_bin%\ftpmng.exe" --remove-all
      "%plesk_bin%\ftpmng.exe" --reconfigure-all
      
    • For Plesk 11.5: Use the utility repair.exe as follows:
      "%plesk_cli%\repair.exe" --reconfigure-ftp-sites
      

Note: The above commands will not affect the functioning of your websites (HTTP/HTTPS). However, any custom FTP configuration will vanish.

 

Kaynak : http://kb.parallels.com/en/549