php-config5: 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

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/php-config5 - from package: php5-dev

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