==================================================================== VPandit — Image OCR Diagnostic ==================================================================== Time : 2026-09-01 08:38:26 OS : Linux (Linux) PHP : 8.2.33 [litespeed] php.ini : /opt/alt/php82/etc/php.ini Script dir: /home/caxis/vpanditnew.hostingaipl.xyz ==================================================================== 1. Shell access (needed to run the Tesseract program) ==================================================================== [PASS] shell_exec() is available. ==================================================================== 2. Tesseract program ==================================================================== [FAIL] Tesseract was not found. Install: sudo apt-get install tesseract-ocr tesseract-ocr-hin ==================================================================== 3. OCR languages ==================================================================== Skipped (Tesseract not available). ==================================================================== 4. Live OCR self-test ==================================================================== Skipped (needs Tesseract + GD extension). GD present: yes ==================================================================== 5. Upload & runtime limits ← the usual cause of "Network Error" on photos ==================================================================== file_uploads : On upload_max_filesize : 2M (2097152 bytes) post_max_size : 8M (8388608 bytes) max_execution_time : 30 s max_input_time : 60 s memory_limit : 128M app validation cap : 20 MB (rows.file max:20480) [FAIL] Effective upload cap is only 2 MB — a phone photo (often 3–12 MB) is rejected before Laravel replies, which the browser shows as "Network Error". Fix in php.ini: upload_max_filesize = 20M and post_max_size = 21M then restart Apache. [WARN] max_execution_time is 30 s. OCR of a large photo can take longer and abort mid-request (→ "Network Error"). Fix in php.ini: max_execution_time = 120 (and max_input_time = 120), restart Apache. [WARN] memory_limit is 128M. Large images can exhaust it. Suggest 256M or more. ==================================================================== 6. Supporting extensions & temp dir ==================================================================== [PASS] PHP ext 'gd' loaded (image generation). [PASS] PHP ext 'fileinfo' loaded (upload MIME detection). [PASS] PHP ext 'zip' loaded (DOCX import). [PASS] Temp dir is writable: /tmp smalot/pdfparser not detected here (only matters for PDF import). ==================================================================== SUMMARY ==================================================================== PASS: 5 WARN: 2 FAIL: 2 ❗ Address the [FAIL] items above (top priority), then re-run this script. Reminder: TXT, CSV, PDF and DOCX imports need NO Tesseract at all. Delete this file when finished.