nonopolarity
nonopolarity

Reputation: 151206

How to see error info and debug info from Apache server?

Nowadays when running WAMP or MAMP (or the default web server on a Mac), whenever there is error from the CGI file (such as Ruby or PHP), the error message is not shown (and no line number either). Is there a way to run the web server in a shell so that any error message is shown?

The one I am trying to show is on a Mac's built-in web server. (maybe it is a little different in other MAMP or WAMP platforms)

Upvotes: 0

Views: 339

Answers (1)

Peter Tillemans
Peter Tillemans

Reputation: 35341

You can find the errors of CGI scripts in /var/log/apache2/error_log for the default web server on apache.

You can view realtime results using :

tail -f /var/log/apache2/error_log

Upvotes: 2

Related Questions