webalizer not finding $homedir/webalizer.conf

jeff_s

Member
May 5, 2005
5
0
151
I have sites hosted on a cPanel-based shared hosting server.
(Linux 2.4.31, Apache/1.3.33, CPanel 10.6.0-RELEASE 201, Webalizer 2.01)

I am using a custom webalizer.conf file for each of my sites on that server. That file is located at /home/myacct/webalizer.conf

My custom webalizer.conf files worked fine for months and months, until...

Around the beginning of September, the nightly webalizer run stopped using my custom webalizer.conf file. Now I get the generic version. My provider tells me they "loaded the latest cPanel security update" around the time it stopped working.

Any ideas? Has the location for the file been changed?

In these forums I found the script snippet below which looks like it points webalizer at
$homedir/webalizer.conf
But now support at my provider says they can find no reference to
$homedir/webalizer.conf
in the current cpanel webalizer scripts.

(I have only whm/cPanel/ftp access to the server ... no shell login)

Thanks for any help.
-Jeff

---------------------------------------
snippet of
/usr/local/cpanel/cpanellogd
(as it was at some point in time)
found in these forums
---------------------------------------
if (-e "$homedir/webalizer.conf") {
logsystem("$root/bin/logrunner ${cpunum}.0
$root/3rdparty/bin/${weblang}webalizer -c $homedir/webalizer.conf -N 10 -D
$homedir/tmp/webalizer/dns_cache.db -R 250 -p -n ${access_log_name}
-o $homedir/tmp/webalizer ${waccess_log}");
} else {
logsystem("$root/bin/logrunner ${cpunum}.0
$root/3rdparty/bin/${weblang}webalizer -N 10 -D
$homedir/tmp/webalizer/dns_cache.db -R 250 -p -n ${access_log_name}
-o $homedir/tmp/webalizer ${waccess_log}");
}
 

jeff_s

Member
May 5, 2005
5
0
151
webalizer not finding $homedir/webalizer.conf: raise a bug?

I scanned the cPanel changelogs and found nothing that mentions touching the webalizer scripts.

If any of those who replied as also having this problem has cPanel bug-raising privileges, would you consider raising a bug on this? My hosting provider has not been too supportive in helping to track down and fix this.

Thanks!
jeff_s
 

lewis21

Member
Apr 23, 2003
6
0
151
webalizer not finding $homedir/webalizer.conf: raise a bug?

its now looked for in the output dir, it changed without notice during an update (typical)

ie. $homedir/tmp/webalizer/webalizer.conf

I have already raised a ticket with this and they say its not a support issue but a bug/feature request and to go the bugzilla route.

I personally think this is wrong as the feature was already there in the first place, its just dissapeared without notice. So they should fix it.

At least for backward compatibility it should check for one in the homedir "and" also the output dir, fair enough i think.

or you could place one in /etc/webalizer.conf instead as this then overides all the other ones in the homedirs (ok if you need custom global webalizer settings i guess)

Hope this helps someone

Lewis
 

jeff_s

Member
May 5, 2005
5
0
151
Thanks, Lewis. You hit the nail on the head.

I moved my webalizer.conf from $homedir to $homedir/tmp/webalizer and it is again working fine.

I received this reply to my bug report #3283:

------- Comment #1 from [email protected] 2005-09-27 15:58 -------
This was moved and was an intended move.
So I guess that's that. The location of the file is moved. It does seem odd that a configuration file is in a tmp directory. My interpretation of "tmp" is "temporary".

C'est la vie!

-Jeff_s
 

forlinuxsupport

Well-Known Member
PartnerNOC
Dec 22, 2004
386
0
166
cPanel Access Level
Root Administrator
---- Comment #1 from [email protected] 2005-09-27 15:58 -------
This was moved and was an intended move.
Boy you have to love the detailed explanations from cpanel..

Umm.. Why would you need to move it ?? come on cpanel you can do better than that surely ??

What is the reasoning behind moving it ? Does someone at cpanel say.. um lets see if we can break all those peoples custom config files and mess up their statistics. and .. we wont tell them :)

Wot a joke..... Statistics are very important to some people..
:mad: