> For the complete documentation index, see [llms.txt](https://dowithme.gitbook.io/do-with-me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dowithme.gitbook.io/do-with-me/ubuntu-22.04/basic/debugowanie.md).

# Debugowanie

### Debugowanie

#### Sprawdzanie logów

* **Logi Nginx:** `/var/log/nginx/error.log`
* **Logi MariaDB:** `/var/log/mysql/error.log`
* **Logi Apache2:** `/var/log/apache2/error.log`

#### Diagnoza problemów

* Upewnij się, że usługi są uruchomione:

  ```
  sudo systemctl status nginx
  sudo systemctl status mariadb
  sudo systemctl status apache2
  ```
* Sprawdź konfigurację Nginx / Aapche2

  ```
  sudo nginx -t
  sudo apache2ctl configtes
  ```
* Sprawdź dostępne miejsce na dysku:

  ```
  df -h
  ```
