Results 1 to 2 of 2

Thread: How to allow webalizer stats to be viewable through the web

  1. #1

    Default How to allow webalizer stats to be viewable through the web

    If a User does not want to login to DirectAdmin each time and he wants to accesses his webstats directly, then a symbolic link can be made to access webalizer through browser as www.domain.com/webstats
    cd /home/username/domains/domain.com/public_html
    ln -s ../stats webstats
    Where username is the name of the user, domain.com is the name of the domain and webstats is the name of the path you want to use through apache.

    ______________
    Best Regards,
    Jahangir ALam.

  2. #2

    Default Apache won't start and there is nothing in the logs.

    Chance are, if apache isn't starting and isn't logging anything, the error_log is full preventing apache from starting. To double check that, run:
    cd /var/log/httpd
    ls -lS | less
    If any file is around 2-3 gig (or more), then chances are, that's the problem.

    The solution is to remove the logs, restart apache, and then implement preventative measures.
    1)
    cd /var/log/httpd/
    echo > error_log
    echo > access_log
    echo > suexec_log
    echo > fpexec_log
    /sbin/service httpd restart ("/usr/local/etc/rc.d httpd restart" for FreeBSD)
    2) Get logrotate to rotate daily
    perl -pi -e 's/weekly/daily/' /etc/logrotate.conf
    perl -pi -e 's/rotate 4/rotate 2/' /etc/logrotate.conf
    If apache still doesn't start, check /var/log/messages and try recompiling apache.

    ______________
    Best Regards,
    Jahangir Alam.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •