I am currently developing in a machine that is running Ubuntu 16.04 LTS with Apache 2.4.18. I use Google Chrome Version 58.0.3029.81 (64-bit) as browser.
When I type phpinfo();
in my PHP scripts running on localhost, I get this:
PHP Version
7.0.18-1+deb.sury.org~xenial+1
display_errors
On
error_reporting
32767
Both in "local value" and "master value".
The problem is that I cannot see any errors when debugging inside my PHP classes, no matter what I try. I've tried to ini_set
both display_errors
and error_reporting
in the index.php
of my application, but it just does not work anyway, I just keep getting blank pages that have no output that I can examine when viewing the source code.
I have tried to access the apache2 log folder and use tail -f myproject.error.log
, but I only get old errors that have no relevant information for me.
I also tried to try logging the PHP errors with error_logging, but I guess that I do not have set the right permissions for the folder / log itself, because the folder exists but there is no file within the specificied folder.
I am legit going crazy with this problem, because it makes debugging my code a complete nightmare, since I am a beginner in PHP development and it is so frustrating to not be able to see my errors as I try to develop the code.
I created my PHP application following this tutorial https://github.com/PatrickLouys/no-framework-tutorial/. I am using the "Woops" library for error handling.
Any help is appreciated, thanks in advance.