I upgraded the server from Debian 7 to Debian 8. As a result I have multiple issues with Apache 2.4.10:
In my virtual hosts I had the following statements e.g.
CustomLog "|usr/sbin/rotatelogs -l ${APACHE_LOG_DIR}/02120/%Y%m%d_02120.access.log 86400" combined
This worked like charm on Apache 2.2. Now after having upgraded to Apache 2.4 I was not able to start Apache 2.4. I soon found out that rotatelogs is now at "/usr/bin/rotatelogs". Thus I changed the line to
CustomLog "|/usr/bin/rotatelogs -l ${APACHE_LOG_DIR}/02180/%Y%m%d_02180.access.log 86400" combined
Note I also added the slash at the beginning. Voilà, Apache 2.4 restarted and now puts the logs to the defined location and does the logging.
Now disaster starts to unfold: At the same time I get for every hit to the server the following error message in the main apache 2 error log file:
AH00106: piped log program 'usr/bin/rotatelogs -l /var/log/apache2/02180/%Y%m%d_02180.access.log 86400' failed unexpectedly
AH00106: piped log program 'usr/bin/rotatelogs -l /var/log/apache2/%Y%W_stifterdienst.access.log 604800' failed unexpectedly
AH00106: piped log program 'usr/bin/rotatelogs -l /var/log/apache2/%Y%W_stifterdienst.access.log 604800' failed unexpectedly
[core:error] [pid 5178] (2)No such file or directory: AH00088: exec of 'usr/bin/rotatelogs' failed
[core:error] [pid 5177] (2)No such file or directory: AH00088: exec of 'usr/bin/rotatelogs' failed
[core:error] [pid 5176] (2)No such file or directory: AH00088: exec of 'usr/bin/rotatelogs' failed
I have not idea where to continue from here. I am sorry for asking this question but I am lost.