julianb Posted April 1, 2011 Share Posted April 1, 2011 I am running PHP Version "5.3.5-1ubuntu5" on ubuntu natty. my php script does not output any errors - if i make a mistake such as a closing brace } in the wrong place or a missing semicolon, the server responds with http error 500 "The website encountered an error while retrieving http://localhost/index.php. It may be down for maintenance or configured incorrectly." I want it to do the normal error reporting - any idea why i'm not getting any error messages, and what i can do about it? Link to comment https://forums.phpfreaks.com/topic/232435-script-with-errors-does-not-do-anything/ Share on other sites More sharing options...
txmedic03 Posted November 25, 2012 Share Posted November 25, 2012 Set display_errors = On in your php.ini file. This is not recommended for production, but for development it is fine. Alternatively you can do: tail /var/log/apache2/error.log This will show you the last few lines of your error log file (the most recent error messages). Link to comment https://forums.phpfreaks.com/topic/232435-script-with-errors-does-not-do-anything/#findComment-1394920 Share on other sites More sharing options...
Recommended Posts