#1  
Old 28th July 2009, 06:55
jdg jdg is offline
Junior Member
 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 28th July 2009, 10:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,988
Thanks: 840
Thanked 5,647 Times in 4,457 Posts
Default

Make sure that you restored also all ISPConfig Linux users and groups in the files /etc/passwd, /etc/group and /etc/shadow
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th July 2009, 17:05
jdg jdg is offline
Junior Member
 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

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?
Reply With Quote
  #4  
Old 29th July 2009, 02:05
jdg jdg is offline
Junior Member
 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #5  
Old 31st July 2009, 19:04
jdg jdg is offline
Junior Member
 
Join Date: Jul 2009
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

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.
Reply With Quote
The Following User Says Thank You to jdg For This Useful Post:
falko (1st August 2009)
Reply

Bookmarks

Tags
ftp, ispconfig, proftpd, proftpd_ispconfig.conf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting FTP bswinnerton Installation/Configuration 4 10th October 2008 20:34
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 22:12
Question about Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch ikkem HOWTO-Related Questions 30 26th February 2008 20:38
WEB UI FTP not working gimhan90 Installation/Configuration 2 16th March 2006 09:03
Website users? ctroyp General 25 6th January 2006 19:02


All times are GMT +2. The time now is 09:46.


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