感谢https://www.cnblogs.com/IT--Loding/p/6106327.html
我的配置环境是 Ubuntu 16.04
该教程可以使用
在apache2.conf中加入两行代码:
php_flag display_errors on
php_value error_reporting 2039
刷新后就可以出现:
Warning: fopen(aa.txt): failed to open stream: No such file or directory in /var/www/html/error1.php on line 3