-
Nếu bị lỗi 404: Sai đường dẫn
-
500 : Code PHP bị sai lúc này bật log lên xem
-
Sử dụng
die('abcd');
trong fileindex.php
-
Sử dụng hàm hiển thị lỗi trong
index.php
:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
- Xem log NGINX
tail -f /var/log/nginx/error.log