Results 1 to 4 of 4

Thread: Ubuntu 8.04 Webalizer problem

  1. #1
    Join Date
    Jan 2009
    Posts
    36

    Ubuntu 8.04 Webalizer problem

    I have ubuntu 8.04 installation with then apache2 turns.
    Now I to be able keep how many visitors to come has installed webalizer.
    This works very well at but 1 vhost. Now I try establish webalizer for several vhosts.

    Now the problem is as follows:
    You see script standing at the bottom of shell. I have also made these and tidy produced. When he twists now the cronjob transfers the earlier day and only puts the day of yesterday.

    You will understand that not the intention is. He must put already old storing and the following.

    Someone some idea how I webalizer can all traffic-jams read to the end have let ipv each time the last?

    #! /bin/sh

    logdir=/var/log/apache2
    webalizerconf=/etc/webalizer/webalizer.conf
    yesterdaysdate= `/bin/date - d 1 day ago +%m%d%Y `

    cd $ {logdir}
    for directory in *
    do
    if [- d $ {directory}]; then
    /usr/bin/webalizer - c $ {webalizerconf} - n $ {directory} \
    - s $ {directory} - r $ {directory} - q - T - o /var/www/ $ {directory} /web/stats \
    $ {logdir}/$ {directory}/$ {yesterdaysdate} - access-unwieldly
    fi
    done

    exit 0

  2. #2
    Dr. V Guest

    Re: Ubuntu 8.04 Webalizer problem

    A similar problem I a number of years has been suffered encountered. I then manage by the program log rotate. With that several logbestanden are produced, but them are all taken along in the stats of webalizer.

  3. #3
    Join Date
    Jan 2009
    Posts
    66

    Re: Ubuntu 8.04 Webalizer problem

    /titlefix: even Ubuntu put in the title.

    try with logrotate and those cronjob simply can regulate…dont know exact how I got it for , but hoever you have come with vlogger/logrotate.

    The link that you have given produces several logbestanden. Is that at you also this way or 1 file appears

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Ubuntu 8.04 Webalizer problem

    you can also do this way
    code:
    #! /bin/sh

    logdir=/var/log/apache2
    webalizerconf=/etc/webalizer/webalizer.conf
    yesterdaysdate= `/bin/date - d 1 day ago +%m%d%Y `

    cd $ {logdir}
    for directory in *
    do
    if [- d $ {directory}]; then
    /usr/bin/webalizer - c $ {webalizerconf} - n $ {directory} \
    - s $ {directory} - r $ {directory} - q - T - o /var/www/ $ {directory} /web/stats \
    $ {logdir}/$ {directory}/*-access.log
    fi
    done

    exit 0

Similar Threads

  1. Flash problem with Ubuntu 9.04
    By Agustíne in forum Operating Systems
    Replies: 5
    Last Post: 22-12-2009, 09:09 PM
  2. Unrar problem in UBUNTU
    By Joyjeet in forum Operating Systems
    Replies: 3
    Last Post: 23-11-2009, 01:13 PM
  3. Problem with Ubuntu 9.10 beta
    By KuNaLBuntU in forum Operating Systems
    Replies: 3
    Last Post: 15-10-2009, 12:13 PM
  4. Socket problem on Ubuntu
    By Sonic in forum Software Development
    Replies: 3
    Last Post: 11-04-2009, 06:24 PM
  5. Problem while installing Ubuntu
    By chetan5 in forum Operating Systems
    Replies: 2
    Last Post: 20-03-2009, 11:55 AM

Tags for this Thread

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
  •  
Page generated in 1,727,120,365.54314 seconds with 17 queries