From: Dmitry Vodennikov <vod@elecom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: ALM2.4 awstats
Date: Fri, 04 Feb 2005 03:59:56 -0800
Message-ID: <420363BC.40108@elecom.ru> (raw)
In-Reply-To: <200502041931.42612.A.Khlyzov@asf-trade.ru>
Хлызов А.А. пишет:
> В сообщении от 4 Февраль 2005 19:21 Michael Shigorin написал(a):
>
>>On Fri, Feb 04, 2005 at 03:09:23AM -0800, Dmitry Vodennikov wrote:
>>
>>>Имеется свежепоставленный alm2.4, сделано apt-get update, apt-get
>>>upgrade. ------------------------------------------------
>>># ls -ld /var/log/httpd
>>>drwxr-x--- 2 root apache 4096 Feb 3 07:09 /var/log/httpd
>>
>>Так задумано, см. bugzilla по apache.
>>
>>
>>># cat /etc/cron.d/awstats
>>>0 * * * * awstats /usr/share/awstats/tools/awstats_updateall.pl now
>>>-confdir=/etc/awstats
>>>-awstatsprog=/usr/share/awstats/wwwroot/cgi-bin/awstats.pl > /dev/null
>>>------------------------------------------------
>>>Соответственно скрипт не отрабатывает из-за отсутствия прав на
>>>/var/log/httpd. Это только у меня так?
>>
>>Видимо, нет -- если awstats не добавляют в группу apache.
>>Добавьте и повесьте на него багу.
>
>
> На самом деле, apache здесь ни при чем. Cron'овские задачи (IMHO) выполняются
> от рута, у меня стоит в /etc/cron.hourly вызов скрипта
> #!/bin/sh
>
> /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=mail -update -output
>
>>/usr/local/awstats/wwwroot/index.html
>
>
> и оно работает... Хотя
> # ls -ld /var/log/httpd/access_log
> -rw-r--r-- 1 root apache 0 Янв 30
> 04:02 /var/log/httpd/access_log
> # ls -ld /var/log/mail/all
> -rw------- 1 root root 10703513 Фев 4 19:26 /var/log/mail/all
>
> у меня он еще и мыльную статистику собирает...
Так оно конечно работает, но я предпочитаю запускать подобные вещи
из-под рута только в том случае, если по другому решить задачу не
получается.
next prev parent reply other threads:[~2005-02-04 11:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-04 11:09 [Comm] " Dmitry Vodennikov
2005-02-04 11:21 ` [Comm] " Michael Shigorin
2005-02-04 11:31 ` Хлызов А.А.
2005-02-04 11:59 ` Dmitry Vodennikov [this message]
2005-02-04 12:16 ` Хлызов А.А.
2005-02-04 11:54 ` Dmitry Vodennikov
2005-02-04 17:50 ` Michael Shigorin
2005-02-05 5:52 ` Dmitry Vodennikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=420363BC.40108@elecom.ru \
--to=vod@elecom.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git