Jump to content

Awstats On Frontend


Rajio
 Share

Recommended Posts

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

Link to comment
Share on other sites

>$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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...
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.

 

 

;)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...