View Full Version : Viewing awstats
bswinnerton
6th August 2007, 22:29
I've successfully installed awstats but now i am having some troubles.
Whenever i try to view the index.php it says 500 internal server error and if i look in my log i am getting
[error] an unknown filter was not added: PHP
can anyone help?
torusturtle
7th August 2007, 09:26
I've successfully installed awstats but now i am having some troubles.
Whenever i try to view the index.php it says 500 internal server error and if i look in my log i am getting
[error] an unknown filter was not added: PHP
can anyone help?
Did you add the php extension to apache configuration file?
Does this problem happen also to other php files on the same domain or just awstat?
till
7th August 2007, 11:37
I've successfully installed awstats but now i am having some troubles.
Whenever i try to view the index.php it says 500 internal server error and if i look in my log i am getting
[error] an unknown filter was not added: PHP
can anyone help?
I guess you looked in the wrong logfile. You must have a look in the error log of the website and not in the global error log to see what caused the 500er error.
bswinnerton
7th August 2007, 15:12
It only happens to awstats. And what error log are you talking about? Where can I find it?
Thanks
TomTom80
7th August 2007, 17:37
I have installed awstats too and if I try get www.domain.com/awstats I am asked for username and password and afterthat I get error 403
in error log is:
[Tue Aug 07 16:08:24 2007] [error] [client 195.47.85.81] client denied by server configuration: /usr/share/awstats/wwwroot/cgi-bin/
I tried change /etc/httpd/conf.d/awstatsreport.conf
line "Allow from 127.0.0.1" to "Allow from All", but it doesn't help
I run it on Fedora and I did perfect setup
Can my anyone help?
TomTom80
7th August 2007, 19:09
After this change
I tried change /etc/httpd/conf.d/awstatsreport.conf
line "Allow from 127.0.0.1" to "Allow from All", but it doesn't help
I can get statistics on http://www.domain.com/awstats/awstats.pl
but on http://www.domain.com/awstats/ a get error 403 and in error log is
attempt to invoke directory as script /usr/share/awstats/wwwroot/cgi-bin
I think that it's mean that I'm forwarded into /home/admispconfig/ispconfig/tools/awstats/wwwroot/cgi-bin/ instead get index.php from /var/www/web10/web/awstats/
Have anyone any idea?
P.S. If I copy files from /awstats into another directory it shows well
Thanks for any help
Tom
jnsc
7th August 2007, 22:38
TomTom80 if you can see the logs with http://www.domain.com/awstats/awstats.pl I think you are not using the AWStats with static pages as described in the "HowTo Install AWStats With Some PlugIns On A Server With ISPConfig" Page located at http://howtoforge.com/awstats_ispconfig. I don't know the other one (dynamic stats) so I can not help you, but you might post your question on this thread http://howtoforge.com/forums/showthread.php?t=8017&highlight=awstats
bswinnerton did you enable php for this website? I know it was kind of stupid that I made a static stats script which requires something dynamic (PHP). But I will work this out for the next version. It was sitting on my todo list for quite some time, but I just didn't found the time yet to do it.
Regards
Jonas
bswinnerton
8th August 2007, 05:11
I'm not sure if i enabled php for the site, do you mean through ispconfig? If so, yes php scripts is checked.
Plus my homepage is in php, so I would believed that it is.
But I cannot get to awstats.pl like everyone else can, I still get the 500 error.
TomTom80
8th August 2007, 08:46
Hi Jonas,
you helped me alot:)
I'm not sure what is reason of my configuration (probably I have selected during instalation), but I have /etc/httpd/conf.d/awstats.conf which overtake control on all /awstats ..... I have renamed this file to awstats.conf.STOP and restart httpd and after this it shows generated files:D
Tom
bswinnerton
10th August 2007, 20:07
Okay so my homepage is in php but i still cannot view mysite.com/awstats. I get a 500 error from ispconfig.
Can someone please help?
jnsc
10th August 2007, 21:31
Please post the content of the error log of your website (/var/www/webX/log/error.log)
bswinnerton
10th August 2007, 21:42
Ah ha.
I was looking at the wrong error log, when you referred me to that one, i was able to fix the problem.
Thanks!
jnsc
10th August 2007, 21:50
Your welcome, but I must give the credits back to Till, because he posted the solution first.
bswinnerton
10th August 2007, 22:23
I know i've seen this brought up before. But how come the bars aren't colored?
jnsc
10th August 2007, 22:40
Strange, maybe I have a bug in my last package, have a look at this thread http://howtoforge.com/forums/showthread.php?t=14499&highlight=awstats
Which distribution do you use?
bswinnerton
15th August 2007, 19:27
The lastest one on your website..
jnsc
15th August 2007, 21:13
I was talking about your Linux distribution. Debain, Ubuntu?
bswinnerton
19th August 2007, 07:21
Oh, i'm sorry. Yes, Ubuntu.
bswinnerton
19th August 2007, 23:39
Okay i figured it out, i changed my apache2.conf to say
Alias /icon "/home/admispconfig/ispconfig/tools/awstats/wwwroot/icon/"
And then realized that didn't do anything so i found out that the bars are actually looking in the root directory /icon, so i just made a link to the awstats folder in admispconfig, and that solved it. Maybe it was my fault, but should it have done that itself?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.