Apache Access and Error Logs Are Empty

Creating a bug report/issue

Required Information

  • DietPi version | 8.22.3

  • Distro version | bookworm

  • Kernel version | Linux OrangePi 5.10.160-legacy-rk35xx #1 SMP Mon Aug 28 01:21:24 UTC 2023 aarch64 GNU/Linux

  • Architecture | arm64

  • SBC model | Orange Pi 5 (aarch64)

  • Power supply used | 5V 2A

  • SD card used | 16GB Sandisk

Additional Information (if applicable)

  • Software title | Apache
  • Was the software title installed freshly or updated/migrated? Freshly
  • Can this issue be replicated on a fresh installation of DietPi? Unsure
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. Install any web software. For example, I installed Ampache
  2. Use DSub for Android to try and add Ampache server
  3. Click Test Connection. Will fail due to Dietpi’s lack of Redirect/rewrite rules for Ampache install (separate bug)
    !4. Open up /var/log/apache2/ and cat access.log. Shows empty so I cannot debug my Apache rewrite rules

Expected behaviour

  • Each access to Apache should be logged

Actual behaviour

  • Nothing is being written to the access or error logs.

Extra details

  • APACHE_LOG_DIR is outputting as an empty string.

This is as expected as on default settings, logs are cleared on hourly basis. Furthermore we aim to move as much as possible logs to journalctl. Have a look to our online docs to get more information on possible log settings .Log System Choices - DietPi.com Docs

They’re cleared hourly but even if I check immediately upon making the request, nothing shows up specifically for Apache. Ampache’s logs are working just fine, however so this seems to be Apache-specific.

I guess Access log would need to be enabled first Log Files - Apache HTTP Server Version 2.4