dokuwiki-addsite: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/dokuwiki-addsite - from package: dokuwiki

You may install the required package with command apt-get install {package}
Error in other languages:
dokuwiki-addsite: bevel nie gevind nie
dokuwiki-addsite: comandă negăsită
dokuwiki-addsite: comando não encontrado
dokuwiki-addsite: commande introuvable
dokuwiki-addsite: command not found
dokuwiki-addsite: käsku ei ole
dokuwiki-addsite: không tìm thấy lệnh
dokuwiki-addsite: komanda nerasta
dokuwiki-addsite: Kommando nicht gefunden.
dokuwiki-addsite: kommandot finns inte
dokuwiki-addsite: komut yok
dokuwiki-addsite: nie znaleziono polecenia
dokuwiki-addsite: níor aimsíodh an t-ordú
dokuwiki-addsite: no se encontró la orden
dokuwiki-addsite: no s'ha trobat l'ordre
dokuwiki-addsite: opdracht niet gevonden
dokuwiki-addsite: parancs nem található
dokuwiki-addsite: perintah tidak ditemukan
dokuwiki-addsite: príkaz nenájdený
dokuwiki-addsite: příkaz nenalezen
dokuwiki-addsite: команда не найдена
dokuwiki-addsite: командата не е открита
dokuwiki-addsite: 命令找不到
dokuwiki-addsite: コマンドが見つかりません