• Resolved Rado

    (@jeriksson)


    Hi,

    I’ve noticed that my apache log keeps outputting

    'groups' is not recognized as an internal or external command, operable program or batch file.

    in the webserver logs.

    I’ve narrowed it down to this plugin, when i disable it the message disappears from my apache log, what could be causing this?

    https://ww.wp.xz.cn/plugins/backupwordpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Rado

    (@jeriksson)

    turns out this was caused by a faulty server configuration.

    plugin works fine.

    I get the same line in the logs
    What was causing it in your case?

    The plugin uses PHP shell_exec if it is allowed to do so. If it is allowed; it then launches a couple of shell commands, one of which “groups” is not a valid windows command (it is a perfectly valid Linux command though).

    The way I got round this was to harden my server by editing php.ini and adding

    disable_functions=shell_exec

    There were other functions to disable here for hardening but for the purposes of this fix I have excluded them as they are unrelated to this issue.

    By doing this, The plugin falls back to another method, doesn’t try to execute invalid commands and doesn’t therefore, dirty up your error.log

    The exact details are security related so have also been excluded form this post, hope this helps

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘'groups' is not recognized as an internal or external command,’ is closed to new replies.