You need to be familiar with connecting to your Synology using SSH and working with Linux commands to proceed.

In DSM 7.1.1-42962 Update 6, Apache logging configuration is done in /usr/local/etc/apache24conf/httpd22.conf
There is an entry for the Error Log but not the Access Log.
You need to add the CustomLog item below:

ErrorLog /run/apache24-error_log
CustomLog /run/apache24-access_log combined
TraceEnable off
LogLevel error

The /run directory has the two ‘files’ apache24-error_log & apache24-access_log, however they are named pipes and not normal files. This means there is another process listening to those pipes. When Apache writes something to the named pipe, the other process will write the information to a physical file in /volume1/@appdata/Apache2.4/log/.

I was unable to determine the process doing the write to /volume1. I had to search the entire Synology for the log filename to find it in /volume1.

The error log file is using log rotation so I assume the access log will as well.

Leave a Reply

Your email address will not be published. Required fields are marked *