AWStats Installer

Discussion in 'Tips/Tricks/Mods' started by jnsc, Oct 6, 2006.

  1. cap10kirk

    cap10kirk New Member

    Okay, i'm late to the party. I already had awstats installed. However, awstats could not find my log file. So I configured awstats to point to /var/log/httpd/ispconfig_access_log. I believe that awstats is giving me stats to all my sites combined. I just want my stats for the one site. Which log file do I point to? I use ubunto on a apache2 server.

    Or maybe I should do a reinstallation using your install?
     
  2. jnsc

    jnsc rotaredoM Moderator

    Usually the file is located here /home/www/www.MY-DOMAIN.com/log/web.log.

    But if you want to have the stats generated for each of your websites without having to change the configuration, you should use the installer.
     
  3. lcerny

    lcerny New Member

    OK, I have installed awstats alpha8, but get no output and no awstats directory were created.

    I use Mandriva 2007 and pointed awstats to ispconfig_access.log to search for statistic data.
    Any idea.
     
  4. jnsc

    jnsc rotaredoM Moderator

    what do you mean with
    If you use this installer you have nothing to do. The only thing you have to check is that the webalizer option is checked for the website.
     
  5. lcerny

    lcerny New Member

    Means, I have modified /etc/awstats/awstats.conf to use log file as /var/log/http/ispconfig_access.log for its job. It was just test because I can not see any activity after installation.

    Yes, statistics by Webaliser are correctly created. I have also verified to have correct awstats record in crontab - also correct.
    I guest I should see any output (html) when runing manualy awstats.php script, should I ?
     
  6. jnsc

    jnsc rotaredoM Moderator

    If you run
    Code:
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php
    you should see something like tis
    Code:
    Main HTML page is 'awstats.www.mydomain.com.2007-02.html'.
     
  7. lcerny

    lcerny New Member

    No output

    No, there is no output to screen :(
    When I try to run system php I can only see message "Undefined constatn "s" in config.inc.php (or server.inc.php ?) at line cca. 153.

    and there is /web/awstats on any of websites with statistics turned on.
     
  8. jnsc

    jnsc rotaredoM Moderator

    So you must have a problem with this file. Did you edit it? What version of ISPConfig are you using?
     
  9. jfruano

    jfruano New Member

    awstats no work after upgrade ISPConfig

    Hi jnsc ;)

    awstats doesn't work after upgrading a new version of ISPConfig.

    I have to reinstall again awstats. Reason?

    how to solve this problem?

    Thanks.

    J.F. Ruano.
     
  10. BlueStream

    BlueStream New Member

    I'd think that that's because the awstats used here is a separate "hack' on ISPConfig... So once you upgrade ISPConfig, all the changes made to the files are lost.
     
    Last edited: Mar 7, 2007
  11. jnsc

    jnsc rotaredoM Moderator

    Yes, exactly but this will not be necessary anymore with the current dev version who includes AWStats.
     
  12. Gimly

    Gimly Member

    Hi All,

    I just have install awstats plugin but on one site I've this problem

    If anyone have an idea ? Thanks for your answers !
     
  13. jnsc

    jnsc rotaredoM Moderator

    Does this file exist? what is the output of

    Code:
    ls -l /etc/awstats/
     
  14. Gimly

    Gimly Member

    This is the ls results :

    Code:
    ks32033:/home/romain# ls -l /etc/awstats/
    total 116
    -rw-r--r--  1 root root 59564 2007-03-05 19:52 awstats.shared.conf
    -rw-r--r--  1 root root   206 2007-03-15 04:03 awstats.www.astrotophe.fr.nf.conf
    -rw-r--r--  1 root root   214 2007-03-09 04:01 awstats.www.axila-project.e4y.org                                                                                                                        .conf
    -rw-r--r--  1 root root   200 2007-03-14 04:02 awstats.www.citroen-ds.be.conf
    -rw-r--r--  1 root root   221 2007-03-06 04:00 awstats.www.espace4you.org.conf
    -rw-r--r--  1 root root   233 2007-03-06 04:00 awstats.www.kilasoft.net.conf
    -rw-r--r--  1 root root   230 2007-03-26 04:05 awstats.www.novembre-bleu.espace4                                                                                                                                you.com.conf
    -rw-r--r--  1 root root   226 2007-03-22 04:05 awstats.www.polecodijon.espace4yo                                                                                                                                u.com.conf
    -rw-r--r--  1 root root   218 2007-03-22 04:05 awstats.www.scansgu.espace4you.or                                                                                                                                g.conf
    -rw-r--r--  1 root root   212 2007-03-09 04:02 awstats.www.space-of-log.e4y.org.                                                                                                                                conf
    -rw-r--r--  1 root root   224 2007-03-31 04:06 awstats.www.starwarscreations.e4y                                                                                                                                .org.conf
    -rw-r--r--  1 root root   216 2007-03-19 04:03 awstats.www.techno-update.e4y.org                                                                                                                                .conf
    -rw-r--r--  1 root root   239 2007-03-07 04:01 awstats.www.xeked.espace4you.com.                                                                                                                                conf
    -rw-r--r--  1 root root   232 2007-03-15 04:03 awstats.www.yannick-gillet.espace                                                                                                                                4you.org.conf
    ks32033:/home/romain#
    
    Have you an idea ?
     
  15. jnsc

    jnsc rotaredoM Moderator

    Sorry, I didn't read carefully enough your error message. Look if the Directory /var/www/web14/web/awstats exist an if not create it.

    Code:
    ls /var/www/web14/web/awstats
    Code:
    mkdir /var/www/web14/web/awstats
     
  16. Gimly

    Gimly Member

    The dir exist :/
     
  17. jnsc

    jnsc rotaredoM Moderator

    What are the permissions? is it writable?

    Code:
    ls -la /var/www/web14/web/awstats
     
  18. Gimly

    Gimly Member

    This is the result of the command :

    Code:
    ks32033:/home/romain# ls -la /var/www/web16/web/awstats
    total 96
    drwxr-xr-x   2 e4y16_yanikou19 web16 4096 2007-04-06 07:58 .
    drwxrwxr-x  12 e4y16_yanikou19 web16 4096 2007-04-04 17:29 ..
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.alldomains.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.allhosts.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.allrobots.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.browserdetail.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.errors404.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.keyphrases.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.keywords.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.lasthosts.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.lastrobots.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.osdetail.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.refererpages.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.refererse.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.session.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.unknownbrowser.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.unknownip.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.unknownos.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.urldetail.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.urlentry.html
    -rw-r--r--   1 e4y16_yanikou19 web16  437 2007-04-06 04:03 awstats.www.yannick-gillet.espace4you.org.2007-04.urlexit.html
    -rw-rw-r--   1 e4y16_yanikou19 web16  130 2007-04-04 04:03 .htaccess
    -rw-r--r--   1 e4y16_yanikou19 web16  339 2007-04-03 04:03 index.php
    
    Thanks for your help
     
  19. jnsc

    jnsc rotaredoM Moderator

    The error message was about /var/www/web14 not /var/www/web16? So with wich of them do you have troubles? and what is actually the trouble?
     
  20. Check

    Check New Member

    limits exceeded error

    Not sure if anyone else is getting this error- Im running the newest version- beta 1.

    It stopped working after a couple of weeks and i couldnt figure out what was going on. I just figured that i could install it again over top of its current installation. So at the end i ran the command to excute it so it craetes a page and i got the

    Fatal error: Allowed memory size of 64 bytes exhausted (tried to allocate 8192 bytes) in Unknown on line 0

    I know this can be resolved by upping the limits in php.ini but i also figured that somethign may be wrong that its causing this.

    Let me know if i need to check anything for you
     

Share This Page