Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: newastro on August 04, 2008, 03:04:06 PM

Title: can't read Logfiles
Post by: newastro on August 04, 2008, 03:04:06 PM
Hi,

I need path to httpd_log file for stat software. I can read it in admin module bud not at the promt. There is an protection so I can¨t chmod the /var/log/httpd/access_log

Can someone help me fix this - please use my email as I am not shure this is a good place for the solutin (security).

Thank's
John
Title: Re: can't read Logfiles
Post by: Stefano on August 04, 2008, 03:11:14 PM
Hi,

I need path to httpd_log file for stat software. I can read it in admin module bud not at the promt. There is an protection so I can¨t chmod the /var/log/httpd/access_log

Can someone help me fix this - please use my email as I am not shure this is a good place for the solutin (security).

Thank's
John

hi

- what stat software are you talking about?
- why do you need to chmod that file?
- why should we answer you directly on your email?

ciao

Stefano
Title: Re: can't read Logfiles
Post by: newastro on August 04, 2008, 03:44:50 PM
Its logaholic software for stats. It is installed ok, but there is no Read access to the /var/log/httpd/acces_log and I can't CHMOD the file for read - some protection software is running on the e-mith install 7.3

I also think it's made for security reasons in the SME 7.3 standard installation.

Regards john
Title: Re: can't read Logfiles
Post by: Stefano on August 04, 2008, 04:01:48 PM
Its logaholic software for stats. It is installed ok, but there is no Read access to the /var/log/httpd/acces_log and I can't CHMOD the file for read - some protection software is running on the e-mith install 7.3

I also think it's made for security reasons in the SME 7.3 standard installation.

Regards john


only root has access to /var/log/httpd directory and no, there's no "protection software" running on sme server
Quote
drwx------   2 root     root         4096 Aug  1 01:12 httpd

strange enough, on sme 6.0.1 the same dir has different permissions:
Quote
drwxr-xr-x    2 root     root         4096 Aug  1 01:12 httpd

awstats, available as a contrib, works flawlessy..
http://wiki.contribs.org/AWStats (http://wiki.contribs.org/AWStats)

BTW, I think this is the wrong forum to talk about your sw..

ciao
Stefano
Title: Re: can't read Logfiles
Post by: newastro on August 04, 2008, 04:11:56 PM
Thanks for fast reply.

It then must be rootkit hunter or other installed moduls. I cant change the logfiles for R as root from promt ;-)

I first tryed the awstat but this modul can find the path for reading the output (on 7.3)

John

Title: Re: can't read Logfiles
Post by: Stefano on August 04, 2008, 04:16:39 PM
nope..

rootkit hunter is a script, and there's no real-time fs control..

HTH
Ciao

Stefano
 p.s. if awstats doesn't work for you, please raise a bug in the bugzilla, thank you
Title: Re: can't read Logfiles
Post by: newastro on August 04, 2008, 09:27:39 PM
Thank's

It was an PHP open_basedir problem, now I have to include /var/log/http/ to have right to.
Can you please help how to do that. If not just thaks for you help so far.

Best wishes
John
Title: Re: can't read Logfiles
Post by: cactus on August 04, 2008, 09:38:45 PM
It was an PHP open_basedir problem, now I have to include /var/log/http/ to have right to.
Can you please help how to do that. If not just thaks for you help so far.
Have a look in the wiki it is there: http://wiki.contribs.org/PHP#Open_basedir_restriction