Cpanel + awstats: problems with permissions

#1
Hi,

I noticed that after installing Litespeed, Awstats stops working on Cpanel servers.

This happens because it can't write on logs anymore. After changing the permissions to nobody:username, it works normally.

My question is: how do i fix this permanently and for all users? Any script that i should use?

Thanks.
 
Last edited:

webizen

Well-Known Member
#3
Hi,

I noticed that after installing Litespeed, Awstats stops working on Cpanel servers.

This happens because it can't write on logs anymore. After changing the permissions to nobody:username, it works normally.

My question is: how do i fix this permanently and for all users? Any script that i should use?

Thanks.
how about change logs owership to username.nobody and permission being group writeable?
 
#4
The problem is that at some point it changes back the ownership and permissions. This seems to happen only when running Litespeed. With Apache, the permissions/ownership are not touched at all.
 

muiruri

Well-Known Member
#5
We're having the same problem also, awstats stopped working this past weekend on Saturday the 21st.

After cpanel tech-support checked also found at; /usr/local/apache/domlogs/

owner permissions had been changed by Litespeed to nobody.nobody

When we switch to Apache, they wrote a script to restore permissions to root.username

But when we switch back to Litespeed, in less than 16 secs, it changes permissions again back to nobody.nobody and that makes the logs files not writable.

For some strange reason, we have Litespeed on other servers and this problem is not there, plus on this server all has been fine with Litepseed for last 2 years and no such issue, therefore puzzle now is what happened to Litespeed this past weekend to start changing permissions to nobody.nobody for logs files at; /usr/local/apache/domlogs

Any ideas? Any help?
 
Top