cgi_to_db: 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 CentOS possible default full paths are:

/usr/bin/cgi_to_db - from package: perl-Fsdb

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