mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
35 lines
822 B
Markdown
Executable File
35 lines
822 B
Markdown
Executable File
# Debugging backend PHP issues
|
|
|
|
## Logs in UI
|
|
|
|

|
|
|
|
You can view recent backend PHP errors directly in the **Maintenance > Logs** section of the UI. This provides quick access to logs without needing terminal access.
|
|
|
|
## Accessing logs directly
|
|
|
|
Sometimes, the UI might not be accessible. In that case, you can access the logs directly inside the container.
|
|
|
|
### Step-by-step:
|
|
|
|
1. **Open a shell into the container:**
|
|
|
|
```bash
|
|
docker exec -it netalertx /bin/sh
|
|
```
|
|
|
|
2. **Check the NGINX error log:**
|
|
|
|
```bash
|
|
cat /var/log/nginx/error.log
|
|
```
|
|
|
|
3. **Check the PHP application error log:**
|
|
|
|
```bash
|
|
cat /tmp/log/app.php_errors.log
|
|
```
|
|
|
|
These logs will help identify syntax issues, fatal errors, or startup problems when the UI fails to load properly.
|
|
|