Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th January 2011, 13:11
sheshes sheshes is offline
Senior Member
 
Join Date: Aug 2009
Location: Nicosia
Posts: 123
Thanks: 2
Thanked 0 Times in 0 Posts
Default Webalizer & Awstats driving me mental

After a lot of upgrading and with the new addition of Awstats in ISPconfig3 I tried setting stats as they should be for all websites (including the ones that will be created)

Unfortunately I think I messed up everything.

when trying to access domain.com/stats I am asked for a password which never goes through and when it does I get an Error 403 Forbidden. This happens to all websites new and old and with both Webalizer and Awstats.

Is there any way I can remove both webalizer and awstats along with the configuration and set it up again properly (i need some quidelines on this also)

It's a handy tool and a must to all my websites so I would really appreciate some help here.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 21st January 2011, 14:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Did you use the correct username? It is listed in the .htpasswd file that is referenced in the .htaccess file inside the stats directory. Also, did you take a look at the stats directory? Is it empty, or are there files?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th February 2011, 20:40
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

I have the same problem
I have set a password for the user admin, and when I type the correct user/pass combination I get a forbidden page.

The user is admin and the pass is correct.
I use awstats.
The stats folder HAS files in it.

UPDATE
I forgot to mention, that when I disable the user/pass (through .htaccess) I can see the statistics

Last edited by 8omas; 16th February 2011 at 20:44.
Reply With Quote
  #4  
Old 17th February 2011, 21:34
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

REPLY to my last UPDATE:
Unfortunately I can not see stats even if I disable .htaccess

The only different thing that I did from the guides and the manual is to enable ssl over ispconfig interface.

In the error log of apache I get this:
Code:
File does not exist: /var/www/ispconfig/stats
But I type in the browser address :
http://www.somesite.gr/stats

Is this a bug??
Reply With Quote
  #5  
Old 17th February 2011, 21:54
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

I found the solution

Something is happening with the DirectoryIndex directive
In /etc/apache2/mods-enabled/dir.conf I have :

Code:
<IfModule mod_dir.c>

          DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm

</IfModule>
But I must type the http://www.somesite.gr/stats/index.html to see the stats!!!!
Reply With Quote
  #6  
Old 18th February 2011, 16:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Can you post the vhost configuration of somesite.gr?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 18th February 2011, 21:20
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

This is my vhost. I didn't touch anything manually

Code:
<Directory /var/www/somesite.gr>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost 1.2.3.4:80>
      DocumentRoot /var/www/somesite.gr/web

    ServerName somesite.gr
    ServerAlias www.somesite.gr
    ServerAdmin webmaster@somesite.gr

    ErrorLog /var/log/ispconfig/httpd/somesite.gr/error.log


    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 503 /error/503.html

    <Directory /var/www/somesite.gr/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client2/web5/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>


    # suexec enabled
    SuexecUserGroup web5 client2
    # Clear PHP settings of this website
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler None
    </FilesMatch>
    # php as fast-cgi enabled
    <IfModule mod_fcgid.c>

          # SocketPath /tmp/fcgid_sock/

          # IdleTimeout n (3600 seconds)
          # An idle fastcgi application will be terminated after IdleTimeout seconds.
      IdleTimeout 3600

          # ProcessLifeTime n (7200 seconds)
      # A fastcgi application will be terminated if lifetime expired, even no error is detected.
      ProcessLifeTime 7200

          # MaxProcessCount n (1000)
      # The max count of total fastcgi process count.
      # MaxProcessCount 1000

          # DefaultMinClassProcessCount n (3)
      # The minimum number of fastcgi application instances for any one fastcgi application.
      # Idle fastcgi will not be killed if their count is less than n
      # Set this to 0, and tweak IdleTimeout
          DefaultMinClassProcessCount 0

          # DefaultMaxClassProcessCount n (100)
      # The maximum number of fastcgi application instances allowed to run for
      # particular one fastcgi application.
      DefaultMaxClassProcessCount 100
          # IPCConnectTimeout n (3 seconds)
      # The connect timeout to a fastcgi application.
      IPCConnectTimeout 8

          # IPCCommTimeout n (20 seconds)
      # The communication timeout to a fastcgi application. Please increase this
      # value if your CGI have a slow initialization or slow respond.
      IPCCommTimeout 360

          # BusyTimeout n (300 seconds)
      # A fastcgi application will be terminated if handing a single request
      # longer than busy timeout.
          BusyTimeout 300

    </IfModule>
    <Directory /var/www/somesite.gr/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web5/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
        <Directory /var/www/clients/client2/web5/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web5/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
F
    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web5 client2
    </IfModule>

    <IfModule mod_dav_fs.c>
      # DO NOT REMOVE THE COMMENTS!
      # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
      # WEBDAV END
    </IfModule>


</VirtualHost>
Reply With Quote
  #8  
Old 19th February 2011, 16:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Do you maybe have another DirectoryIndex directive anywhere else in your Apache configuration?

What's the output of
Code:
ls -la /var/www/somesite.gr/web/stats/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 19th February 2011, 19:13
J0s3ph J0s3ph is offline
Junior Member
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Do you maybe have another DirectoryIndex directive anywhere else in your Apache configuration?

What's the output of
Code:
ls -la /var/www/somesite.gr/web/stats/
?
This topic is the answer, just wanted to post it because I have the same problem, here.
ls -la /var/www/somesite.gr/web/stats/
Nothing in there. Only a htaccess file. It contains the following.
Code:
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/clients/client1/web2/.htpasswd_stats
require valid-user
Even I see, with my newbie skills, that there is something not right here. Where is the instruction for AWStats?

BTW: Thanks for your help, Falko!
Reply With Quote
  #10  
Old 19th February 2011, 21:42
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
 
Default

Quote:
Originally Posted by falko View Post
Do you maybe have another DirectoryIndex directive anywhere else in your Apache configuration?

What's the output of
Code:
ls -la /var/www/somesite.gr/web/stats/
?
As I can remember I didn't Add any DirectoryIndex.

The output of ls -al is :
Code:
drwxr-xr-x  2 root root     4096 Feb 19 00:30 .
drwx--x--- 15 web5 client2  4096 Feb 16 21:08 ..
-rw-r--r--  1 root root     5877 Feb 19 00:30 awstats.somesite.gr.alldomains.html
-rw-r--r--  1 root root     5913 Feb 19 00:30 awstats.somesite.gr.allhosts.html
-rw-r--r--  1 root root     5284 Feb 19 00:30 awstats.somesite.gr.allrobots.html
-rw-r--r--  1 root root     5550 Feb 19 00:30 awstats.somesite.gr.browserdetail.html
-rw-r--r--  1 root root     5604 Feb 19 00:30 awstats.somesite.gr.errors404.html
-rw-r--r--  1 root root     5083 Feb 19 00:30 awstats.somesite.gr.keyphrases.html
-rw-r--r--  1 root root     5071 Feb 19 00:30 awstats.somesite.gr.keywords.html
-rw-r--r--  1 root root     5921 Feb 19 00:30 awstats.somesite.gr.lasthosts.html
-rw-r--r--  1 root root     5274 Feb 19 00:30 awstats.somesite.gr.lastrobots.html
-rw-r--r--  1 root root     5475 Feb 19 00:30 awstats.somesite.gr.osdetail.html
-rw-r--r--  1 root root     5217 Feb 19 00:30 awstats.somesite.gr.refererpages.html
-rw-r--r--  1 root root     5182 Feb 19 00:30 awstats.somesite.gr.refererse.html
-rw-r--r--  1 root root     4258 Feb 19 00:30 awstats.somesite.gr.session.html
-rw-r--r--  1 root root     5022 Feb 19 00:30 awstats.somesite.gr.unknownbrowser.html
-rw-r--r--  1 root root     5289 Feb 19 00:30 awstats.somesite.gr.unknownip.html
-rw-r--r--  1 root root     4996 Feb 19 00:30 awstats.somesite.gr.unknownos.html
-rw-r--r--  1 root root    19910 Feb 19 00:30 awstats.somesite.gr.urldetail.html
-rw-r--r--  1 root root     7024 Feb 19 00:30 awstats.somesite.gr.urlentry.html
-rw-r--r--  1 root root     7531 Feb 19 00:30 awstats.somesite.gr.urlexit.html
-rwxr-xr-x  1 root root      117 Feb 17 22:25 .htaccess
-rw-r--r--  1 root root    74627 Feb 19 00:30 index.html
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AWStats or Webalizer skoena General 4 8th November 2010 12:16
Global Webalizer and Awstats stats per reseller esezako Feature Requests 0 2nd March 2010 10:55
moving from webalizer to awstats yaw Installation/Configuration 2 30th September 2009 09:06
ISPConfig 2.2.29 webalizer awstats problem dvazart General 3 30th January 2009 22:21
md5 passwords enabled with webalizer and awstats add-on Rustin Installation/Configuration 1 6th January 2007 15:33


All times are GMT +2. The time now is 11:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.