AWStats: update now doesn't work anymore

LennyTheNanny

New member
Joined
May 4, 2007
Messages
4
Hi,

I check my awstats regularly on my site www.LennartsCorinthians.com but when I click on "update now" I get the following error:

Error: Couldn't open server log file "/var/log/httpd/domains/lennartscorinthians.com.log" : Permission denied

Setup ('/etc/awstats/awstats.lennartscorinthians.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

I haven't changed any settings... Can anybody help me?

Thanks in advance,
Lennart
 
Please post an output of:
Code:
ls -la /var/log/httpd/domains/lennartscorinthians.com.log

and:
Code:
ls -la /etc/awstats/awstats.lennartscorinthians.com.conf
 
Thanks for your reply, but sorry, I don't know what you want me to do... Where can I find that information?

Sorry, I'm a newbie...
 
Firstly, login to ssh. Then just copy-paste my commands and push enter :)
 
You'll need to bring this up with your hosting company then; we can't help you with changes only your hosting company can make.

This is a User-Level difficulty; I've moved the thread.

Jeff
 
I have already contacted my hosting company, but they told me they don't know a solution, that's why I ask here on the forum. So nobody can help me then?
 
Your hosting company should support what they install on their servers. AWStats isn't even an official part of DirectAdmin; it's an optional add-one not included with DirectAdmin. Your hosting company has included some code so it'll work with DirectAdmin. They may have followed suggestions found here to do that.

They can come here and look for a solution, or perhaps post questions here. We can't help you because you can't give us the information we need to figure out the problem.

Jeff
 
is it normal that all my files in:
/var/log/httpd/domains/

are owned:grp by root user?

I have the same problem ....

ls -la /etc/awstats/awstats.nivstudio.com.conf
-rw-r--r-- 1 nivstudio nivstudio 54276 May 21 06:20 /etc/awstats/awstats.nivstudio.com.conf


ls -la /var/log/httpd/domains/nivstudio.com.log
-rw-r--r-- 1 root root 100884 May 21 06:24 /var/log/httpd/domains/nivstudio.com.log


Ive reinstall awstats on a new server with the same CentOS version ... I installed it the same way I did before but now I have this problem with the update now

Error: Couldn't open server log file "/var/log/httpd/domains/nivstudio.com.log" : Permission denied

Setup ('/etc/awstats/awstats.nivstudio.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

Thanks
 
Last edited:
The ownership and permissions are correct. I have no idea why AWStats can't read the files because any non-privileged user should be able to read them.

To verify that, shell into your server as admin. Do NOT su to root.

Then:
Code:
tail /var/log/httpd/domains/nivstudio.com.log
and you should be able to see the last lines of the log.

Can you?

Jeff
 
I can't tail as admin, very strange because the permissions on the file:
-rw-r--r-- 1 root root 14793 2007-07-02 03:47 /var/log/httpd/domains/domainname.log
when I do a sudo ... I can tail the file.

Debian 3.1
 
in /public_html/ there is already a folder named "awstats", there are files from an old plugin in there

when i removed the directory, and place a symlink to ../awstats/ (ln -s ../awstats awstats), it works

but how can i do this for all accounts at once?

franky
 
Code:
for u in `ls /usr/local/directadmin/data/users`; do
{
 for d in `cat /usr/local/directadmin/data/users/${u}/domains.list`; do
 {
  ln -sf /home/${u}/domains/${d}/awstats /home/${u}/domains/${d}/public_html/awstats
  chown -h ${u}:${u} /home/${u}/domains/${d}/public_html/awstats
 };
 done;
};
done;
 
thanks

will the ln not have a problem with the existing /awstats folders?

Code:
for u in `ls /usr/local/directadmin/data/users`; do
{
 for d in `cat /usr/local/directadmin/data/users/${u}/domains.list`; do
 {
  ln -sf /home/${u}/domains/${d}/awstats /home/${u}/domains/${d}/public_html/awstats
  chown -h ${u}:${u} /home/${u}/domains/${d}/public_html/awstats
 };
 done;
};
done;
 
i get this with my non working awstats

server:~# ls -la /var/log/httpd/domains/mysite.com.log
-rw-r--r-- 1 root root 23048536822 2008-09-30 02:27 /var/log/httpd/domains/mysite.com.log
server:~# ls -la /etc/awstats/awstats.mysite.com.conf
-rw-r--r-- 1 admin admin 54262 2008-09-28 01:39 /etc/awstats/awstats.mysite.com.conf

edit: also webalzier stopepd working.
 
Last edited:
Back
Top