I know there is a similar question: How to display errors on laravel 4?
But I can't figure out at all how to enable error displaying. what I've done:
- In php.ini I set "display_errors = On", "error_reporting = E_ALL", "error_log = /var/log/php_errors.log"
- In laravel's config (app.php) - debug mode
- I looked at /app/storage/logs (no logs)
- I looked at php_errors.log (only a simple warning here)
- In virtual host config I specified error.log path but no info here
My code is simple:
public function getTest() {
// phpinfo();
echo $notExistingVar;
die('123');
}
I cant see '123', instead I got 500 error (looked in Chrome development tools)
- I tried multiple times "service apache2 restart" when I changed something
- And I also tried to specify settings by ini_set directly in the code
Seems like I miss something simple, but I only see the WSOD. All the time. Any help is greatly appreciated
update
At least
ini_set('display_errors', '1');
helped. Not in php.ini but in php script file itself