View Full Version : Need help w/awstats
plevans
05-10-2007, 01:37 AM
I'm in *waaaayyy* over my head and need some help! I've followed phppete's instructions found here http://www.aota.net/forums/showthread.php?t=20193&highlight=awstats) for installing awstats and am now trying to configure it for my site using the instructions found in this thread http://www.aota.net/forums/showthread.php?t=21544&highlight=awstats but can't find the awstats.domainname.conf file. I'm wondering if I did something wrong in the installation process.
I now have 4 new directories:cgi-bin/awstats/, cgi-bin/awstats-6.6/, www/awstats/ and a password protected directory www/stats/. I've searched through them but haven't found a .conf file.
Can anyone help me?
Melissa
05-10-2007, 01:57 AM
Due to the length of the filename, the CNC filename listing display isn't showing you all of it. Look for awstats.www.example.com... in the CNC file listing (where "example.com" is your domain). Clicking the "view" or "edit" images will allow you to see the whole name.
Hope this helps.
plevans
05-10-2007, 09:48 AM
Thanks Melissa, but a thorough search through the 4 directories doesn't turn up any file named www.anything.
Patti,
Take a look in your cgi-bin :)
Based on what I can see you may want to delete all the awstats files you have uploaded and start from scratch as sometimes the first time can be a bit confusing while the second go around you have a better idea of what to expect...
-Bob
plevans
05-11-2007, 04:26 PM
Thanks Bob, that worked. I have now configured my .conf file per the instructions in this thread http://www.aota.net/forums/showthrea...hlight=awstats and am stumped by step 3. Try a test run:
perl awstats.pl -config=mysite -update I have no idea what this means or how to do it :umm:
(and yes I did replace "mysite" with what I put in SiteDomain :wink: )
plevans
05-11-2007, 04:43 PM
I just tried running the CGI Script Debugger and my .conf file failed the following:
Checking for Interpreter Path (): Failed: Missing Path
Checking File Permissions: Failed: Script Not Executable
I have no idea if this should be fixed and if so, how?
Melissa
05-11-2007, 05:10 PM
Thanks Bob, that worked. I have now configured my .conf file per the instructions in this thread http://www.aota.net/forums/showthrea...hlight=awstats and am stumped by step 3. I have no idea what this means or how to do it :umm:
(and yes I did replace "mysite" with what I put in SiteDomain :wink: )
The AWStats documentation may help to make it more clear for you:
http://awstats.sourceforge.net/docs/awstats_setup.html
See "II. Process logs: Building/updating statistics database".
In short, to use that command, you'll need to log in to your account via telnet/SSH.
(The above reference to the AWStats documentation, however, appears to provide a method for using the browser instead. Please see the AWStats documentation for complete details.)
If you have never worked with your account via telnet/SSH, the following section of the knowledgebase may be helpful:
http://service.FutureQuest.net/index.php?_a=knowledgebase&_j=subcat&_i=77
(There is an SSH utility available to you in your CNC (requires Java support in your browser).)
Hope this helps.
plevans
05-12-2007, 12:44 AM
Thanks Melissa. I think I've finally got it working.
I'm now setting up a cron job to run nightly updates. In the FQ Knowledgebase article "What is a cronjob and how do I use it?" the following is advised: Security Note: If the script the cron is set up to run is in the /cgi-bin/ or /www/ directory it may be run at any time by anyone with browser access. If the crontab is all that should run the script and you do not want the public to be able to run the script, then you will need to place the script in a directory above the /cgi-bin/ and /www/ directories such as: /big/dom/xdom/user/cronscripts/scriptname.
Is this something I should do? Will password protecting my /cgi-bin/awstats/ directory accomplish the same thing?
Password protect the /awstats/ directory to prevent anyone else from viewing the stats which could disclose admin directories you visit on your own site and such. Simply password protecting that directory will take care of it.
(if you were calling an isolated script that you do not ever need to also call via your browser, then I'd move it up above the www/cgi-bin directories)
plevans
05-14-2007, 01:46 PM
Jeff wrote: (if you were calling an isolated script that you do not ever need to also call via your browser, then I'd move it up above the www/cgi-bin directories)
I have my cronjob set up as follows, with the cgi-bin/awstats/ password protected:
59 23 * * * /big/dom/xdomain/cgi-bin/awstats/awstats.pl
-config=domainname.com -update -logfile=/big/dom/xdomain/logs/access.today
Does this sufficiently protect my stats?
What about /www/awstats/data/? Should it be password protected as well?
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.