简体   繁体   中英

php is returning `500 Internal Server Error` instead of error reporting

PHP 7 on Ubuntu server 16 is always returning 500 Internal Server Error without error explanation or reporting when there is any error. I tried to use

ini_set('display_errors', 1);
error_reporting(~0);

but still does not work!

for example I removed ; from a working php file and I got 500 Internal Server Error .

I edited php.ini to include

 display_errors = On
 error_reporting= E_ALL

then restarted Apache without any success

Try

ini_set('display_errors', 'On');
error_reporting(E_ALL);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM