Pure FTPd not running

Discussion in 'Installation/Configuration' started by andreasnrb, Mar 19, 2010.

  1. andreasnrb

    andreasnrb New Member

    First I followed the install instructions here:http://www.ispconfig.org/docs/INSTALL_UBUNTU_8.04.txt
    I skipped myDNS since I don't need that.

    My problem is I can't seem to get pure ftp to run.
    ISPConfig says FTP-server is offline and this:
    Code:
    Reading package lists...
    Building dependency tree...
    Reading state information...
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    Conf pure-ftpd-mysql (1.0.21-11.1ubuntu2 Ubuntu:8.04/hardy)
    netstat -tap
    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 127.0.0.1:10025         *:*                     LISTEN      30297/master
    tcp        0      0 127.0.0.1:mysql         *:*                     LISTEN      30115/mysqld
    tcp        0      0 *:webcache              *:*                     LISTEN      11833/apache2
    tcp        0      0 *:www                   *:*                     LISTEN      11833/apache2
    tcp        0      0 *:tproxy                *:*                     LISTEN      11833/apache2
    tcp        0      0 *:smtp                  *:*                     LISTEN      26572/smtpd
    tcp        0      0 *:https                 *:*                     LISTEN      11833/apache2
    tcp        0      0 127.0.0.1:10024         *:*                     LISTEN      30383/amavisd (mast
    tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      32290/couriertcpd
    tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      32218/couriertcpd
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      1641/sshd
    tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      32257/couriertcpd
    tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      32329/couriertcpd
    tcp6       0    248 server.example.com:ssh 55.114.227.87.stat:5464 ESTABLISHED 1784/0
    
    I've googled and googled but can't seem to find an answer.
    Thx in advance.
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Is this a vserver?
     
  3. andreasnrb

    andreasnrb New Member

    if you by vserver mean VPS then yes.
    Cant use the quota stuff on it, but I dont think lack of quota interferes with the FTP.
    Could also add that ISPConfig says MySQL is not running but its running fine.
    When I followed an instruction for ISPConfig 2 and used ProFTPd the FTP worked but couldn't login into it.
     
    Last edited: Mar 19, 2010
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Then you most likely use a vps based on openvz or virtuozzo, some providers do not have capabilities enabled which causes pure-ftpd not to start. There are 2 options:

    1) enable the capabilities (this has to be run on the host system and not within the vps):

    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
    
    2) Recompile purefpt without capability support:

    http://www.howtoforge.de/howto/pureftpd-ohne-capabilities-unter-debian-lenny-selbst-bauen/

    These instructions are only available in german, but you might be able to follow them.
     
  5. andreasnrb

    andreasnrb New Member

    Yeah they have OpenVZ
    Thanks for solution, I can read german so no problem there.
    Have to say I learn a lot trying to config nix setup.
    Is it required to use Pure or could I use another FTP server instead?
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Only pure-ftpd is supported.
     
  7. andreasnrb

    andreasnrb New Member

    Ok thx.
    Cant get apt-get source to work however. Only got two sources listed in my sources.list file.
    deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe
    deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe

    Which repository do I have to add to get apt-get source pure-ftpd to work?
    [EDIT]
    Nevermind found it =).
     
    Last edited: Mar 19, 2010
  8. andreasnrb

    andreasnrb New Member

    Well seems I can't use that method.
    After fixing all the dependency crap I get
    Code:
    Can't exec "debian/rules": Permission denied at /usr/bin/dpkg-buildpackage line 477.
    dpkg-buildpackage: failure: debian/rules clean failed with unknown exit code -1
    
    when running dpkg-buildpackage -uc -b

    I have done chmod +x debian/rules but denial persists.
     
    Last edited: Mar 19, 2010
  9. andreasnrb

    andreasnrb New Member

    It was a noexec so thats why the permission denied happened.
    The german instructions worked.
    Thx for the help Till.
     

Share This Page