Web server logs

From OCF Help

Revision as of 00:23, 3 November 2007 by Sle (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The web server maintains separate log files of all requests, errors, and CGI script errors. These log files are only accessible on login servers and are shared by all OCF users, so they may contain messages that do not pertain to your website.

Access logs

If you would like to see a list of who is visiting your website, check the web server error log file: /opt/httpd/logs/access_log.

To filter the access log to display only entries relating to your website, you can use grep:
grep USERNAME /opt/httpd/logs/access_log
where USERNAME is your login name or virtual host.

Error logs

If you are having trouble with your website, please check the web server error log file: /opt/httpd/logs/error_log. Anything printed to standard error by your web pages will be redirected to the web server log file.

To see error messages in real-time, you can use tail and grep:
tail -f /opt/httpd/logs/error_log | grep USERNAME
where USERNAME is your login name or virtual host. Press Ctrl-C to stop log output.

CGI logs

If you are having trouble with a CGI script, please check the cgiwrap error log file: /opt/httpd/logs/cgiwrap.log.

Please note that anything printed to standard error by your web pages will be redirected to the web server error log.