[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Question on Apache log.
- From: Mike Burger <mburger compucomis net>
- To: <guinness-list redhat com>
- Subject: Re: Question on Apache log.
- Date: Thu, 8 Mar 2001 07:03:14 -0500 (EST)
Stop apache, remove the logs, again, and simply restart apache. Apache
will create its own log files...you don't need to "touch" them first.
By simply "touch"ing the files, you wind up with files that are not owned
by the right user and don't have the correct permissions for apache to log
to them.
On Thu, 8 Mar 2001, linux wrote:
> Hello everyone!
>
> I am in trouble now!I need some help.
> We run a redhat 6.0+apache 1.3.9+mysql system as a webaite.
> My disk space is not enough,so I clear all the apache logs,and
> restart named,mysqld,httpd,but apache will no longer write to this
> log files,what is wrong?
> I do as follow:
> rm /usr/local/apache/logs/*
> //I forgot to stop httpd in advance!!!!!
> touch /usr/local/apache/logs/mb.mmc.com-error_log£»
> touch /usr/local/apache/logs/mb.mmc.com-access_log£»
> touch /usr/local/apache/logs/qzx.mmc.cn-error_log£»
> touch /usr/local/apache/logs/qzx.mmc.cn-access_log;
> touch /usr/local/apache/logs/dw.mmc.com-error_log£»
> ......
> [root@ppp /root]#ls -l
> /usr/local/apache/logs/mb.mmc.com-error_log
> --rw-r--r-- 1 root root 0 Mar 7 17:57
> ......
>
> [root@ppp /root]/etc/rc.d/init.d/named stop;
> [root@ppp /root]/etc/rc.d/init.d/named start;
> [root@ppp /root]/etc/rc.d/init.d/mysqld stop;
> [root@ppp /root]/etc/rc.d/init.d/mysqld start;
> [root@ppp /root]/etc/rc.d/init.d/httpd restart;
> ************************************************
> //after one day
> [root@ppp /root]ls -l /usr/local/apache/logs/*
> /usr/local/apache/logs/mb.mmc.com-error_log£»
> -rw-r--r-- 1 root root 0 Mar 7 17:57
> /usr/local/apache/logs/mb.mmc.com-access_log£»
> -rw-r--r-- 1 root root 0 Mar 7 17:57
> /usr/local/apache/logs/qzx.mmc.cn-error_log£»
> -rw-r--r-- 1 root root 0 Mar 7 17:57
> /usr/local/apache/logs/qzx.mmc.cn-access_log;
> ......
>
> all the log files size is still 0 bit,and the apache is runing stable!
> what is wrong?How can I recover it?
> Any suggestion will be appreciated!
> thanks in advance!
>
>
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]