Skip to content

headquarters/apache-log-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple PHP script that pulls a log file from the Apache logs and formats it for display in a web browser. To set it up on your machine, pass in the Apache log file name to the SimpleLogViewer constructor in index.php. You may need to set permissions on your log file to view it.

Example: sudo chmod 755 /var/log/apache2/error.log

Instead of viewing Apache logs in Terminal on a Mac like this: Screenshot of Mac OS X Terminal showing Apache logs

We can view them in a browser like this: Screenshot of browser on Mac OS X showing Apache logs

  • TODO: add heartbeat AJAX request to update the UI
  • TODO: display all logs from /var/log/apache2/, then user can click to view one

About

A simple PHP script to show Apache logs in the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages