apxs: 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/sbin/apxs - from package: httpd-devel

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/apxs - from package: apache2-dev

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