Jump to content

script with errors does not do anything


Recommended Posts

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
Share on other sites

  • 1 year later...

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
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.