Server logs viewer

From Amahi Wiki
Revision as of 01:07, 9 August 2016 by Bigfoot65 (talk | contribs)
Jump to: navigation, search

Add Log Files

Additional logs can be added to the Server Logs Viewer application. In order to do so, they must be readable by Apache and the following command executed as root user (or sudo):

ln -s /path/and/log/filename /var/hda/web-apps/slv/html/log/filename

For example, to add boot.log located in /var/log directory, the command would be:

ln -s /var/log/boot.log /var/hda/web-apps/slv/html/log/boot.log

Change Log File Path

To change the path (line 14) to the log files in the script, which will expose all Apache readable logs in /var/log. To make this change, as root user (or sudo):

vi /var/hda/web-apps/slv/html/server-logs-viewer.php

and change:

define('LOG_PATH','/var/hda/web-apps/slv/html/log/');

to

define('LOG_PATH','/var/log/');