Error with Fresh install pure-ftp-common/mysql

Discussion in 'General' started by sijmenNL, Apr 3, 2014.

  1. sijmenNL

    sijmenNL New Member

    I got this error how to fix this
    Code:
    /etc/init.d/pure-ftpd-mysql restart
    /etc/default/pure-ftpd-common: line 3: $ '\ r': command not found 
    /etc/default/pure-ftpd-common: line 8: $ '\ r': command not found 
    /etc/default/pure-ftpd-common: line 14: $ '\ r': command not found 
    /etc/default/pure-ftpd-common: line 19: $ '\ r': command not found 
    /etc/default/pure-ftpd-common: line 22: $ '\ r': command not found

    and if i restart
    Code:
    /etc/init.d/pure-ftpd-common restart
    
    i get
    Code:
    -bash: / etc / init.d / pure-ftpd-common: File or directory does not exist
    its a fresh install on a dell r300 witch ubuntu 13.04 server i followed this How-To http://www.howtoforge.com/perfect-server-ubuntu-13.04-apache2-bind-dovecot-ispconfig-3
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the conetnt of the file /etc/default/pure-ftpd-common
     
  3. sijmenNL

    sijmenNL New Member

    Code:
    # Configuration for pure-ftpd
    # (this file is sourced by /bin/sh, edit accordingly)
    
    # STANDALONE_OR_INETD
    # valid values are "standalone" and "inetd".
    # Any change here overrides the setting in debconf.
    STANDALONE_OR_INETD=standalone
    
    # VIRTUALCHROOT: 
    # whether to use binary with virtualchroot support
    # valid values are "true" or "false"
    # Any change here overrides the setting in debconf.
    VIRTUALCHROOT=true
    
    # UPLOADSCRIPT: if this is set and the daemon is run in standalone mode,
    # pure-uploadscript will also be run to spawn the program given below
    # for handling uploads. see /usr/share/doc/pure-ftpd/README.gz or
    # pure-uploadscript(8)
    
    # example: UPLOADSCRIPT=/usr/local/sbin/uploadhandler.pl
    UPLOADSCRIPT=
    
    # if set, pure-uploadscript will spawn  running as the
    # given uid and gid
    UPLOADUID=
    UPLOADGID=
    
    i have tried VIRTUALCHROOT=true and VIRTUALCHROOT=false
     
  4. sijmenNL

    sijmenNL New Member

    also i got 1 cron job that is every minute

    Code:
    do apr 3 20:33:01 CEST 2014 PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
    do apr 3 20:34:01 CEST 2014 PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
    do apr 3 20:35:01 CEST 2014 PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Edit the file /etc/php5/cli/conf.d/ming.ini, replace # with ; in line 1.

    Regarding your ftp prolem. The file looks correct. My guess is that you edited the file with a windows editor and that editor added windows instead of linux linebreaks in the file and that breaks pure.ftpd. edit linux config files only with linux editors or editors that save correct linebreaks, do not use a normal windows editor like notepad.

    Correct is: VIRTUALCHROOT=true
     
  6. sijmenNL

    sijmenNL New Member

    the error of ming is gone thanks

    but how to fix the problem of ftp maybe re-install it ?

    i use flashfxp for sftp and edit true the program

    i think i now the error it puts ^M to the end of every rule
     
    Last edited: Apr 3, 2014

Share This Page