Awstats On Frontend

admin

Administrator
Staff member
does anybody know anything about this?<br /><a href="http://www.telartis.nl/xcms/awstats" target="_blank">http://www.telartis.nl/xcms/awstats</a><br />looking for a way to display stats on the frontend. this looks good actually, (judging by the demo)<br /><br />tried installing the php file. but dont know what to put for the settings:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->/*******************************************************<br /> * SETUP SECTION<br /> *******************************************************/<br /><br /><br />/**<br /> * Set this value to the directory where AWStats<br /> * saves its database and working files into.<br /> */<br />$DirData = "/var/lib/awstats";<br /><br />/**<br /> * The URL of the AWStats script.<br /> */<br />$AWStatsURL = "/cgi-bin/awstats.pl";<br /><br />/**<br /> * Set your language.<br /> * Possible value:<br /> *  Albanian=al, Bosnian=ba, Bulgarian=bg, Catalan=ca,<br /> *  Chinese (Taiwan)=tw, Chinese (Simpliefied)=cn, Czech=cz, Danish=dk,<br /> *  Dutch=nl, English=en, Estonian=et, Euskara=eu, Finnish=fi,<br /> *  French=fr, Galician=gl, German=de, Greek=gr, Hebrew=he, Hungarian=hu,<br /> *  Icelandic=is, Indonesian=id, Italian=it, Japanese=jp, Korean=kr,<br /> *  Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl,<br /> *  Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru,<br /> *  Serbian=sr, Slovak=sk,  Spanish=es, Swedish=se, Turkish=tr, Ukrainian=ua,<br /> *  Welsh=wlk.<br /> */<br />$Lang = "en";<br /><br />/**<br /> * Set the location of language files.<br /> */<br />$DirLang = "/usr/share/awstats/lang";<br /><br />/**<br /> * Config names to filter. Shows all if empty array.<br /> */<br />$FilterConfigs = array();<br /><br />/*<br />To read website configs from database, do something like:<br />$sql = "SELECT config FROM users WHERE (user=...)";<br />$rs = mysql_query($sql); if ($rs) while ($row = mysql_fetch_array($rs)) $FilterConfigs[] = $row["config"];<br />*/<!--c2--></div><!--ec2--><br /><br />if i run as is i get: Could not open directory /var/lib/awstats<!--content-->
Rajio,<br /><br />I am not sure but I will look into it and see if I can find what the proper location is for you. Hang tight a bit longer.<!--content-->
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$DirData = "/home/cpanel_username/tmp/awstats";<br /><br />$AWStatsURL = "http://www.******:2082/awstats.pl";<br /><br />$DirLang = "/usr/local/cpanel/3rdparty/share/awstats/lang";<!--c2--></div><!--ec2--><br /><br />But this script looks like it doesn't take into account that the cPanel inatall of AwStats requires a password.<br />And out of curiosity why do you want to make your stats public?<!--content-->
thanks dick i'll try that out.<br /><br />Reason i want to fiddle with showing the stats with this is that I want to be able to incorporate the stats into my site so that on a page that only <a href="http://www.ohmpage.ca" target="_blank">my blog</a> contributors can access (i'm using mambo btw) i can throw on some stats like unique hits per day / week / month, and latest refering URLs, but have that integrated into the website template ratehr than a page that looks totaly different (ie all white). since awstats is already installed and collecting this info i figured if i could port over some of that info into a "publicly available" page (ie without backend access) which i could customize into my site to be seamless, it'd be just what the doctor ordered.<!--content-->
Have at a look a this script, It might not be what you want but it works.<br /><a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=9724&hl=awstats+access" target="_blank">Awstats Access</a><!--content-->
I've tried to get this script working without success, all I get is "Could not open directory /home/syqbsbxa/tmp/awstats" which sounds like its cause it need a password like Dick said.<br /><br />But it would be great if it was possible to get it working, cause then I could view the main stats of all of my accounts on the same page and compare them. Will it take much work to make it take a password?<br /><br />James<!--content-->
agreed<!--content-->
<!--QuoteBegin-purplespider+Aug 27 2004, 03:24 PM--><div class='quotetop'>QUOTE(purplespider @ Aug 27 2004, 03:24 PM)</div><div class='quotemain'><!--QuoteEBegin-->I've tried to get this script working without success, all I get is "Could not open directory /home/syqbsbxa/tmp/awstats" which sounds like its cause it need a password like Dick said.<br /><br />But it would be great if it was possible to get it working, cause then I could view the main stats of all of my accounts on the same page and compare them. Will it take much work to make it take a password?<br /><br />James<!--QuoteEnd--></div><!--QuoteEEnd--><br /> for it to work take out the<br /> "cpanel_";<br /> "cpanel_"; and then just fill the correct information where it says username and password. <br /><br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
<!--QuoteBegin-g33kg1rl+Oct 22 2004, 01:42 PM--><div class='quotetop'>QUOTE(g33kg1rl @ Oct 22 2004, 01:42 PM)</div><div class='quotemain'><!--QuoteEBegin-->for it to work take out the<br /> "cpanel_";<br /> "cpanel_"; and then just fill the correct information where it says username and password.<!--QuoteEnd--></div><!--QuoteEEnd--><br />You are looking at the wrong script, the one you reference (<a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=9724&hl=awstats+access" target="_blank">Awstats Access</a>) has no problems. I have removed the underscore from "cpanel_username" to prevent any future confusion. <br />The script they had an issue with is from the first post in this thread<br /><!--QuoteBegin-Rajio+Aug 26 2004, 07:45 PM--><div class='quotetop'>QUOTE(Rajio @ Aug 26 2004, 07:45 PM)</div><div class='quotemain'><!--QuoteEBegin-->does anybody know anything about this?<br /><a href="http://www.telartis.nl/xcms/awstats" target="_blank">http://www.telartis.nl/xcms/awstats</a><br />looking for a way to display stats on the frontend. this looks good actually, (judging by the demo)<br /><br />tried installing the php file. but dont know what to put for the settings:<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />That script is for a standalone install of AWstats and does not contain the proper directories or credentials to access AWstats via cPanel.<!--content-->
Ah I understand now. Sorry, I was working with both scripts so I miss read which one he was having trouble with. <br /><br />Thanks for the clarification though.<!--content-->
 
Back
Top