wsapi.cgi: 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/wsapi.cgi - from package: lua-wsapi

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