Last active
September 27, 2016 11:01
-
-
Save eusonlito/9bdffff5626a95905586c6a105b15491 to your computer and use it in GitHub Desktop.
Goaccess install into Ubuntu Xenial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add goaccess repository | |
echo "deb http://deb.goaccess.io/ xenial main" > /etc/apt/sources.list.d/goaccess.list | |
# Add repository keys | |
gpg --keyserver keyserver.ubuntu.com --recv-key 742483B7B222C443 | |
gpg -a --export 742483B7B222C443 | apt-key add - | |
# Update apt | |
apt-get update | |
# Install goaccess | |
apt-get install -y goaccess | |
# Edit default config | |
vi /etc/goaccess.conf | |
# Install update script | |
echo -e "#!/bin/sh\nzless /var/log/apache2/domain.com_access.log* | goaccess > report.html" > /var/www/html/goaccess.sh | |
# Update permissions | |
chmod 755 /var/www/html/goaccess.sh | |
# Add to cron | |
30 */6 * * * /var/www/html/goaccess.sh > /var/www/html/goaccess.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment