ubuntu14.04 - PHP如何在服务器上开启错误提示
本文介绍了ubuntu14.04 - PHP如何在服务器上开启错误提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
按网上找的方法设置了display_errors
为on,但页面还是没报错,显示是的空白页.
apache2.conf加下面的这个也没用.
php_flag display_errors on
php_value error_reporting 2039
server:ubuntu server 14.04
php:5.5.9
apache:2.4.7
已解决
原因:
display_errors设置是有效的.没提示的原因是出错的代码处使用了@
忽略报错.所以显示的空白页.
解决方案
/etc/php/php.ini
找你你的php.ini文件,搜索里面的 display_errors = on
默认是不开启的
这篇关于ubuntu14.04 - PHP如何在服务器上开启错误提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文