Hello I am trying to install proftpd and proftpd-mysql for about a week now, it was installed before and working with ISPConfig fine, for some reason stoped working and shows on ispconfig FTP Offline , then when i try to start it with a command line it gives me an error. I even deleted the pkdg from the cache and download it again so many times because sometime it was giving me : pkdg error cannot install. I searched alot the web to find a solution after i removed it and try to install it again it was like impossible , each time i got this error message: error: No address associated with hostname - warning: unable to determine IP address of 'my server.mydomain.com__localhost_127.0.0.1' - error: no valid servers configured - Fatal: error processing configuration file '/etc/proftpd/proftpd.conf' even i have hostname and hosts setup i don't know if there is somthing wrong with it. I attached some files may be it will help. Please i need some advice on this problem , anyhelp will be appreciated. Thanks very much in advance.
Hello mr/Falko thanks again hello mr/Falko thanks again for your help , i did add what you told me to add and tried to install again here what i got : Reading package lists... Done Building dependency tree... Done proftpd is already the newest version. ucf is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0B of archives. After unpacking 0B of additional disk space will be used. Setting up proftpd (1.3.0-19) ... Starting ftp server: proftpd - IPv4 getaddrinfo 'kserver.kandkmarket.com_' error: No address associated with hostname - warning: unable to determine IP address of 'kserver.kandkmarket.com_' - error: no valid servers configured - Fatal: error processing configuration file '/etc/proftpd/proftpd.conf' failed! invoke-rc.d: initscript proftpd, action "start" failed. dpkg: error processing proftpd (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: proftpd E: Sub-process /usr/bin/dpkg returned an error code (1) I attached the hosts file may be you like to take a look at it. Thanks alot again
Add kserver.kandkmarket.com_ to /etc/hosts as well. Why do you have so strange hostnames (kserver.kandkmarket.com_, server.mydomain.com__localhost_127.0.0.1?
Thanks again hello mr/falko I added the kserver.kandkmarket.com and deleted all things that looks strange which i didn't add those as a matter of fact i found out that ispconfig each time i change somthing it adds it in the file, so anyway i cleaned it, when i tried again to install proftpd i got this: Starting ftp server: proftpd - IPv4 getaddrinfo 'kserver.kandkmarket.com_' error: No address associated with hostname - warning: unable to determine IP address of 'kserver.kandkmarket.com_' - error: no valid servers configured - Fatal: error processing configuration file '/etc/proftpd/proftpd.conf' failed! invoke-rc.d: initscript proftpd, action "start" failed. dpkg: error processing proftpd (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: proftpd E: Sub-process /usr/bin/dpkg returned an error code (1) I just don't understand what could be wrong, i am still new to this system Linux & Debian, i hate to keep bothering you with my questions but for my information that you the only one can solve the big ones. here is what the new hosts file looks like # 'hosts' file configuration. kserver.kandkmarket.com localhost 127.0.0.1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Thanks again
Thanks again for your help here is the files Hello mr/falko again here is the 3 files you requested. here is what the hosts file looks like # 'hosts' file configuration. kserver.kandkmarket.com localhost 127.0.0.1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts --------------------------------------------------------------------- hosname file: kserver.kandkmarket.com --------------------------------------------------------------------- Proftpd I install it again and here what is says a new message: Setting up proftpd (1.3.0-19) ... Adding system user `proftpd' (UID 113) ... Adding new user `proftpd' (UID 113) with group `nogroup' ... Not creating home directory `/var/run/proftpd'. Starting ftp server: proftpd - IPv6 getaddrinfo 'kserver.kandkmarket.com' error: No address associated with hostname ----------------------------------------------------------------------- /etc/proftpd/proftpd.conf : # # /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file. # To really apply changes reload proftpd after modifications. # # Includes DSO modules Include /etc/proftpd/modules.conf # Set off to disable IPv6 support which is annoying on IPv4 only boxes. UseIPv6 off ServerName "Debian" ServerType standalone DeferWelcome off MultilineRFC2228 on DefaultServer on ShowSymlinks on TimeoutNoTransfer 600 TimeoutStalled 600 TimeoutIdle 1200 DisplayLogin welcome.msg DisplayFirstChdir .message ListOptions "-l" DenyFilter \*.*/ # Port 21 is the standard FTP port. Port 21 # In some cases you have to specify passive ports range to by-pass # firewall limitations. Ephemeral ports can be used for that, but # feel free to use a more narrow range. # PassivePorts 49152 65534 # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd) MaxInstances 30 # Set the user and group that the server normally runs at. User proftpd Group nogroup # Umask 022 is a good standard umask to prevent new files and dirs # (second parm) from being group and world writable. Umask 022 022 # Normally, we want files to be overwriteable. AllowOverwrite on # Uncomment this if you are using NIS or LDAP to retrieve passwords: # PersistentPasswd off # Be warned: use of this directive impacts CPU average load! # # Uncomment this if you like to see progress and transfer rate with ftpwho # in downloads. That is not needed for uploads rates. # UseSendFile off TransferLog /var/log/proftpd/xferlog SystemLog /var/log/proftpd/proftpd.log <IfModule mod_tls.c> TLSEngine off </IfModule> <IfModule mod_quota.c> QuotaEngine on </IfModule> <IfModule mod_ratio.c> Ratios on </IfModule> # Delay engine reduces impact of the so-called Timing Attack described in # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02 # It is on by default. <IfModule mod_delay.c> DelayEngine on </IfModule> <IfModule mod_ctrls.c> ControlsEngine on ControlsMaxClients 2 ControlsLog /var/log/proftpd/controls.log ControlsInterval 5 ControlsSocket /var/run/proftpd/proftpd.sock </IfModule> <IfModule mod_ctrls_admin.c> AdminControlsEngine on </IfModule> # A basic anonymous configuration, no upload directories. # <Anonymous ~ftp> # User ftp # Group nogroup # # We want clients to be able to login with "anonymous" as well as "ftp" # UserAlias anonymous ftp # # Cosmetic changes, all files belongs to ftp user # DirFakeUser on ftp # DirFakeGroup on ftp # # RequireValidShell off # # # Limit the maximum number of anonymous logins # MaxClients 10 # # # We want 'welcome.msg' displayed at login, and '.message' displayed # # in each newly chdired directory. # DisplayLogin welcome.msg # DisplayFirstChdir .message # # # Limit WRITE everywhere in the anonymous chroot # <Directory *> # <Limit WRITE> # DenyAll # </Limit> # </Directory> # # # Uncomment this if you're brave. # # <Directory incoming> # # # Umask 022 is a good standard umask to prevent new files and dirs # # # (second parm) from being group and world writable. # # Umask 022 022 # # <Limit READ WRITE> # # DenyAll # # </Limit> # # <Limit STOR> # # AllowAll # # </Limit> # # </Directory> # # </Anonymous> ------------------------------------------------------------------- Thanks alot for your help again you just gave me hope thet everything will work right. Finally i succeded to install proftpd and the only thing i am worried about is this part: (Starting ftp server: proftpd - IPv6 getaddrinfo 'kserver.kandkmarket.com' error: No address associated with hostname) but i started it and it didn't give me errors: /etc/init.d/proftpd start I think it is working i will need to assign user name and pwd to it. I appreciate your assistance very much.
Your /etc/hosts file is completely wrong. Please make it look like this: Code: 127.0.0.1 localhost.localdomain localhost 192.168.0.100 kserver.kandkmarket.com kserver # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Please replace 192.168.0.100 with the system's IP address.
Hello again mr/Falko Thanks for your response. I corrected the Hosts file and i have a question : to replace the 192.168.0.100 in the (Hosts) file with my system's IP i checked with What is my ip ? on the net and i got 97. 77.121.99 is this is the one i should put in the hosts file instead of the 192.168.0.100 ? even if i already setup a static ip on the router (192.168.0.100) ? and should i use this also in ISPConfig as IP address ? concerning the ProFTPD is running now and shows in ispconfig (online). I also like to know if after your reply to this message should i delete this post or leave it on ? Thanks very much again for your help.
Use the one that you see in the output of Code: ifconfig Don't delete the posts! They might help someone else.