CodeIgniter Forums
CI4 not loading after fresh install — blank page on localhost Post: - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: CI4 not loading after fresh install — blank page on localhost Post: (/showthread.php?tid=92823)



CI4 not loading after fresh install — blank page on localhost Post: - sultanhassann6 - 04-30-2025

I’m trying to set up CodeIgniter 4 on my local dev machine (Ubuntu 22.04, PHP 8.1) for a side project — a fresher job board I’m working on: https://247uaefreshers.com.
I followed the official CI4 install guide using Composer, no issues during setup. But when I navigate to
Code:
localhost:8080
, I just get a blank white page — no error, no logs, nothing in the browser console either.
I’ve tried:
• Running
Code:
php spark serve
(starts fine)
• Double-checked
Code:
.env
settings
• Permissions on writable/ seem okay
• Tried adding basic echo in
Code:
app/Controllers/Home.php
— still blank
Anyone seen this behavior before? Wondering if I missed something basic. Appreciate any tips ?