Koozali.org: home of the SME Server

can't read Logfiles

Offline newastro

  • 4
  • +0/-0
can't read Logfiles
« 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: can't read Logfiles
« Reply #1 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
« Last Edit: August 04, 2008, 03:13:21 PM by nenonano »

Offline newastro

  • 4
  • +0/-0
Re: can't read Logfiles
« Reply #2 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: can't read Logfiles
« Reply #3 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

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

ciao
Stefano

Offline newastro

  • 4
  • +0/-0
Re: can't read Logfiles
« Reply #4 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


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: can't read Logfiles
« Reply #5 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

Offline newastro

  • 4
  • +0/-0
Re: can't read Logfiles
« Reply #6 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: can't read Logfiles
« Reply #7 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)