View Full Version : awstats
davea12
11-14-03, 09:57 PM
my awstats dont update here is my crontab runs
30 * * * * /www/u/username/cgi-bin/awstats.pl -config=www/yourhost.com -update >>/www/u/username/logs/cronaw.log 2>>/www/u/username logs/cronaw.err
also, can anyone see my stats? just by entering those files?
tbonekkt
11-14-03, 09:59 PM
Originally posted by davea12
30 * * * * /www/u/username/cgi-bin/awstats.pl -config=www/yourhost.com -update >>/www/u/username/logs/cronaw.log 2>>/www/u/username logs/cronaw.err I'm assuming you did replace /u/username with your correct info...
change config=www/yourhost.com to config=www.yourhost.com
If you use the www in the name of your awstats.conf file then you need to use that in your crontab. In other words, whatever you have in the name of your conf file is what you need to use after the -config= specifier.
You can also just name the configuration file awstats.conf with no domain name. Then no matter what you give as the -config= part of the crontab it will use awstats.conf as default.
davea12
11-15-03, 03:40 PM
I get the file in cgi-bin, but when i click on update now...which its set up to do I get this when I run the update
Error: Couldn't open server log file "/www/d/davea/logs/access.log.1" Enter the log file type you want to analyze." : No such file or directory
Setup ('awstats.conf' file, web server or permissions) may be wrong.
See AWStats documentation in 'docs' directory for informations on how to setup awstats.
In your awstats.conf file, this line should read:
LogFile="/www/d/davea/logs/access_log.1"
From what you posted, you have a dot "." instead of the underscore "_" in the name of your access log file
You can, but why? The access_log.1 file is only updated once a day (around midnight to 2am Pacific time), so having your cron job run every hour will not give you anything more than running once per day. Plus, running it hourly will just put an unnecessary load on the servers.
Personally, I would set it to run around 2am every morning.
Did you chmod the awstats.pl file to 755? Usually that is the cause of a 500 error.
And, yes you can have it set to update manually plus have the crontab do an auto update. :)
davea12
11-15-03, 09:02 PM
Ok I am going to redo everything. can you tell me if the directions on http://support.powweb.com/awstats.html
are correct? thanks
That tutorial is what I used the first time I setup Awstats :)
Just remember that whatever you name your conf file is what you need to use for the -config= section of the crontab.
davea12
11-16-03, 01:19 AM
here is whats in my crontab
45 1 * * * /www/d/davea/cgi-bin/awstats.pl -config=datatechconsulting.com -update >>/www/d/davea/logs/cronaw.log 2>>/www/d/davealogs/cronaw.err
this is the name of my conf file
awstats.datatechconsulting.com.conf
chmod is set to 755.
any ideas on what it could be?
could I have removed file i needed
I am still getting server error 500
if u want to go in to it through ftp let me know i will give u the code and then change it later or is that a bad Idea?
I'm sure you've already done these correctly, but just to be sure.
You edited the awstats.pl file and conf file using a text editor (Notepad or better not WordPad or a word processor).
Uploaded those files to your cgi-bin in ASCII mode and then chmod the awstats.pl to 755.
Now when you go to yourdomain.com/cgi-bin/awstats.pl you get a Server 500 error, correct?
Don't worry about the crontab until you get awstats to run first. Fact is, I'd suggest removing the crontab file from your etc folder until Awstats will work without errors.
davea12
11-16-03, 02:48 AM
awstats. pl to what. There is nothing in the directions to edit that file? u dont mean the awstats.datatechconsuling.com.conf do u?
and yes I am using only notepad.
u getting completely sick of me yet?
tbonekkt
11-16-03, 02:50 AM
Weren't your awstats working correctly Friday evening?
Opps.. sorry, No you don't need to edit the .pl file, was just trying to think of everything and accidently included that in the post.
What server are you on?
davea12
11-16-03, 02:58 AM
I didn't know I would not see anything in the stats untill powweb runs an update. or am I wrong? Now everything is screwed up. I re did everything, and now I cant stop getting server 500 errors. I dont know whats going on.
tbonekkt
11-16-03, 02:59 AM
Originally posted by davea12
I didn't know I would not see anything in the stats untill powweb runs an update. or am I wrong? Now everything is screwed up. I re did everything, and now I cant stop getting server 500 errors. I dont know whats going on. You should be able to see your stats so as long as you enabled manual updating in the config file.
Make sure you uploaded the .pl and .conf files ins ASCII and edited in a text editor (Notepad).
EDIT: Also make sure you CMHOD the .pl scripts to 755.
davea12
11-16-03, 03:00 AM
not sure what u mean but this is from the admin site
Your site is hosted on: www06.powweb.com
ServerName: datatechconsulting.com
DocumentRoot: /www/d/davea/htdocs
davea12
11-16-03, 03:03 AM
are there any files or folders that need to be on the server besides the ones downloaded from awsats? I may have deleted something I shouldn't have.
?
In your cgi-bin, you should have
lib - folder + files
lang - folder + files
plugins - folder + files
awstats.pl - file
awstats.your_domain.conf - file
awredir.pl - file
In your htdocs you should have an icons folder with the associated files.
Only need to chmod the .pl files to 755 and I'm not sure you even need the awredir.pl in the cgi-bin.
davea12
11-16-03, 03:24 AM
this is my awstats.datatechconsulting.com.conf file
1st step: done like this:
LogFile="/www/d/davea/logs/access_log.1" Enter the log file type you want to analyze.
2nd step:
SiteDomain="datatechconsulting.com"
3rd step:
AllowToUpdateStatsFromBrowser=1
the file name is:
awstats.datatechconsulting.com.conf
the crontab entry is
45 3 * * * /www/d/davea/cgi-bin/awstats.pl -config=datatechconsulting.com -update >>/www/d/davea/logs/cronaw.log 2>>/www/d/davea/logs/cronaw.err
its named crontab
Could it be the server?
davea12
11-16-03, 03:27 AM
500 Internal Server Error
--------------------------------------------------------------------------------
There has been an error in processing your request. Please contact support@powweb.com with a brief description of your problem and what you were doing at the time.
--------------------------------------------------------------------------------
PowWeb Hosting WebMasters
--------------------------------------------------------------------------------
Webmasters, if you are having problems getting CGI, SSI or PHP scripts to work or need additional information such as paths to popular programs, please check the following before contacting PowWeb Technical Support.
Please check your error_log in your logs directory. If you do not have an error_log, please make sure logging is enabled for your website.
Please consult our CGI/SSI and PHP Category in Our Frequently Asked Questions.
Please make sure your script and directory pemissions are properly configuered as stated in our FAQ's.
If you do not want this Error Page, you can use the ErrorDocument redirect directive in your .htaccess file.
Sincerely,
PowWeb Development Staff
Looks like you have everything correct.
There have been issues with 500 Internal Server errors while they are upgrading the Operating System on the servers. Possible that this "could" be the problem. Take a look at your error_log file that is in your logs folder. You can open it with Notepad. Check the errors that are being generated when you try to access the awstats.pl file. If you don't understand what it says, post one of the error entries here and maybe someone will see where the problem lies.
As I said earlier, no need to worry about the crontab until you no longer have the 500 Internal Server errors. As soon as you can update manually one time, then try using the cron to do the updates automatically for you.
davea12
11-16-03, 03:45 AM
If anyone know whats going on please let me know.
here are the error from my ws_ftp.log files just try to login
2003.11.16 02:13 A C:\Program Files\WS_FTP\current files\cgi-bin\awredir.pl --> ftp02.powweb.com /cgi-bin awredir.pl
2003.11.16 02:13 A C:\Program Files\WS_FTP\current files\cgi-bin\awstats.pl --> ftp02.powweb.com /cgi-bin awstats.pl
2003.11.16 02:13 A C:\Program Files\WS_FTP\current files\cgi-bin\awstats.www.datatechconsulting.com.conf --> ftp02.powweb.com /cgi-bin awstats.www.datatechconsulting.com.conf
2003.11.16 03:02 A C:\Program Files\WS_FTP\awstats\awstats\WS_FTP.LOG <-- datatechconsulting.com /cgi-bin WS_FTP.LOG
2003.11.16 03:02 A C:\Program Files\WS_FTP\awstats\awstats\crontab <-- datatechconsulting.com /etc crontab
2003.11.16 03:02 A C:\Program Files\WS_FTP\awstats\awstats\awredir.pl --> ftp02.powweb.com /cgi-bin awredir.pl
2003.11.16 03:02 A C:\Program Files\WS_FTP\awstats\awstats\awstats.datatechconsu lting.com.conf --> ftp02.powweb.com /cgi-bin awstats.datatechconsulting.com.conf
2003.11.16 03:03 A C:\Program Files\WS_FTP\awstats\awstats\awstats.pl --> ftp02.powweb.com /cgi-bin awstats.pl
2003.11.16 03:03 A C:\Program Files\WS_FTP\awstats\awstats\crontab --> ftp02.powweb.com /cgi-bin crontab
also when I upload with ws_ftp one of the upload files in the upload windows say
error 550 can't change directory to ipswitch/products_downloads no such file or directory.
davea12
11-16-03, 11:38 AM
wow this must be the longest thread posted on here. Does that mean I am the Dumbest one on here?
tbonekkt
11-16-03, 11:43 AM
I'm just confused on how your stats went from working to not working...
davea12
11-16-03, 12:05 PM
they never updated automaticly or from the web, I have done ever just like the directions. So I dont know.
tbonekkt
11-16-03, 12:06 PM
But they worked manually, right? The auto update involves crontab which you're having difficulties. But I was under the impression you could manually update them...
davea12
11-16-03, 12:10 PM
no they never showed any information. the web stats in the member ops shows 1575 hits but the awstats never showed anything. could it be something on the server or something else besides what I am doing?
tbonekkt
I send u a pm. let me know
tbonekkt
11-16-03, 03:59 PM
Check your PMs.
coan.net
11-19-03, 11:43 PM
I'm getting the same 500 error on a new account that I've created.
I have set up awstats on 2 other packages, so I believe everything is correct.
But it is like it is not running the .pl file (even if it is chmod 755 or 777)
... i'll continue to play with it.
davea12
11-24-03, 08:56 PM
Let me know if you figure it out. are you on server ftp02.powweb.com. This has been driving me crazy for over a week now.
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.