Hi
Can anyone help with an awstats problem I have.
What I need to do is add some extra fileds to awstats config file for some domain. Thats easy.
Once thats done i then run :Code:/home/blah/tmp/awstats/awstats.blahbalh.com.conf
That starts the stats running.Code:/scripts/runweblogs blah
As it starts it seems to edit the config file and set it back to its default !!!!!
That seems a bit stupid so I looked at the code.
the runweblogs seems to call this file /usr/local/cpanel/cpanellogd
In there (line 804) I see this
From that It seems to take the default config file and output (over) my config file i edited.Code:open( AWCONF, '<', '/usr/local/cpanel/etc/awstats.conf' ); open( AWC, '>', "${outputdir}/awstats.${domain}.conf" );
I cant find any error checking code to say if the file exist DONT overwrite it .. grrrr
Does anyone know that when the stats are normally run at night, does it also set the awstats domain config file back to its default ?
Or does it use a differnet method to run them ?
I have just made the config file immutable, to see if that works. (its a hack and not a permanent solution)
any help appreciated.
Cheeers
Andy



LinkBack URL
About LinkBacks
Reply With Quote




