Is there a way to configure webalizer per web site? From what I can see in webalizer.php, it uses /root/ispconfig/scripts/shell/webalizer.conf for each and every web site, which makes the resulting statistics not very usefull. Must I modify webalizer.php in such a way that it can read web site specific config files? If so, I guess I have to apply the modification each time I update ISPConfig. Or am I missing something and is there an alternative way to configure webalizer?
Why should the statistics not be useful? All relevant variables that need to be changed for the different sites are given on the shell and not taken from this conf file. If you dont like this setup, you will have to change the webalizer.php file.
Thanks for the reply Till. I was under the impression that all (or most) of the configuration options have to be set in webalizer.conf. I don't understand what you mean by that. Could you clarify it a bit?
Have a look in the webalizer.php file, you will see that the relevant variables are passed as command line parameter to the webalizer binary.
As I pointed out in my first post, I did that and it's why I know that the configuration file is the only command line variable which is passed as a fixed path instead of a shell variable. If that fixed path were replaced with a variable which is initialized for instance with .../web/log/webalizer.conf if it exists or otherwise with the default /root/ispconfig/scripts/shell/webalizer.conf, it would allow for site specific webalizer configuration. Obviously I do know how modify webalizer.php appropriately, but it also means I have to make that modification with each ISPConfig update and I prefer not to mess with the standard ISPConfig code. So I was hoping for another solution which I guess there isn't.
Hi Falko. Thanks for your input as well and I realize it currently isn't supported. I am merely looking for a way to make a maintainable adjustment, which I don't have to apply with every ISPConfig update. ISPConfig updates always make me a bit nervous because I host a couple of sites for others people. Adjustments to the standard ISPConfig code, especially ones that I have to apply with every update, obviously increases the risk of errors occurring. Have a nice weekend.