dev 2.3.3 awstats

Discussion in 'General' started by grandpagenocide, Nov 9, 2007.

  1. grandpagenocide

    grandpagenocide New Member

  2. jnsc

    jnsc rotaredoM Moderator

    Some days back I found out that AWStats was not working in 2.3.3. This is due because the changes in SVN were overwritten. There is no easy solution for this problem, Till is looking at which other files has been overwritten.
    2.3.4 will surely correct this problem.

    Sorry for the inconvenience.
     
  3. grandpagenocide

    grandpagenocide New Member

    JNSC thanks for the info. Is there a way to get webalizer working again in 2.3.3 so my clients who are having a fit over not having stats will shut up.
     
  4. jnsc

    jnsc rotaredoM Moderator

    You can add this lines to /root/ispconfig/scripts/lib/config.lib.php

    Code:
    ////////////// Web Statistics ////////////////////
      $stats_alias = "";
      
       if($web["web_stats"] == "awstats"){
         $stats_alias = "Alias /stats \"".$document_root."/awstats\"";
       } elseif ($web["web_stats"] == "webalizer") {
         $stats_alias = "Alias /stats \"".$document_root."/webalizer\"";
       }
      ////////////// END of Web Statistics ////////////////////
    Just after :
    Code:
    if($apache_version == 1){
         $error_alias = "";
       }
       if($apache_version == 2){
         $error_alias = "Alias /error/ \"".$document_root."/error/\"";
       }
    Just before :
    Code:
     ////////////// Error Pages ////////////////////
       if($web["web_individual_error_pages"]){
    You also have to uncomment this line in root/ispconfig/isp/conf/vhost.conf.master

    Code:
    # {STATSALIAS}
     
  5. grandpagenocide

    grandpagenocide New Member

    ok, I have done all that and forced the cron job with /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php now how do I access the stats? using http://mydomain.com/awstats still gives me a page not found
     
  6. jnsc

    jnsc rotaredoM Moderator

    you have to use /stats you can check in your apache conf file that the alias has been created for your website.
     
  7. grandpagenocide

    grandpagenocide New Member

    yes it did create the alias in the httpd conf. Now it kills httpd conf, so i had to go back and comment out every instance of {STATSALIAS} in httpd.conf to get it running again
     

Share This Page