Current time: 11-16-2024, 03:00 PM Hello There, Guest! (LoginRegister)


Post Reply 
Awstats activated manually
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #11
RE: Awstats activated manually
To enable static awstats set in /etc/ispcp/ispcp.conf:
Code:
AWSTATS_ACTIVE = yes
AWSTATS_MODE = 1
For dinamic mode
Code:
AWSTATS_ACTIVE = yes
AWSTATS_MODE = 0
Also for dinamic mode you need to add in /etc/cron.d/ispcp following lines
Code:
# AWStats
15    */6    *    *    *    root /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1
In both situations You need to rebuild all configuration.
(This post was last modified: 02-15-2009 05:14 AM by sci2tech.)
02-15-2009 05:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #12
RE: Awstats activated manually
Something wrong with apache2 after theses modifications.
It doesn't start :
Code:
~# /etc/init.d/apache2 start
Starting web server (apache2)...Syntax error on line 97 of /etc/apache2/sites-enabled/ispcp.conf:
Invalid command 'ProxyRequests', perhaps misspelled or defined by a module not included in the server configuration

And in the /etc/apache2/sites-enabled/ispcp.conf, the line 97 is :
Code:
ProxyRequests Off

What should I do to restart Apache ?
(This post was last modified: 02-15-2009 09:47 AM by Spheerys.)
02-15-2009 09:35 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #13
RE: Awstats activated manually
Code:
apt-get install libapache2-mod-proxy-html
a2enmod proxy
a2enmod proxy_http
/etc/init.d/apache2 restart
(This post was last modified: 02-15-2009 09:38 AM by sci2tech.)
02-15-2009 09:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #14
RE: Awstats activated manually
OK, Apache is restarted now Smile
Thanks you.

Now, when I try to go in http://www.mydomaine.com/stats, I have an "404 not found error" with this text :
Code:
The requested URL /stats/mydomain.com was not found on this server.

What wrong ?
02-15-2009 09:46 AM
Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #15
RE: Awstats activated manually
up Smile
02-16-2009 08:32 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #16
RE: Awstats activated manually
You also need to enable 01_awstats.conf
Code:
a2ensite 01_awstats.conf
Content of 01_awstats.conf for debian:
Code:
#
# ispCP ω (OMEGA) a Virtual Hosting Control System
#
# @copyright    2006-2008 by ispCP | http://isp-control.net
# @version              SVN: $Id$
# @link                 http://isp-control.net
# @author               ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​
#
# AWStats Begin
#

Alias /awstatsicons "/usr/share/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/$1 [P]
        RewriteRule ^/stats/(.*)$ http://localhost/stats/$1/ [R]
    </IfModule>

    ScriptAlias /awstats "/usr/lib/cgi-bin/awstats.pl"

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

</VirtualHost>

#
# AWStats End
#
02-16-2009 08:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
artful Offline
Junior Member
*

Posts: 15
Joined: Apr 2009
Reputation: 0
Post: #17
RE: Awstats activated manually
please go to /etc/apache2/mods-available
and edit proxy.conf
for default string
#Allow from example.com
change to
Allow from 127.0.0.1
04-16-2009 08:38 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)