Rajio Posted August 27, 2004 Posted August 27, 2004 does anybody know anything about this? http://www.telartis.nl/xcms/awstats looking for a way to display stats on the frontend. this looks good actually, (judging by the demo) tried installing the php file. but dont know what to put for the settings: >/******************************************************* * SETUP SECTION *******************************************************/ /** * Set this value to the directory where AWStats * saves its database and working files into. */ $DirData = "/var/lib/awstats"; /** * The URL of the AWStats script. */ $AWStatsURL = "/cgi-bin/awstats.pl"; /** * Set your language. * Possible value: * Albanian=al, Bosnian=ba, Bulgarian=bg, Catalan=ca, * Chinese (Taiwan)=tw, Chinese (Simpliefied)=cn, Czech=cz, Danish=dk, * Dutch=nl, English=en, Estonian=et, Euskara=eu, Finnish=fi, * French=fr, Galician=gl, German=de, Greek=gr, Hebrew=he, Hungarian=hu, * Icelandic=is, Indonesian=id, Italian=it, Japanese=jp, Korean=kr, * Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl, * Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru, * Serbian=sr, Slovak=sk, Spanish=es, Swedish=se, Turkish=tr, Ukrainian=ua, * Welsh=wlk. */ $Lang = "en"; /** * Set the location of language files. */ $DirLang = "/usr/share/awstats/lang"; /** * Config names to filter. Shows all if empty array. */ $FilterConfigs = array(); /* To read website configs from database, do something like: $sql = "SELECT config FROM users WHERE (user=...)"; $rs = mysql_query($sql); if ($rs) while ($row = mysql_fetch_array($rs)) $FilterConfigs[] = $row["config"]; */ if i run as is i get: Could not open directory /var/lib/awstats Quote
TCH-Rob Posted August 27, 2004 Posted August 27, 2004 Rajio, 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. Quote
TCH-Dick Posted August 27, 2004 Posted August 27, 2004 >$DirData = "/home/cpanel_username/tmp/awstats"; $AWStatsURL = "http://www.******:2082/awstats.pl"; $DirLang = "/usr/local/cpanel/3rdparty/share/awstats/lang"; But this script looks like it doesn't take into account that the cPanel inatall of AwStats requires a password. And out of curiosity why do you want to make your stats public? Quote
Rajio Posted August 27, 2004 Author Posted August 27, 2004 thanks dick i'll try that out. 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 my blog 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. Quote
TCH-Dick Posted August 27, 2004 Posted August 27, 2004 (edited) Have at a look a this script, It might not be what you want but it works. Awstats Access Edited August 27, 2004 by TCH-Dick Quote
purplespider Posted August 27, 2004 Posted August 27, 2004 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. 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? James Quote
g33kg1rl Posted October 22, 2004 Posted October 22, 2004 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. 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? James for it to work take out the "cpanel_"; "cpanel_"; and then just fill the correct information where it says username and password. Quote
TCH-Dick Posted October 23, 2004 Posted October 23, 2004 for it to work take out the "cpanel_"; "cpanel_"; and then just fill the correct information where it says username and password. You are looking at the wrong script, the one you reference (Awstats Access) has no problems. I have removed the underscore from "cpanel_username" to prevent any future confusion. The script they had an issue with is from the first post in this thread does anybody know anything about this?http://www.telartis.nl/xcms/awstats looking for a way to display stats on the frontend. this looks good actually, (judging by the demo) tried installing the php file. but dont know what to put for the settings: That script is for a standalone install of AWstats and does not contain the proper directories or credentials to access AWstats via cPanel. Quote
g33kg1rl Posted October 23, 2004 Posted October 23, 2004 Ah I understand now. Sorry, I was working with both scripts so I miss read which one he was having trouble with. Thanks for the clarification though. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.