AwStats plugin for DA [Still in BETA]

Thanks a lot

Thanks a lot for making it possible to install awstats in such an easy manner.

Last day, i almost spent 12 hours trying to install awstats and it just wouldnt (my mistake that i didnt browse these forums before :( ).

Well but now thanks a bunch to you that it is actually installed on the server!
 
changes

i made some custom changes to the new version, (because my perl is located in a different spot, so when i updated last time everything went crazy and people couldn't figure out how to get it to work again)

but now i get this error when i am the admin trying to view the settings,
Unable to execute your request

Details

The requested file does not have read or execute permissions
and the config button doesn't show for users
 
The requested file does not have read or execute permissions

That error is indicative of either a chmod permission issue with the file being accessed or the program is unable to access the directory that file resides in (or one above it, path transversal).

In lemans terms check ls -al in the directories where your awstats is residing.

-Justin
 
AWstats stopped auto updating when DA was upgraded

My colocated server firm installed an upgrade to DA 1.25.0 on 9-21-05. The upgrade apparently (not positive about it but seems very likely the cause) stopped my Cron Job from working which updated the AWstats each morning. It had been working perfectly all year until 9-21.

In a failed attempt to solve that problem we also updated AWstats and the screen now says I am running "Advanced Web Statistics 6.4 - build 1.814" which stats update did not help. In fact, it actually made matters worse by somehow wiping out all my virtual site paswrds but that paswrd problem was later fixed.

For 2 weeks now we have been talking to the colocated host about this but getting no where with support. At first they said they did not understand the issue but that is very odd since we made it clear from the start.

Next they wrongly claimed the Cron Job works perfectly basing that claim on the fact the stats work if uodated manually, which makes no sense at all. When I persisted in telling them the stats are not updating they strangely still insist the Cron Job works fine and I get the impression they simply do not believe the stats are not updating each morning for some odd reason.

That's attitude is odd because as far as I know they have never even looked at the site stats to verify it since they have never asked me for the names of the many sites not updating (except one site which I am forced to manually update every day). Of course, I am quite disappointed in the poor support and the fact this problem has been ongoing so long and I need the stats working every day.

Has anyone else experienecd this problem with the stats not updating automatically after DA update was installed? If so do you have a fix to this or is it a bug without a current fix? Thanks.
 
I think DA leaves the cron alone when its running its upgrade. Your problem seems unique.
 
Chrysalis said:
I think DA leaves the cron alone when its running its upgrade. Your problem seems unique.

That sure is an amazing coincidence because the stats were auto updating flawlessly all year and stopped working the exact same date the DA version was updated!

Hard to believe it's an anomaly and a coincidence. What else could possibly cause this to happen?
 
trader said:
That sure is an amazing coincidence because the stats were auto updating flawlessly all year and stopped working the exact same date the DA version was updated!

Hard to believe it's an anomaly and a coincidence. What else could possibly cause this to happen?

What is the line in your CronJob ?
Execute the line through ssh and wich output does it give ?
 
So in the latest awstats version you have, do we need to configure the cron job? Sorry for this "gay" question!

Haha~ Is hard to move from cPanel to DirectAdmin.
 
I have installed the awstats plugin successfully on my server, but now to get the stats, i have got to click on the update now link everytime i need updated stats.

Is it possible to automate it? Can i use cron to do this? If yes, could you please guide me as to how can i do it.
 
webstars said:
I have installed the awstats plugin successfully on my server, but now to get the stats, i have got to click on the update now link everytime i need updated stats.

Is it possible to automate it? Can i use cron to do this? If yes, could you please guide me as to how can i do it.

read completely the first post of this thread ...
 
Titam said:
read completely the first post of this thread ...

Hi,
I had read it, but from there i couldnt figure which file is being talked about when said that


Replace:-

10 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

With:-

10 0 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl && echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

In which file do i find and replace that code?
 
I have made the change and now already have waited for more than 10hours and still it doesnt show any auto update stuff.

Do i need to restart directadmin or something like that after editing that cron.d file?
 
webstars said:
I have made the change and now already have waited for more than 10hours and still it doesnt show any auto update stuff.

Do i need to restart directadmin or something like that after editing that cron.d file?

Cron.d file ? I meant the da cron in that directory:

/etc/cron.d/directadmin_cron

:s You must replace / comment out and add the line.
 
I now see it is not just me!

My AW Cron also not auto-updating after being down for 3-weeks. It only updates manually by clicking 'update now' Until the date of the DA Upgrade 9-21 it worked perfectly for at least 1-yr with never one night of non-auto-updating.

My colocated firms support is unable to fix the problem after much effort, even though in the past they were always good with support issues, but no more it seems.

Surely there must be an issue with old CronJobs not working with the latest DA upgrade? What can we do about this?
 
My cron still runs every night on both CentOS as FreeBSD. So there must be some thing changed in the cronjob. Did the update, overwriten the file in /etc/cron.d (directadmin_cron) ?
 
fusionictnl said:
Cron.d file ? I meant the da cron in that directory:

/etc/cron.d/directadmin_cron

:s You must replace / comment out and add the line.

That was exactly what i did, but still know effect
 
yes, i tried to execute the command from shell, and it worked perfectly.

Then infact i even tried to keep the original line as it is instead of repacing it and then added the line

20 0 * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl

Still no success. What do i do now?
 
webstars said:
yes, i tried to execute the command from shell, and it worked perfectly.

Then infact i even tried to keep the original line as it is instead of repacing it and then added the line



Still no success. What do i do now?

You could try using the full path to your perl binary, same as executing a php file through cron.
 
Back
Top