ispCP - Board - Support
how to add installaion the AWStats? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: how to add installaion the AWStats? (/thread-5200.html)

Pages: 1 2


how to add installaion the AWStats? - homodo - 12-18-2008 09:01 PM

ispcp is install,but no install AWStats,now i who add the AWStats?


RE: how to add installaion the AWStats? - coper - 12-20-2008 02:19 AM

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.


RE: how to add installaion the AWStats? - pgentoo - 01-04-2009 10:04 AM

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


RE: how to add installaion the AWStats? - coper - 01-04-2009 05:00 PM

Hi there. What ispcp version are you using?
Can you put the content of the /etc/ispcp/apache/01_awstats.conf file?


RE: how to add installaion the AWStats? - pgentoo - 01-05-2009 07:11 AM

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


RE: how to add installaion the AWStats? - coper - 01-05-2009 12:42 PM

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>



RE: how to add installaion the AWStats? - pgentoo - 01-05-2009 01:07 PM

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


RE: how to add installaion the AWStats? - coper - 01-05-2009 05:06 PM

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]


RE: how to add installaion the AWStats? - pgentoo - 01-06-2009 06:21 AM

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


RE: how to add installaion the AWStats? - coper - 01-07-2009 02:07 AM

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?