Nginx, BIND, Dovecot, PureFTPD and ISPConfig 3.1 and no FTP-service available

Discussion in 'Installation/Configuration' started by virk6, Aug 26, 2019.

  1. virk6

    virk6 New Member HowtoForge Supporter

    I follow the tutorial The Perfect Server - Debian 9 (Stretch) with Nginx, BIND, Dovecot, PureFTPD and ISPConfig 3.1 and every think was going well since one year ..
    I have noticced that in my Ispconfig interface on service is totally absent and this service is

    FTP-Server

    Here is my ispconfig interface

    Serveur Web : En ligne
    Serveur SMTP : En ligne
    Serveur POP3 : En ligne
    Serveur IMAP : En ligne
    Serveur DNS : En ligne
    Serveur MySQL : En ligne


    ( where is my FTP-server ? )

    service pure-ftpd-mysql status

    ( is OK and give me this )
    .........................
    ..........................
    ? pure-ftpd-mysql.service
    Loaded: loaded (/etc/init.d/pure-ftpd-mysql; generated; vendor preset: enabled)
    Active: active (running) since Mon 2019-08-26 02:16:56 CEST; 8s ago
    Docs: man:systemd-sysv-generator(8)

    Help please.
    V.
     
  2. ahrasis

    ahrasis Well-Known Member

    If you did check it in your server services, then you just have to wait for system to update its monitoring for pure-ftpd-mysql.
     
  3. virk6

    virk6 New Member HowtoForge Supporter

    Hello mr.ahrasis thank you.
    Have i to reeboot my server ? i am going to do it now and let you know!
     
  4. virk6

    virk6 New Member HowtoForge Supporter

    I have just reboot my system and every thing ok but no ftp-services in my ispconfig panel;
    For example : service pure-ftpd-mysql status
    ? pure-ftpd-mysql.service
    Loaded: loaded (/etc/init.d/pure-ftpd-mysql; generated; vendor preset: enabled)
    Active: active (running) since Mon 2019-08-26 08:54:42 CEST; 14min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 1485 ExecStart=/etc/init.d/pure-ftpd-mysql start (code=exited, status=0/SUCCESS)
    Tasks: 1 (limit: 4915)
    CGroup: /system.slice/pure-ftpd-mysql.service
    +-1497 pure-ftpd (SERVER)
     
  5. ahrasis

    ahrasis Well-Known Member

    You misunderstood what I said. What I mean is for you to check your server system > server services. Check file-server to enable ftp service monitoring by ISPConfig. It will take some times before it is updated.
     
  6. virk6

    virk6 New Member HowtoForge Supporter

    Yes, i misunderstood what you said; excuse me.
    Now I go to server system > server services. Check file-server to enable File service but when i try to enable File server it refuse. When i put it on it goes to off automaticaly. I found others services which are working well and eabled (for examples Web service, Mail, DNS .... except File service.
    Thanks
     
  7. virk6

    virk6 New Member HowtoForge Supporter

    By the way I use the firewall ufw but I opened the ports ftp but who can cause that? What procedure to use to reinstall FTP on a server in production?
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Which error message do you get? and ensure that you are logged in as user with the username 'admin', other users can not turn this on.
     
  10. virk6

    virk6 New Member HowtoForge Supporter

    Here is the part result of the command

    cat htf_report.txt | more


    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.1.14p1


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.3.3-1+0~20190307202245.32+stretch~1.gbp32ebb2

    ##### PORT CHECK #####

    [WARN] Port 22 (SSH server) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Unknown process (nginx:) (PID 1248)
    [INFO] I found the following mail server(s):
    Postfix (PID 1168)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 880)
    [INFO] I found the following imap server(s):
    Dovecot (PID 880)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 1497)

    ##### LISTENING PORTS #####
    (seulement ()
    Adresse (distante)
    [anywhere]:5742 (1082/portsentry)
    [anywhere]:110 (880/dovecot)
    [anywhere]:21 (1497/pure-ftpd)
    ***.***.***.***:53 (751/named)
    [localhost]:53 (751/named)
    [anywhere]:119 (1082/portsentry)
    ***.***.***.***:443 (1248/nginx:)
    ...................................................
    ...................................................
    [localhost]10 (880/dovecot)
    [localhost]43 (880/dovecot)
    *:*:*:*::*:80 (1248/nginx:)
    *:*:*:*::*:8080 (1248/nginx:)
    *:*:*:*::*:8081 (1248/nginx:)
    *:*:*:*::*:465 (1168/master)
    *:*:*:*::*:21 (1497/pure-ftpd)
    *:*:*:*::*:53 (751/named)
    *:*:*:*::*:25 (1168/master)
    *:*:*:*::*:953 (751/named)
    2001:41d0:1000:140c:443 (1248/nginx:)
    *:*:*:*::*:2332 (849/sshd)
    *:*:*:*::*:993 (880/dovecot)
    *:*:*:*::*:995 (880/dovecot)
    *:*:*:*::*:10023 (1135/postgrey)
    *:*:*:*::*:10024 (1261/amavisd-new)
    *:*:*:*::*:10026 (1261/amavisd-new)
    *:*:*:*::*:587 (1168/master)
    ............................
    ##### IPTABLES #####
    Chain INPUT (policy DROP)
    target prot opt source destination
    DROP all -- ***.***.***.*** [anywhere]/0
    f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25
    f2b-dovecot tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993,587,465,4190
    f2b-pure-ftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21
    f2b-sshd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22
    ufw-before-logging-input all -- [anywhere]/0 [anywhere]/0
    ......................................................................
    Chain FORWARD (policy DROP)
    target prot opt source destination
    ufw-before-logging-forward all -- [anywhere]/0 [anywhere]/0
    ufw-before-forward all -- [anywhere]/0 [anywhere]/0
    ufw-after-forward all -- [anywhere]/0 [anywhere]/0
    ufw-after-logging-forward all -- [anywhere]/0 [anywhere]/0
    ufw-reject-forward all -- [anywhere]/0 [anywhere]/0
    ufw-track-forward all -- [anywhere]/0 [anywhere]/0

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    .......................................

    Chain f2b-dovecot (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-postfix-sasl (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-pure-ftpd (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-sshd (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain ufw-after-forward (1 references)
    target prot opt source destination

    Chain ufw-after-input (1 references)
    target prot opt source destination
    ufw-skip-to-policy-input udp -- [anywhere]/0 [anywhere]/0 udp dpt:137

    ufw-skip-to-policy-input all -- [anywhere]/0 [anywhere]/0 ADDRTYPE match dst-type BROADCAST

    Chain ufw-after-logging-forward (1 references)
    target prot opt source destination
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

    Chain ufw-after-logging-input (1 references)
    target prot opt source destination
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

    Chain ufw-after-logging-output (1 references)
    target prot opt source destination

    Chain ufw-after-output (1 references)
    target prot opt source destination

    Chain ufw-before-forward (1 references)
    target prot opt source destination
    ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 3
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 4
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 11
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 12
    ACCEPT icmp -- [anywhere]/0 [anywhere]/0 icmptype 8
    ACCEPT icmp -- ***.***.***.*** [anywhere]/0 icmptype 0 state RELATED,ESTABLISHED
    ACCEPT icmp -- ***.***.***.*** [anywhere]/0 icmptype 0 state RELATED,ESTABLISHED
    ACCEPT icmp -- ***.***.***.*** [anywhere]/0 icmptype 0 state RELATED,ESTABLISHED
    ufw-user-forward all -- [anywhere]/0 [anywhere]/0

    Chain ufw-before-input (1 references)
    target prot opt source destination
    ACCEPT all -- [anywhere]/0 [anywhere]/0
    ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED
    ufw-logging-deny all -- [anywhere]/0 [anywhere]/0 ctstate INVALID
    ......................................................
    ACCEPT icmp -- [anywhere]/0 ***.***.***.*** icmptype 8 state NEW,RELATED,ESTABLISHED
    ...........................................

    ACCEPT icmp -- [anywhere]/0 ***.***.***.*** icmptype 8 state NEW,RELATED,ESTABLISHED
    ACCEPT icmp -- [anywhere]/0 ***.***.***.*** icmptype 8 state NEW,RELATED,ESTABLISHED
    DROP icmp -- [anywhere]/0 [anywhere]/0 icmptype 8
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp spt:67 dpt:68
    ufw-not-local all -- [anywhere]/0 [anywhere]/0
    ACCEPT udp -- [anywhere]/0 ***.***.***.*** udp dpt:5353
    ACCEPT udp -- [anywhere]/0 ***.***.***.*** udp dpt:1900
    ufw-user-input all -- [anywhere]/0 [anywhere]/0

    Chain ufw-before-output (1 references)
    target prot opt source destination
    ACCEPT all -- [anywhere]/0 [anywhere]/0
    ACCEPT all -- [anywhere]/0 [anywhere]/0 ctstate RELATED,ESTABLISHED
    ufw-user-output all -- [anywhere]/0 [anywhere]/0

    Chain ufw-logging-allow (0 references)
    target prot opt source destination
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "

    Chain ufw-logging-deny (2 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0 ctstate INVALID limit: avg 3/min burst 10
    LOG all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "

    Chain ufw-not-local (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0 ADDRTYPE match dst-type LOCAL
    RETURN all -- [anywhere]/0 [anywhere]/0 ADDRTYPE match dst-type MULTICAST
    RETURN all -- [anywhere]/0 [anywhere]/0 ADDRTYPE match dst-type BROADCAST
    ufw-logging-deny all -- [anywhere]/0 [anywhere]/0 limit: avg 3/min burst 10
    DROP all -- [anywhere]/0 [anywhere]/0
    ...........................
    Chain ufw-user-forward (1 references)
    target prot opt source destination
    Chain ufw-user-input (1 references)
    target prot opt source destination
    here]/0 [anywhere]/0 multiport dports 587,993,995,998,999
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:123
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:3306
    ...................................................
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:465
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:21
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:21
    ACCEPT tcp -- [anywhere]/0 [anywhere]/0 tcp dpt:20
    ACCEPT udp -- [anywhere]/0 [anywhere]/0 udp dpt:20
    ....................................
    ..............................................
     
  11. virk6

    virk6 New Member HowtoForge Supporter


    Hello Mr Taleman,
    Here is the result of the commands ..
    https://www.howtoforge.com/community/threads/please-read-before-posting.58408/


    Here is the part result of the command

    cat htf_report.txt | more


    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.1.14p1


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.3.3-1+0~20190307202245.32+stretch~1.gbp32ebb2

    ##### PORT CHECK #####

    [WARN] Port 22 (SSH server) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Unknown process (nginx:) (PID 1248)
    [INFO] I found the following mail server(s):
    Postfix (PID 1168)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 880)
    [INFO] I found the following imap server(s):
    Dovecot (PID 880)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 1497)

    ##### LISTENING PORTS #####
    (seulement ()
    Adresse (distante)
    [anywhere]:5742 (1082/portsentry)
    [anywhere]:110 (880/dovecot)
    [anywhere]:111 (1082/portsentry)
    [anywhere]:79 (1082/portsentry)
    [anywhere]:15 (1082/portsentry)
    [anywhere]:143 (880/dovecot)
    [anywhere]:80 (1248/nginx:)
    [anywhere]:8080 (1248/nginx:)
    [anywhere]:54320 (1082/portsentry)
    [anywhere]:2000 (1082/portsentry)
    [anywhere]:8081 (1248/nginx:)
    [anywhere]:465 (1168/master)
    [anywhere]:27665 (1082/portsentry)
    [anywhere]:1524 (1082/portsentry)
    [anywhere]:21 (1497/pure-ftpd)
    ***.***.***.***:53 (751/named)
    [localhost]:53 (751/named)
    [anywhere]:119 (1082/portsentry)
    [anywhere]:1080 (1082/portsentry)
    [anywhere]:25 (1168/master)
    [anywhere]:12345 (1082/portsentry)
    [localhost]:953 (751/named)
    [anywhere]:12346 (1082/portsentry)
    ***.***.***.***:443 (1248/nginx:)
    [anywhere]:635 (1082/portsentry)
    [anywhere]:49724 (1082/portsentry)
    [anywhere]:540 (1082/portsentry)
     
  12. virk6

    virk6 New Member HowtoForge Supporter

    Hello,
    I'm back with the debug test results and here are the summaries:
    My linux distribution is debian 9.9
    web server is nginx
    ISPConfig 3.1.14 Released
    Postfix and dovecot working normal

    All services are online without problems
    Web server: On line
    SMTP server: On line
    POP3 server: On line
    IMAP server: On line
    DNS server: On line
    MySQL Server: On line

    I comment out the server.sh cron job:
    # * * * * * /usr/local/ispconfig/server/server.sh> / dev / null >> /var/log/ispconfig/cron.log
    and I launched the command
    /usr/local/ispconfig/server/server.sh without any errors ..

    By the way I launched the order
    dig @localhost mydomain.tld and everything is Ok.
    In log files (nginx, ispconfig, mysql and Postfix mail ...) nothing to report.
    Test your System with the ISPConfig test script for common issues


    wget -q -O htf-common-issues.php "http://gitplace.net/pixcept/ispconfig-tools/raw/stable/htf-common-issues.php" && php -q htf-common-issues.php

    Une partie des r├ęsultats du test donne ceci ..
    cat htf_report.txt | more

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.1.14p1


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.3.3-1+0~xxxxxxxxx.32+stretch~1.gbp32ebb2

    ##### PORT CHECK #####

    [WARN] Port 22 (SSH server) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Unknown process (nginx:) (PID 60223)
    [INFO] I found the following mail server(s):
    Postfix (PID 1168)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 880)
    [INFO] I found the following imap server(s):
    Dovecot (PID 880)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 1497)

    ...............................
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    See #9. If FTP is shown or not depends on the file server checkbox under System > Server services only. If it's checked, then FTP is shown, if it's unchecked, FTP is not shown in the services overview.
     
  14. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You seem to have replaced the default PHP version of 7.0 with 7.3. This is not a supported configuration on Debian 9.
    https://www.howtoforge.com/tutorial...bian-default-php-back-to-the-original-version
     
  15. virk6

    virk6 New Member HowtoForge Supporter

    To you all my apologies ..
    I found the origin of my problems.
    In fact, I have mistakenly disabled the ispconfig server-level file server -> System-> Services-> file server.
    The problem is considered definitely settled.
    Thanks you to all of you.
     
    ahrasis likes this.
  16. virk6

    virk6 New Member HowtoForge Supporter


    You are right Till.
    The Problem is solved.
    Thanks.
     
  17. virk6

    virk6 New Member HowtoForge Supporter

    Mr. Taleman, I'm reminded of this link that you had advised me to solve my problems of multiple versions of php. Thanks a lot for your help.
    The problem is definitely fixed.
    To you all my apologies ..
     
  18. ahrasis

    ahrasis Well-Known Member

    I thought I already clarified it in my earliest replies. :rolleyes:

    Anyway, congrats in finding the right fault and solving it. :D
     
  19. virk6

    virk6 New Member HowtoForge Supporter

    Thanks you very munch ..
     

Share This Page