Help - Search - Members - Calendar
Full Version: Awstats Wordpress Plugin
TotalChoice Hosting Family Forums > Scripting Central > Installing Scripts
Rajio
I'm trying to set up this script:

http://www.curioso.org/2005/04/05/awstats-plugin/

so that I can have it work with my sites stats like this site does:

http://infosthetics.com/archives/2005/09/s...s.html#comments

The script inclused these lines:

CODE
// Change these two lines if the default values do not work
//
$awstats_dir = '/var/lib/awstats';
$awstats_site = awstats_getsite(get_settings('siteurl'));


What should these variables be set to?

thanks.
TCH-Bruce
The path should be something like this.

/home/yourTCHloginName/tmp/awstats
TweezerMan
I believe the path would be more like the following:
CODE
$awstats_dir = '/home/cpanelName/tmp/awstats';

...where 'cpanelName' is the username you use to log into CPanel.
TCH-Bruce
You are correct David, I've corrected my post.
quickrob
Hey, I am also trying to install this Plugin, I have a WP 2.0.1 site, I followed the advice above and I still cant get it to work...any other ideas?

Ill keep trying stuff in the meantime...:-)
quickrob
Actually,
I have a Wordpress 1.5 blog up on my other account and I was able to install this plugin clean with no modification to the .php file, ie it still reads:

$awstats_dir = '/var/lib/awstats';
$awstats_site = awstats_getsite(get_settings('siteurl'));

i dont know if this is important info, but I am adding it since it might be worth considering for whoever can help me...:-)

the original code included with the plugin didnt work for my wp 2.0 blog, though, so I tried this :

$awstats_dir = '/home/*********/tmp/awstats';
$awstats_site = awstats_getsite(get_settings('siteurl'));

and it wont work either. Ill throw in a gratuitious smiley for good measure! 1eye.gif


Edit: TCH-Bruce - removed user identifying information, please don't post your user ID info in the forums
quickrob
Stop the presses!!! Im back with more information that could possibly be useful...!

I used to have a different domain hosted at this account. My former domain still has awstats files in my awstats folder...could this be confusing the plugin..? If so, should I just delete the files which have my old domain name as part of the filenames?
TCH-Don
You could open a help desk ticket to the techs
to ask for their help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.