FTP not working after restore

Discussion in 'Installation/Configuration' started by jdg, Jul 28, 2009.

  1. jdg

    jdg New Member

    I recently had a server crash. I did a new install of ispconfig and imported the backup. I had done this once before with no problems, but this time FTP isn't working.

    Here's what I have discovered. If /etc/proftpd_ispconfig.conf looks like this, I can't login remotely. I can however, login locally using "ftp 127.0.0.1":
    ###################################
    #
    # ISPConfig proftpd Configuration File
    # Version 1.0
    #
    ###################################
    DefaultAddress 127.0.0.1
    <VirtualHost --public ip here-->
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    </VirtualHost>

    If I set the DefaultAddress to the public ip address, then I can successfully login with ftp remotely:

    ###################################
    #
    # ISPConfig proftpd Configuration File
    # Version 1.0
    #
    ###################################
    DefaultAddress --public ip here--
    <VirtualHost --public ip here-->
    DefaultRoot ~
    AllowOverwrite on
    Umask 002
    </VirtualHost>

    Any ideas why it's not working when the public IP address is not the DefaultAddress (only listed as the VirtualHost)? Thanks in advance.
     
  2. till

    till Super Moderator

    Make sure that you restored also all ISPConfig Linux users and groups in the files /etc/passwd, /etc/group and /etc/shadow
     
  3. jdg

    jdg New Member

    Yes, I did copy all those files.

    My friend is telling me that the public IP should be the default. I was thinking 127.0.0.1 should be the default and any public IPs should be in the virtual sections. Does anyone know which is right?
     
  4. jdg

    jdg New Member

    I commented out the DefaultAddress line. With no DefaultAddress, it allows me to ftp to 127.0.0.1 and also to the public IP address. I'm assuming this is the solution.
     
  5. jdg

    jdg New Member

    I just discovered that ispconfig will overwrite the /etc/proftpd_ispconfig.conf file. It undoes any changes you make to this file. Instead of commenting out the defaultaddress line in this file, copy /root/ispconfig/isp/conf/proftpd_ispconfig.conf to /root/ispconfig/isp/conf/customized_templates/proftpd_ispconfig.conf and edit the file in the customized_templates directory.
     

Share This Page