I uploaded my project to the web server, Following the security recommendations, I placed the CodeIgniter 4 files in the server's non-public directory:
/home/user/codeigniter
and And in the public directory:
/home/user/public_html
And here is my path:
$pathsPath = FCPATH. '../codeigniter/app/Config/Paths.php';
I placed all files properly like;
|__ public_html (or your domain root folder)
| |assets
| |index.php
| |.htaccess
|
|__ codeigniter
|__ app
|__ system
|__ writable
|__ .env
But i always receive a blank page. Could you help me to handle this problem please
And error.log is:
RITICAL - 2020-10-14 06:12:09 --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
#0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'ini_set(): Head...', '/home/catideko/...', 101, Array)
I have solved the problem. The sourche of problem is about "zlib_output_compression" in my host. It should be "off" position. On cpanel after changing the position as "off" everything go well.