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

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