PHP 7 does not return any errors only server error 500. I set error reporting to development machine but error file/screen is still empty. For example:
echo 'test'; output is test
but ech 'test'; (incorect) returns server error 500
i have tried already:
ini_set('display_errors',true);
and
ini_set('error_reporting', E_ALL);
but nothing happens.
IIS8
PHP7
I had the exact same issue too, upgrading from the IIS supported 5.x to 7.0.9. Here's the trick. By default the php.ini in 7.x does not have logging enabled:
1) Create a blank file with write permissions from IIS (IUSR in Windows 10)
2) Edit your php.ini and remove the semicolon ';' and update the error_log variable:
; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://php.net/error-log
; Example:
error_log = C:\path\to\file\errors.log
; Log errors to syslog (Event Log on Windows).
;error_log = syslog
3) Restart IIS service using IIS manager
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With