On Fri, 2005-02-18 at 22:15 +0530, Rahul Sundaram wrote:
On Fri, 18 Feb 2005 11:39:00 -0400, Rodolfo Alcázar <rodolfo.alcazar@xxxxxxxxxxxx> wrote:
Hi all. I accidentally deleted all apache logs (/var/log/httpd/*). This files did not appear even after a couple of daily reboots. How should I create them again?
touch filename
Rahul Sundaram
Does not work, neither syslog restart. What permissions must have /var/log/httpd/?
mine is
drwx------ 2 root root 4.0K Feb 18 12:00 httpd/
(didn't remember changing this!)
Mine are: drwx------ 2 root root 4096 Feb 18 16:49 /var/log/httpd -rw-r--r-- 1 root root 831969 Feb 18 17:02 /var/log/httpd/access_log -rw-r--r-- 1 root root 513620 Feb 18 17:02 /var/log/httpd/agent_log -rw-r--r-- 1 root root 86598 Feb 18 16:48 /var/log/httpd/error_log -rw-r--r-- 1 root root 480296 Feb 18 17:02 /var/log/httpd/referer_log -rw-r--r-- 1 root root 2701843 Feb 18 17:02 /var/log/httpd/rewrite_log -rw-r--r-- 1 root root 0 Mar 23 2004 /var/log/httpd/ssl_access_log
So try:
# cd /var/log/httpd
# touch access_log agent_log error_log referer_log rewrite_log ssl_access_log
# chmod 644 access_log agent_log error_log referer_log rewrite_log ssl_access_log
# service named restart
Paul.