(2)No such file or directory: AH00104: unable to start piped log program

apache-2.4debian-jessielog-rotation

Well sometimes apparently easy things turn into disaster.

As soon as I add to the VirtualHost:

CustomLog "|usr/sbin/rotatelogs -l ${APACHE_LOG_DIR}/01030/%Y%W_01030.access.log 604800" combined

I get :

[Wed Nov 25 20:08:37.886766 2015] [mpm_prefork:notice] [pid 1381] AH00171: Graceful restart requested, doing restart
(2)No such file or directory: AH00104: unable to start piped log program 'usr/sbin/rotatelogs -l /var/log/apache2/40539/%Y%W_40539.access.log 604800'

[Wed Nov 25 20:08:37.992571 2015] [:emerg] [pid 1381] AH00019: Unable to open logs, exiting

Debian 8, Apache 2.4.10.

There must be something in the water. Seen this issue for 2.4.10 around but apparently with no satisfying answer. Help will be appreciated.

Best Answer

You're missing the first slash after the pipe. |/usr/sbin/rotatelogs