Current time: 05-18-2024, 03:47 AM Hello There, Guest! (LoginRegister)


Post Reply 
how to add installaion the AWStats?
Author Message
homodo Offline
Junior Member
*

Posts: 55
Joined: Sep 2008
Reputation: 0
Post: #1
how to add installaion the AWStats?
ispcp is install,but no install AWStats,now i who add the AWStats?
12-18-2008 09:01 PM
Find all posts by this user Quote this message in a reply
coper Offline
Junior Member
*

Posts: 91
Joined: Nov 2008
Reputation: 0
Post: #2
RE: how to add installaion the AWStats?
If you go to http://www.domain.com/stats nothing happens?

I ask you this because the ispcp setup asks you if you want to enable awstats.
(This post was last modified: 12-20-2008 02:54 AM by coper.)
12-20-2008 02:19 AM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #3
RE: how to add installaion the AWStats?
I originally setup Awstats as Dynamic in the setup, but now it's not working. If I go to http://www.mydomain.com/stats, i get to awstats but it tells me:

Error: Couldn't open config file "awstats.localhost.conf" nor "awstats.conf" after searching in path "/var/www/localhost/cgi-bin,/etc/awstats,/usr/local/etc/awstats,/etc,/etc/opt/awstats": No such file or directory

If I change the url to:

http://www.mydomain.com/stats/?config=mydomain.com

Then it works...

I've tried changing the ProxyPass and ProxyPassReverse lines in ispcp.conf for the domain to add this ?config=mydomain.com to the end, and this still doesnt' work... Only works if I add it to the url in my browser... Sad

Is there some setting I'm missing somewhere? If you know the fix for this, please let me know. I've just moved over several production domains to my system and need to get stats up ASAP.

Thanks,
pGentoo
01-04-2009 10:04 AM
Find all posts by this user Quote this message in a reply
coper Offline
Junior Member
*

Posts: 91
Joined: Nov 2008
Reputation: 0
Post: #4
RE: how to add installaion the AWStats?
Hi there. What ispcp version are you using?
Can you put the content of the /etc/ispcp/apache/01_awstats.conf file?
01-04-2009 05:00 PM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #5
RE: how to add installaion the AWStats?
I'm using a svn copy just after RC7. So basically RC7.

Contents of: /etc/apache/vhosts.d/01_awstats.conf
Code:
Alias /awstatsicons "/var/www/localhost/htdocs/awstats/icon/"

NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^/stats/(.+)/$ http://localhost/awstats/?config=$1 [P]
        RewriteRule ^/stats/(.+)/awstats.pl(.*)$ http://localhost/awstats/$2 [P]
    </IfModule>

    ScriptAlias /awstats "/var/www/localhost/cgi-bin/awstats.pl"

    <Directory /var/www/localhost/cgi-bin>
        AllowOverride none
        Options +ExecCGI
        DirectoryIndex awstats.pl
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

Code:
ls -la /var/www/localhost/cgi-bin/
total 567
drwxr-xr-x 5 root root    232 Jan  3 15:37 .
drwxr-xr-x 7 root root    168 Jan  3 15:39 ..
-rwxr-xr-x 1 root root   5547 Oct 16 22:02 awredir.pl
-rwxr-xr-x 1 root root 558682 Oct 16 22:02 awstats.pl
drwxr-xr-x 5 root root   1616 Oct 16 22:02 lang
drwxr-xr-x 2 root root    440 Oct 16 22:02 lib
drwxr-xr-x 3 root root    664 Oct 16 22:02 plugins
-rw-r--r-- 1 root root    294 Sep  1 12:10 printenv
-rw-r--r-- 1 root root    779 Sep  1 12:10 test-cgi

Code:
ls -l /var/www/localhost/htdocs/awstats/
total 60
drwxr-xr-x 2 root root    88 Oct 16 22:02 classes
drwxr-xr-x 2 root root   120 Oct 16 22:02 css
drwxr-xr-x 9 root root   216 Sep  1 12:10 icon
drwxr-xr-x 2 root root    88 Oct 16 22:02 js


Any help would be much appreciated.

Thanks,
pGentoo
01-05-2009 07:11 AM
Find all posts by this user Quote this message in a reply
coper Offline
Junior Member
*

Posts: 91
Joined: Nov 2008
Reputation: 0
Post: #6
RE: how to add installaion the AWStats?
I don't know if this is the problem but my 01_awstats.conf is a little different than yours. I'm running RC6 maybe because of that or maybe not.
Here is my file:

Code:
Alias /awstatsicons "{AWSTATS_WEB_DIR}/icon/"


NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^/stats/(.+)/$ http://localhost/awstats/?config=$1 [P]
        RewriteRule ^/stats/(.+)/awstats.pl(.*)$ http://localhost/awstats/$1 [P]
        RewriteRule ^/stats/(.*)$ http://localhost/stats/$1/ [R]
    </IfModule>

    ScriptAlias /awstats "{AWSTATS_ENGINE_DIR}/awstats.pl"

    <Directory {AWSTATS_ENGINE_DIR}>
        AllowOverride none
        Options +ExecCGI
        DirectoryIndex awstats.pl
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>
01-05-2009 12:42 PM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #7
RE: how to add installaion the AWStats?
You have $2 on your last line, and I have $1. I tried switching it, and still no go. Sad

If anyone else has any ideas, I would appreciate it.

-
pGentoo
01-05-2009 01:07 PM
Find all posts by this user Quote this message in a reply
coper Offline
Junior Member
*

Posts: 91
Joined: Nov 2008
Reputation: 0
Post: #8
RE: how to add installaion the AWStats?
I also have :

{AWSTATS_WEB_DIR}
{AWSTATS_ENGINE_DIR}

Instead the real path and also have one more line in mod_rewrite.c

RewriteRule ^/stats/(.*)$ http://localhost/stats/$1/ [R]
01-05-2009 05:06 PM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #9
RE: how to add installaion the AWStats?
Ah, that extra line maybe the problem. It didn't come through with your first post though.

As for the {} stuff... You are pasting from ispcp's template file for awstats, where i was pasting the actual apache files after those tokens had been replaced with my server specific values.

I'll give that extra line a try. Thanks!

-
pGentoo
(01-06-2009 06:21 AM)pgentoo Wrote:  Ah, that extra line maybe the problem. It didn't come through with your first post though.

As for the {} stuff... You are pasting from ispcp's template file for awstats, where i was pasting the actual apache files after those tokens had been replaced with my server specific values.

I'll give that extra line a try. Thanks!

-
pGentoo


Thank you! That extra line fixed my issue. It looks like that was missing in the Gentoo build (even in current SVN). I'll log a bug against it.

One issue i'm still having is that my icons don't load in awstats still. Do yours work, or is that broken for everyone?

Thanks,
pGentoo
(This post was last modified: 01-06-2009 06:49 AM by pgentoo.)
01-06-2009 06:21 AM
Find all posts by this user Quote this message in a reply
coper Offline
Junior Member
*

Posts: 91
Joined: Nov 2008
Reputation: 0
Post: #10
RE: how to add installaion the AWStats?
I can see the icons in my awstats.
If you right-click and "save as..." one of the icons. What's the path where should be?
01-07-2009 02:07 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: