Statistics not compiling.

Discussion in 'Installation/Configuration' started by thevinster, Sep 14, 2005.

  1. nenad

    nenad Member

    I use the first and only username (for first website) that I created since installing ISPConfig.
    I can login into webmail using that username/pass and I can FTP also
     
  2. falko

    falko Super Moderator Howtoforge Staff

    The username must be of the form web1_user.

    Do you have an .htaccess file in the stats folder? What's in it?
     
  3. nenad

    nenad Member

    yes, username is in form web1_ xxxx

    there is .htacess file in dir:

    AuthType Basic
    AuthName "Members Only"
    AuthUserFile /var/www/web1/.htpasswd
    <limit GET PUT POST>
    require valid-user
    </limit>


    I noticed that in
    /var/www/web1/.htpasswd

    web1_xxxxx: ghhgihggGUGUGuhh --- this string does not match my password ? (probably it is encrypted?)

    After I input username/password it looks like user is logged in, but then error
    "403 Error- Forbidden!" occurs.
     
    Last edited: Mar 14, 2006
  4. falko

    falko Super Moderator Howtoforge Staff

    Yes, the password is encrypted.

    Normally this means there's no index page in the directory.
    Please post the output of
    Code:
    ls -la /var/www/web1/web/stats
     
  5. nenad

    nenad Member

    [root@noc ~]# ls -la /var/www/web1/web/stats
    total 284
    drwxr-xr-x 2 web1_nenad web1 4096 Mar 5 13:16 .
    drwxrwxr-x 19 web1_nenad web1 4096 Mar 13 03:16 ..
    -rwxr-xr-x 1 web1_nenad web1 3183 Mar 15 04:00 ctry_usage_200603.png
    -rwxr-xr-x 1 web1_nenad web1 3009 Mar 15 04:00 daily_usage_200603.png
    -rwxr-xr-x 1 web1_nenad web1 12288 Mar 14 04:00 dns_cache.db
    -rwxr-xr-x 1 web1_nenad web1 2111 Mar 15 04:00 hourly_usage_200603.png
    -rw-rw-r-- 1 web1_nenad web1 124 Mar 15 04:00 .htaccess
    -rwxr-xr-x 1 web1_nenad web1 3779 Mar 15 04:00 index.html
    -rwxr-xr-x 1 web1_nenad web1 91765 Mar 15 04:00 usage_200603.html
    -rwxr-xr-x 1 web1_nenad web1 2363 Mar 15 04:00 usage.png
    -rwxr-xr-x 1 web1_nenad web1 89110 Mar 15 04:00 webalizer.current
    -rwxr-xr-x 1 web1_nenad web1 41 Mar 15 04:00 webalizer.hist
     
  6. falko

    falko Super Moderator Howtoforge Staff

    That's ok.
    And you can't login with all users from the "User & Email" tab, or is it only one that makes problems?
     
  7. Ovidiu

    Ovidiu Active Member

    hi, I have already told you somewhere in the middle of this psot, that I had exactly the same issue, now after Till advised me to create another test user - after waiting for more than 24hours, this user does work, I can access the stats. BUT none of the older users does work... even if I change their password and some of their settings, clicking on save afterwards these accounts do not work... I guess I have to recreate them, will that work if I delete them, empty the recycle bin and recreate them? what do you think?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, thats the first step.

    Have you waited 24 ours after you changed the passwords? ISPConfig is creating the .htaccess files once each night, when the stats where generated.

    I dont think that this is nescessary. Are the old users in this file too?

    /var/www/web1/.htpasswd
     
  9. Ovidiu

    Ovidiu Active Member

    yes the old users are in /var/www/web1/.htpasswd too and yes I have waited about 24 hours...

    could I try again and change their passwords to the same value they had before? will that work? or does ispcfg recognize the password is the same and not write the changes?
     
  10. nenad

    nenad Member

    1. is it possible to reassign existing sites to new users ? How?

    2. is it possible to force ISPConfig to re-create .htacess in shorter period than 24hrs ?
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    No. thats not possible.

    You can run the webalizer script manually on the commandline:

    /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
     
  12. nenad

    nenad Member

    I know that. But does that re-create .htacess files?
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, thats why i posted it as answer to the question:

     
  14. nenad

    nenad Member

    It won't work :(

    I just changed password for web_ user
    Then regenerated stats using
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php

    ..and

    nothing. I can't login into stats...
     
    Last edited: Mar 15, 2006
  15. falko

    falko Super Moderator Howtoforge Staff

    You are absolutely sure you used the correct username and password?
     
  16. nenad

    nenad Member

    Yes. The same username/password I use for WEB-FTP, webmail etc.

    With web(x)_ prefix
     
  17. falko

    falko Super Moderator Howtoforge Staff

    And the user belongs to that web site?
     
  18. nenad

    nenad Member

    yes, user belongs to that website.
     
  19. nenad

    nenad Member

    I reinstalled complete system (Now it's Fedora Core 4)

    Now I have this error:

    [root@localhost etc]# /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
    PHP Notice: Undefined variable: HTTP_GET_VARS in /home/admispconfig/ispconfig/lib/config.inc.php on line 32
    PHP Warning: Invalid argument supplied for foreach() in /home/admispconfig/ispconfig/lib/config.inc.php on line 32
    PHP Notice: Undefined variable: HTTP_POST_VARS in /home/admispconfig/ispconfig/lib/config.inc.php on line 38
    PHP Warning: Invalid argument supplied for foreach() in /home/admispconfig/ispconfig/lib/config.inc.php on line 38
    PHP Notice: Undefined variable: HTTP_COOKIE_VARS in /home/admispconfig/ispconfig/lib/config.inc.php on line 44
    PHP Warning: Invalid argument supplied for foreach() in /home/admispconfig/ispconfig/lib/config.inc.php on line 44
    PHP Notice: Undefined variable: HTTP_GET_VARS in /home/admispconfig/ispconfig/lib/config.inc.php on line 53
    9 records (9 ignored) in 0.00 seconds
     
  20. nenad

    nenad Member

    yum update, reboot then once again:
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php

    now there's no error, but I still can't acess stats.

    they are there with file browser (built into webmin) I can acess index,html and browse throughh complete wealizer statistics.

    BTW is there a way to make those statistics public avaiable?
     

Share This Page