rotatelogs: 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/rotatelogs - from package: httpd

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

On Debian possible default full paths are:

/usr/bin/rotatelogs - from package: apache2-utils

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