error apache 2 error.log

Discussion in 'General' started by claro123, May 12, 2021.

  1. claro123

    claro123 New Member

    Code:
    sh: --: invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
        -ilrsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    sh: --: invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
        -ilrsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    sh: --: invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
        -ilrsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    sh: --: invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
        -ilrsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    sh: --: invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
        -ilrsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    sh: - : invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
        -ilrsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    sh: - : invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
        -ilrsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    sh: - : invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
        -ilrsD or -c command or -O shopt_option        (invocation only)
        -abefhkmnptuvxBCHP or -o option
    sh: - : invalid option
    Usage:    sh [GNU long option] [option] ...
        sh [GNU long option] [option] script-file ...
    GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --pretty-print
        --rcfile
        --restricted
        --verbose
        --version
    Shell options:
    I would like to know why this error is generated in apache in the registry

    upload_2021-5-11_19-45-49.png
     
  2. claro123

    claro123 New Member

    ispconfig is working fine but I want to know what is the cause of this error that generates apache error.log I have it in production ispconfig
     
  3. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Those sh usage errors are in your apache error.log? Maybe you have an unusual /bin/sh that causes errors with a custom logrotate script or such? Make sure it is bash.
     
  4. claro123

    claro123 New Member

    It is in the apache2 error.log location and it generates the aforementioned error, how can I solve this
     
  5. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    What shell is /bin/sh? What os are you running?
     
  6. claro123

    claro123 New Member

    debian 10 Bitvise SSH Client
     

Share This Page