Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I followed the setup here: Where is the PHP error log

When I look into /var/log/php_errors.log, I could see some PHP errors.

PHP Warning:  file_get_contents(/var/www/...): failed to open stream: No such file or directory in ...

But what I'm trying to see is the error when I removed a semicolon from a statement. That error above has no relation to file from where I removed the semicolon so we can just ignore that.

When I access the page with the removed semicolon, I get

The website encountered an error while retrieving https://myapp/download/decode/testfile. It may be down for maintenance or configured incorrectly.

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

But no logs in /var/log/php_errors.log.
How do I see the error that usually says which line and which file the process failed?

The real reason for trying to see the error is because I have a very huge loop, that throws the HTTP 500 error and I can't see the exact error. I'm just simulation with a removed semicolon to test things out.

Other settings:
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = On

On Ubuntu 10.04.4 LTS

Update
Ok, I managed to get the error message to display.

Parse error: syntax error, unexpected T_IF in ...

However, it's still not logged. It wasn't displaying previously because Cakephp's debug level was at 0. Setting it to 2 displays the message, but no logs.

Update 2
I believe it is a Cakephp specific problem and limitation.
Closing case here.

share|improve this question

closed as too localized by hexafraction, Jorge Castro, Mik, Ringtail, Amith KK Oct 26 '12 at 6:26

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Could you please create an answer for this question and then accept it? Otherwise this will keep popping up on the frontpage. –  Rinzwind Oct 22 '12 at 6:59

Browse other questions tagged or ask your own question.