Pure-FTPD Offline VS OpenVZ

Discussion in 'Installation/Configuration' started by NoNamesLeft, Feb 5, 2010.

  1. NoNamesLeft

    NoNamesLeft New Member

    Hey,

    I am inexperienced at compiling software but I can follow instructions pretty well. I am using a VS that uses OpenVZ with Debian 5.0. In the ISPConfig control panel it shows that my FTP server is down.

    Here is my netstat -tap
    Code:
    PID/Program name
    tcp        0      0 *:mysql                 *:*                     LISTEN                                                                                   -
    tcp        0      0 localhost.localdo:spamd *:*                     LISTEN                                                                                   -
    tcp        0      0 *:webmin                *:*                     LISTEN                                                                                   -
    tcp        0      0 *:http-alt              *:*                     LISTEN                                                                                   -
    tcp        0      0 *:www                   *:*                     LISTEN                                                                                   -
    tcp        0      0 host.rars.net:domain    *:*                     LISTEN                                                                                   -
    tcp        0      0 localhost.locald:domain *:*                     LISTEN                                                                                   -
    tcp        0      0 *:ssh                   *:*                     LISTEN                                                                                   -
    tcp        0      0 *:smtp                  *:*                     LISTEN                                                                                   -
    tcp        0      0 *:https                 *:*                     LISTEN                                                                                   -
    tcp        0      0 localhost.localdo:10024 *:*                     LISTEN                                                                                   -
    tcp        0      0 localhost.localdo:10025 *:*                     LISTEN                                                                                   -
    tcp        0      0 localhost.localdo:58593 localhost.localdo:mysql ESTABLISHED                                                                              -
    tcp        0      0 localhost.localdo:46994 localhost.localdo:mysql ESTABLISHED                                                                              -
    tcp        0      0 localhost.localdo:mysql localhost.localdo:46994 ESTABLISHED                                                                              -
    tcp        0      0 localhost.localdo:55702 localhost.locald:domain TIME_WAIT                                                                                -
    tcp        0      0 localhost.localdo:mysql localhost.localdo:58593 ESTABLISHED                                                                              -
    tcp        0      0 localhost.localdo:37631 localhost.localdoma:www TIME_WAIT                                                                                -
    tcp        0    248 host.rars.net:ssh       c-67-170-185-124.:53003 ESTABLISHED                                                                              -
    tcp        0      0 host.rars.net:ssh       c-67-170-185-124.:52040 ESTABLISHED                                                                              -
    tcp6       0      0 [::]:pop3               [::]:*                  LISTEN                                                                                   -
    tcp6       0      0 [::]:imap2              [::]:*                  LISTEN                                                                                   -
    tcp6       0      0 localhost.locald:domain [::]:*                  LISTEN                                                                                   -
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN                                                                                   -
    tcp6       0      0 [::]:imaps              [::]:*                  LISTEN                                                                                   -
    tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN         
    Also here is what happens when I run /etc/init.d/pure-ftpd-mysql restart
    Code:
    host:/home/pure-ftpd-1.0.27# /etc/init.d/pure-ftpd-mysql restart
    Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -p 40110:40210 -u 1000 -O clf:/var/log/pure-ftpd/transfer.log -A -E -b -d -B
    


    Thanks for your help!
     
  2. damir

    damir New Member

    What is the output of:

    ps aux | grep pure-ftpd
     
  3. till

    till Super Moderator

    There are two options two run pure-ftpd on openvz:

    a) run this command (change opnvz ID of course) on the host server:

    Code:
    VPSID=101
    for CAP in CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE
    do
      vzctl set $VPSID --capability ${CAP}:on --save
    done
    
    
    to enable support for capabilities in openvz

    or b) recompile pure-ftpd to run without capabilities.
     
  4. NoNamesLeft

    NoNamesLeft New Member

    Thanks! I figured it out! You rock.
     
    Last edited: Feb 5, 2010

Share This Page