---
name: apache_error_log_feed
description: Daily PHP-warning scanning feed — Apache error_log mirrored to /config/workspace/error.log
metadata: 
  node_type: memory
  type: project
  originSessionId: 941e8096-f9d8-4794-a779-91887ec57031
---

Apache (Ubuntu server, `apache2`) is being configured to mirror its error log to a second location that I can read: `/config/workspace/error.log`. Purpose: scan it (ideally daily) for PHP warnings/notices generated by our projects.

**Format:** standard Apache `error_log` lines, e.g.
`[Wed Jul 15 14:53:51 2026] [php:warn] [pid …] [client IP:port] PHP Warning:  <msg> in <file> on line <N>, referer: <url>`
Levels seen: `[php:warn]`, `[php:notice]`. File paths are prod-absolute under `/var/www/shane.evolutionerp.com.au/evolution/…` — map to repo by stripping that prefix (→ `/config/workspace/evolution/…`). See [[session_link_hostname]] for the host/prefix mapping.

**How to apply:** when asked to scan, group by (file:line, message) and count occurrences — the log is noisy with repeats (same warning fires many times per request). Focus on warnings from our code (`evolution/`, `portal/`, `apps/` per [[workspace_repos]]), not vendor/library noise. Many are PHP 8.x strictness: "Undefined array key", "Trying to access array offset on null", "Undefined variable".

**Note:** file is a mirror written by Apache; treat as read-only/append-only, don't edit it. Config lives on the Ubuntu host, not this docker container.
