I’ve been struggling with this for a month maybe, and am unable to find any proper answer by myself on internet.
As part of my courses, I am learning oriented-object php and MVC architecture. But whenever I create a Model object with a try/catch containing a PDO connection to my database, I just land on a white page; no error messages, nada, just a deep white browser page.
The thing is, if I take the exact same files and load them through MAMP on my macbook, everything works fine. And the problem is not necessarily fedora related, as I tried also on Ubuntu and Cinnamon, with the same results.
My httpd.service et mariadb are activated. My databases id’s are corrects, I setted and revised them with mysql_secure_installation.
I thought the issue might be due to SELinux, but even in permissive mode it still doesn’t work. I tried with nginx from a file located in my Desktop, same result. I can load pages with a straight connection to a database, or without database without problems. But it seems that everytime my connection is a bit ‘far’ from my index.php, it doesn’t work.
So I’m about to forget even trying to use linux for local dev and go full docker, but to be honest, it seems to me that I am just missing something basic about Linux and files permissions (I also try a full bunch a owner and permission changes on my /var/www/html folders, without success).
Needless to say I am quite a noob in Linux environment, but I plan to stay here, so hopefully your lights will guide me wisely!