apachedex: 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/apachedex - from package: apachedex

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