Skip to content

Commit

Permalink
move apache2 instance error log to /var/log/emoncms, rotate emoncms l…
Browse files Browse the repository at this point in the history
…ogs to emoncms folder
  • Loading branch information
TrystanLea committed Jun 4, 2019
1 parent 6534c6b commit 3f8865f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions defaults/apache2/emoncms.conf
Expand Up @@ -4,9 +4,9 @@
DocumentRoot /var/www/emoncms

# Virtual Host specific error log
ErrorLog ${APACHE_LOG_DIR}/apache2-emoncms.log
ErrorLog /var/log/emoncms/apache2-error.log
# Access log disabled
# CustomLog ${APACHE_LOG_DIR}/emoncms-access.log combined
# CustomLog /var/log/emoncms/apache2-access.log combined

This comment has been minimized.

Copy link
@borpin

borpin Jun 4, 2019

Contributor

Did you mean to edit a line that is commented out?

This comment has been minimized.

Copy link
@TrystanLea

TrystanLea Jun 4, 2019

Member

yes, thanks, its there for those that want to enable


<Directory /var/www/emoncms>
Options FollowSymLinks
Expand Down
2 changes: 1 addition & 1 deletion defaults/apache2/emonsd.conf
Expand Up @@ -2,4 +2,4 @@
ServerName localhost

# Default apache2 error log
ErrorLog ${APACHE_LOG_DIR}/apache2.log
ErrorLog ${APACHE_LOG_DIR}/apache2-error.log
3 changes: 2 additions & 1 deletion defaults/etc/logrotate.d/emoncms
@@ -1,3 +1,4 @@
/var/log/emoncms/*.log {

olddir /var/log.old/emoncms
createolddir 775 root root
}

0 comments on commit 3f8865f

Please sign in to comment.