Website Setup & Info

ID #1043

How do I view any errors on my site?

At GeekISP, we do our best to provide an error log for every domain.  Unfortunately the mass virtual hosting system we use doesn't allow us to do that with 100% confidence that every log message will be delivered accurately.  As a result, there are 2 places to look for error logs for every domain:

1) Your ~/error_logs/mydomain.com file.  For PHP users, this file should contain all your errors.

2) The common, system-wide error log located at /var/www/logs/vhost-errors.log.

The best way to watch these files is via the 'multitail' tool, like so:

$ multitail ~/error_logs/mydomain.com /var/www/logs/vhost-errors.log

Alternatively, if you're using PHP, you can turn on the display_errors variable using a .user.ini file. Simply put the following line a .user.ini file in your webspace:

display_errors = 1

Then you'll be able to see errors in your browser. It is not recommended that you leave this enabled for your production site.

Tags: -

Related entries:

Last update: 2011-10-05 11:17
Author: Dave Steinberg
Revision: 1.2

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 5 out of 5 (1 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry