![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Apache on cPanel weirdness: "combined combined combined."
If you have this problem, where you can't get anything out of awstats and it turns out to be because your Apache logs contain nothing but the word "combined", once per line, over and over — this is because cPanel b0rked your httpd.conf and left out the LogFormat lines. Apache then presumes the word "combined" at the end of the CustomLog line is not a direction on how to log, but the actual log format. Cut'n'paste them from httpd.conf.orig and somehow beat cPanel into putting them into its RCS.
(cPanel is source-available proprietary software to make LAMP stupid. Our host is at the stage where I'm very glad I have years of expertise beating Apache around, and sudo.)
no subject
mod_macro - it's ace. I found it last month, we're using it on live and it's made our lives so much easier already.
(The author is absolutely determined it will not become Turing-complete - it does only very stupid substitution. He says if you want anything fancier, use Perl and abandon all hope.)
We have a pile of stuff like this in our apache/conf/ directories:
vhost-default.conf (relevant section, at end):
httpd.conf (load the module, define the macro, use the macro)
vhost-farnarkle.conf:
no subject
no subject
We're using 1.1.6 because our Apaches are all 2.0-series - the current 1.10 is for Apache 2.2.
no subject
no subject
no subject
no subject
(if it's 2.x series. Compiling 1.3 from source is TEH HORROR TEH HO̵R҉R͏O͘R͜ ̶ ̵T̀͝E̡͜҉H̵̢ H̡͘Ó͘R̷̛҉R͏̨O̶̷̸R̢͢ ̸TE͝H ̡͘͡H̡Ó͡R̡̧̀R̕O̕Ŗ