🔧 ZKTeco Server Diagnostic

✅ PHP Version: 8.1.34

📁 Current Dir: /home/cpazknfs/dev.bagbdstore.com
📁 Document Root: /home/cpazknfs/dev.bagbdstore.com

✅ File Write: OK (can write to directory)
✅ .htaccess: EXISTS
✅ mod_rewrite: ENABLED

📋 Log Files Status:
   ✅ zk_device.log: EXISTS (66 bytes, ~1 lines)
   ✅ attendance_punches.log: EXISTS (2610 bytes, ~10 lines)
   ⚪ zk_heartbeat.log: Not created yet (will auto-create when device connects)
   ✅ zk_last_heartbeat.json: EXISTS (86 bytes, ~1 lines)

🔗 URL Routing Test:
   Try these URLs in your browser:
   1. http://dev.bagbdstore.com/               → Dashboard
   2. http://dev.bagbdstore.com/iclock/rawlog   → Raw Logs
   3. http://dev.bagbdstore.com/test.php        → This page

📡 Request Info:
   REQUEST_URI: /test.php
   SCRIPT_NAME: /test.php
   SERVER_SOFTWARE: LiteSpeed

📝 Testing Data Persistence:
   ✅ Successfully wrote test record to attendance_punches.log
   ✅ File size now: 2871 bytes

🕐 Server Time: 2026-11-25 12:21:04 (Asia/Dhaka)
✅ Diagnostic Complete!

→ Go to Dashboard

→ Go to Raw Logs