Difference between revisions of "Server logs viewer"
From Amahi Wiki
(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...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | = Add Log Files = | + | == 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>): | + | 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 (minimum file permissions of <code>-rw-r--r--</code>) 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 | ln -s /path/and/log/filename /var/hda/web-apps/slv/html/log/filename | ||
Line 6: | Line 6: | ||
ln -s /var/log/boot.log /var/hda/web-apps/slv/html/log/boot.log | ln -s /var/log/boot.log /var/hda/web-apps/slv/html/log/boot.log | ||
− | = Change Log File Path = | + | == 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>): | 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 | vi /var/hda/web-apps/slv/html/server-logs-viewer.php |
Latest revision as of 00:36, 10 August 2016
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 (minimum file permissions of -rw-r--r--
) 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/');