HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   FTP not working after restore (http://www.howtoforge.com/forums/showthread.php?t=37786)

jdg 28th July 2009 05:55

FTP not working after restore
 
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.

till 28th July 2009 09:25

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

jdg 28th July 2009 16:05

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?

jdg 29th July 2009 01:05

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.

jdg 31st July 2009 18:04

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.


All times are GMT +2. The time now is 12:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.