开发者

No error output after installing all LAMP components

开发者 https://www.devze.com 2023-01-18 03:48 出处:网络
Today I installed LAMP on my Ubuntu 10.04. I created separate VH file for my site. When I started playing with code I开发者_StackOverflow noticed, that there are no errors. Some times code didn\'t app

Today I installed LAMP on my Ubuntu 10.04.

I created separate VH file for my site. When I started playing with code I开发者_StackOverflow noticed, that there are no errors. Some times code didn't appear, but no error message. I got curious and started to search, what might cause such behaviour. After 2h of searching I still don't have answear.

Can anyone help? If there is need for more info I will be glad to add.

I hope I asked question at right place. I have some doubts, that it should be at serverfault.


Try enabling display_errors in your PHP scripts:

ini_set('display_errors', true);

In any case, any actual errors should be logged to your error log file, which in my Ubuntu install sits in /var/log/apache2/error.log, or the error log files defined by your virtual hosts configuration in Apache. If setting display_errors to true solves your issue, you can change it in php.ini, which you will find as specified by phpinfo().

More about this and the differences between error_reporting, display_errors and log_errors can be found at the appropriate php.net man page.


You need to edit php.ini, specifically display_errors, also, you might want to try php's function error_reporting.

0

精彩评论

暂无评论...
验证码 换一张
取 消