Changes

From Amahi Wiki
Jump to: navigation, search
867 bytes added ,  01:06, 9 August 2016
Created page with "= Add Log Files = Additional logs can be added to the [https://www.amahi.org/apps/server-logs-viewer Server Logs Viewer] application. In order to do so, they must be readable..."
= Add Log Files =
Additional logs can be added to the [https://www.amahi.org/apps/server-logs-viewer Server Logs Viewer] application. In order to do so, they must be readable by Apache and the following command executed as root user (or <code>sudo</code>):
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 <code>sudo</code>):
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/');

[[category:apps]]
12,424

edits