I cannot update the stats for several domains in my server.
When I execute /scripts/runweblogs user I get this error:
Log checker loaded ok..
==> Loading Config (cpanellogd) .... Done
Urchin webserver is not running
Urchin scheduler is not running
1
==> cpaneld(logger) 8.0 Starting (11 processor system).....
==> WARNING: configured processor count does not match
==> actual processor count (1)! Running stats programs
==> on this system may cause excessive load!
==> You should set extracpus=0 in /var/cpanel/cpanel.config
==> Shared RRDTOOL support enabled
Processing user...
Run Logs user,domain.com,3145728000,
LANGUAGE: english /usr/local/cpanel/lang/.english
Processing exim stats for user.......Done
LANGUAGE: english /usr/local/cpanel/lang/.english
WEBLANG english
Archive Status: 0
Record error: -1 is not the same as the profile is -2
About to fork() [ALL DOMAINS: ]
Webalizer V2.01-10 (Linux 2.4.21-20.EL) English
Error: Can't open log file /usr/local/apache/domlogs/domain.com
Update for config "/home/user/tmp/awstats/awstats.domain.com.conf"
With data in log file "/usr/local/apache/domlogs/domain.com"...
Warning: HostAliases parameter is not defined, awstats choose "domain.com localhost 127.0.0.1".
Error: Couldn't open server log file "/usr/local/apache/domlogs/domain.com" : Permission denied
Setup ('/home/user/tmp/awstats/awstats.domain.com.conf' file, web server or permissions) may be wrong.Check config file, permissions and AWStats documentation (in 'docs' directory).
Webalizer V2.01-10 (Linux 2.4.21-20.EL) English
Error: Can't open log file /usr/local/apache/domlogs/ftp.domain.com-ftp_log
Complete
In /usr/local/apache/domlogs I have the correct premissons:
-rw-r----- 1 root user 3696 Mar 4 14:35 domain.com
-rwxr-xr-x 1 root root 362 Mar 4 14:35 domain.com-bytes_log*
-rwxr-xr-x 1 root root 2 Mar 4 14:32 domain.com-bytes_log.offset*
When I check the permissons in /home/user/ I see the directory /home/user/tmp has another user as group:
total 36
drwx--x--x 8 user user 4096 Mar 4 14:19 ./
drwx--x--x 100 root root 4096 Mar 4 14:19 ../
drwxr-xr-x 2 user user 4096 Mar 4 12:44 .aw/
-rw------- 1 user user 0 Mar 4 12:37 .contactemail
drwxr-x--- 3 user mail 4096 Mar 4 12:44 etc/
-rw------- 1 user user 9 Mar 4 12:37 .lastlogin
drwxrwx--- 3 user mail 4096 Mar 4 12:43 mail/
drwxr-xr-x 3 user user 4096 Mar 4 12:43 public_ftp/
drwxr-x--- 22 user nobody 4096 Mar 4 12:44 public_html/
drwxrwxrwx 7 user anotheruser 4096 Mar 4 12:44 tmp/
lrwxrwxrwx 1 user user 11 Mar 4 14:19 www -> public_html/
Then I execute: chgrp -R user /home/user/tmp
After ls -l /home/user/ and all is ok the goup has changed.
I then try yo run the logs again (/scripts/runweblogs user) but I still getting the same perror mesage, and If go to /home/user and I do a ls -l I see again the group for the directory tmp is with anotheruser and not for user !!
Do yo have any idea about fix it and specially ron logs without problems for the domain?
Thanks for your help.



LinkBack URL
About LinkBacks
Reply With Quote






