Apache logs

Discussion in 'General' started by vuras, Apr 5, 2014.

  1. vuras

    vuras New Member

    Is it possible to do that every user could monitor his apache logs of his websites?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, thats always the case in ispconfig.
     
  3. vuras

    vuras New Member

    Can you tell me how or maybe push me into right direction? I can't find any tutorial or something like that
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The logs are available in the log directory of the website automatically if your server is setup as described in one of our perfect setup guides. See output from my debian perfcet setup test server, website test.int:

    Code:
    cd /var/www/test.int/log/
    [email protected]:/var/www/test.int/log# ls
    20120907-access.log     20120912-access.log.gz  20130807-access.log.gz  20140216-access.log.gz  20140221-access.log  20140313-access.log     access.log  sub
    20120910-access.log.gz  20120916-access.log     20140215-access.log     20140219-access.log     20140312-access.log  20140401-access.log.gz  error.log   webalizer.conf
     
  5. vuras

    vuras New Member

    Thank you, but I think you misunderstood my question because I did not described it well. Is it possible for a user to see his logs in the panel like there is a whole system log at monitor section?
     
  6. vm2014

    vm2014 New Member

    You could sym link the current access log to the password protected stats folder if you wanted just the current access.log file.

    ln -s /var/www/example.com/log/access.log /var/www/example.com/web/stats/access.log

    OR the entire log folder inside of examples.com/stats/log/

    ln -s /var/www/example.com/log/ /var/www/example.com/web/stats/log
     
  7. vuras

    vuras New Member

    I did that but it shows nothing in the stats section, just stats of the web
     
  8. vm2014

    vm2014 New Member

    You would have to view the access.log page directly:

    example.com/stats/access.log

    Or if you sym linked the whole folder, you would want to add an apache directive to a .htaccess file in the logs folder to show the file listings via example.com/stats/logs/

    Options +Indexes
     

Share This Page