# Apache Access and Error Logs Are Empty

**URL:** <https://dietpi.com/forum/t/apache-access-and-error-logs-are-empty/18139>\
**Category:** Troubleshooting\
**Tags:** services\
**Created:** [16 October 2023 20:18 UTC](https://dietpi.com/forum/t/apache-access-and-error-logs-are-empty/18139 "2023-10-16T20:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AudioMocha](https://dietpi.com/forum/user_avatar/dietpi.com/audiomocha/32/4786_2.png) [@AudioMocha](https://dietpi.com/forum/u/AudioMocha)\
**Post date:** [16 October 2023 20:18 UTC](https://dietpi.com/forum/t/apache-access-and-error-logs-are-empty/18139/1 "2023-10-16T20:18:14Z")

</div>

### 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.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [16 October 2023 20:48 UTC](https://dietpi.com/forum/t/apache-access-and-error-logs-are-empty/18139/2 "2023-10-16T20:48:43Z")

</div>

> [@AudioMocha](#):
>
> Open up /var/log/apache2/ and cat access.log. Shows empty so I cannot debug my Apache rewrite rules

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](https://dietpi.com/docs/software/log_system/)

---

<div class="post-metadata">

**Author:** ![AudioMocha](https://dietpi.com/forum/user_avatar/dietpi.com/audiomocha/32/4786_2.png) [@AudioMocha](https://dietpi.com/forum/u/AudioMocha)\
**Post date:** [16 October 2023 20:53 UTC](https://dietpi.com/forum/t/apache-access-and-error-logs-are-empty/18139/3 "2023-10-16T20:53:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [17 October 2023 09:16 UTC](https://dietpi.com/forum/t/apache-access-and-error-logs-are-empty/18139/4 "2023-10-17T09:16:47Z")

</div>

I guess Access log would need to be enabled first [Log Files - Apache HTTP Server Version 2.4](https://httpd.apache.org/docs/2.4/logs.html#accesslog)
