OpenSUSE 11.2 and awstats

these are specs:

  • openSUSE 11.2
  • apache 2.2
  • awstats 6.9
  • ISPConfig

the problem is when I try to access www.mysite.com/stats it shows up error 402

When looking for web log files they are in

/home/admispconfig/ispconfig/web/multidoc/edit/web1/log/2010/04/web.log

and checking the log file it seems the “right” format and all for awstats that was upgradedto latest version via install.sh!

but when looking into vhosts_ispconfig.conf file under certain page (www.mysite.com) it says

Alias /stats "/home/admispconfig/ispconfig/web/multidoc/edit/web1/web/awstats"

only log file named awstats.log is zero size and placed automaticaly in web folder where entire site is.

but when looking for this dir it doesn’t exist.
What to do or what to change that this will start working???

TNX all in advance.

Hi
Is there a CustomLog entry in your awstats.conf file?
q

Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 10 days 19:49, 3 users, load average: 0.01, 0.02, 0.01
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

u mean awstats.shared.conf file???

Hi
On my SLES server I have in the /etc/apache2/conf.d/awstats.conf file;


CustomLog /var/log/apache2/awstats.log combined

Then in /etc/awstats/awstats.web.conf I have;


LogFile="/var/log/apache2/access_log"

Maybe run the following command which pipes out to a file and post the
output onto pastebin.com, then quote back the url.


grep -v ^# /etc/awstats/awstats.web.conf | grep -v ^$ > awstats.txt

NOTE: edit out any confidential information first or munge it :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 10 days 20:15, 3 users, load average: 0.15, 0.08, 0.02
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

maybe this sounds crazy but none of those files are present in my system :stuck_out_tongue:
searched awstats.* and only got 1 return and that was awstats.txt

Hi
I’m assuming this is a hosted device running openSUSE? Maybe you
need to ask the hosting service where things are? What about the apache
configs, can you find those?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 (i586) Kernel 2.6.31.12-0.2-desktop
up 1 day 10:47, 2 users, load average: 0.19, 0.17, 0.25
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

All hosting stuff is on my local server.
All other .conf files are there only nothing about awstats.

Was checking multiple forums and thread and could not find any solution to this problem. Tried to remove awstats and reinstalled and reconfigured it but always same result.
Proble is also that my server was till now on windows platform and was learning linux when setting this up. All working faster than b4 but no statistics :frowning:

Hi
OK, so did you just download awstats and install or via an openSUSE
rpm, if not an rpm have a look here and install the openSUSE version
from network:utilities repository;
http://software.opensuse.org/search?baseproject=openSUSE%3A11.2&p=1&q=awstats

Also disable the repository when you have installed it if you use the
1-click.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.2 (i586) Kernel 2.6.31.12-0.2-desktop
up 2 days 10:11, 2 users, load average: 0.20, 0.16, 0.14
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

Well was trying all sort of installers and thing u suggested and no positive results…
Guess I’m just to dumb to figure this out. Guess settings here are way diff than on awstats win platform.

Hi
Well a standard install should put configuration information
in /etc/awstats and /etc/apache2. If it’s outside that area, then
problems could occur.

After a standard install, I just used the noarch rpm from
http://download.opensuse.org/repositories/network:/utilities/


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 1 day 21:52, 2 users, load average: 0.19, 0.43, 0.44
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

Well did all that but still get 404 error.
Checked conf files and are all in folders that should be in.

Only one thing is confusing this is folder where awstats.mysite.conf should be and all it is here is this:
http://psychop.dyndns.org/awstats1.jpg

Should I manualy create those files couse ISPConfig didn’t create them. vhost.d file is linked to “stats” folder:
http://psychop.dyndns.org/awstats2.jpg

Checking the dir that is linked via vhosts.conf is empty. What should I put in this folder or what should I manualy link it to that it will work??
http://psychop.dyndns.org/awstats3.jpg

In win configuration it was diff from here couse didn’t have ISPConfig installed.
these were config files:
apache conf file was like this:
and main awstats config file:
http://psychop.dyndns.org/awstats4.jpg

So all seems to be very similar to linux but some files are missing…

Hi
Your LogFile entry is pointing at the apache access log? Do you have a
conf file in /etc/apache2/conf.d/

The URL your using is http://<your_site>/cgi-bin/awstats.pl?config=web


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 2 days 1:53, 2 users, load average: 1.34, 0.38, 0.27
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53

Pictures I posted were from previous win server and can not find similar settings here on suse. So im guessing some config files are missing. Gonna try to create the manualy and will see how it goes.

Well this is all finished.

Weird but after installing both awstats and webalizer all started working as it should.

So thanks for all and if anyone has same problem justa install both and all will work!