derwin: this is not about the main site, it's about the wiki
derwin
ah!
ianmcorvidae
and yes, we do have caching on the main site, but it doesn't help as much as it should
long story with that, but anyway :)
legoktm
on the wiki, you guys have hitcounters on, which are a pretty big performance hit: "This page has been accessed 1,255,649 times." <-- causes a db write on every page load
ianmcorvidae
hm, that may be historical
and I wonder if anyone cares
legoktm
unless you guys really want that, I'd recommend turning it off
ianmcorvidae
(suspicion is nobody cares)
legoktm
it's so unperformant that we're planning to remove it from MediaWiki in the next release
nikki
I didn't even know we had it :P
ianmcorvidae
let's see, other weirdnesses we have
nikki
I'm not sure it's much use to us anyway
ianmcorvidae
we have some stuff to hack in https support behind our reverse proxy, not sure if done correctly
we have an IsTrustedProxy hook, related
legoktm
$wgDisableCounters = true;
ianmcorvidae
some extra groups/permissions which IIRC didn't bring much complication
derwin agrees that you should not log hits in your database.
no more counters!
if someone complains I can worry about it, doubt anyone who doesn't read this will even notice :P
legoktm
:D
ianmcorvidae
do you guys have a recommended nginx config, btw?
legoktm
hmm, I don't think so
ianmcorvidae
I think I mostly just made something up that seemed to work properly
legoktm
we have example configs to help setting up /wiki/, but this is in root :/
haha I was just gonna say I wonder if it can even count that high
CallerNo6
I always forget there's a main wp page.
legoktm
ianmcorvidae: is the webserver user able to write to the filesystem? (or at least a part of it?) we could enable some extra file caching then
ianmcorvidae
should be, I think
well, I mean, it writes to images I guess
legoktm
also this is running ubuntu or debian right?
ianmcorvidae
ubuntu 12.04, yes
chirlu`
Seems 32 bit wouldn’t be enough for 1.5 years.
legoktm
you can install the 'php-wikidiff2' package for faster diff rendering
ianmcorvidae
and presumably some localsettings bits
legoktm
and set $wgExternalDiffEngine = 'wikidiff2'
nikki
chirlu`: btw, unrelated, but you totally confused me the other day by adding the first disc's disc id for that release in the time it took me to rip the second disc :P
chirlu`
Sorry. :)
nikki
it was amusing to imagine us simultaneously adding it though XD
ianmcorvidae
er, wait, this wikidiff2 package is trying to make me install apache and the mediawiki package
this seems undesirable
legoktm
wha
chirlu`
We also did some relationships at the same time.
You won with respect to the “recorded at” ones.
nikki
ah, I wondered if you were doing any of those
ianmcorvidae
yeah, it wants to install mediawiki and php5 (don't have the main php5 metapackage at present)
I don't see the diff's cache key in the HTML source, weird...
chirlu`
I had a prewarning from the website, in the description of what the deluxe edition contains (“Im vorliegenden Demo hört Ihr noch den ursprünglich gedachten Text.”).
ianmcorvidae
other things seem to use configurations in /etc/php5/conf.d
ianmcorvidae tries to put something there
nikki
oh... perhaps I should've read it properly instead of just looking at when it would be released XD
legoktm
argh, I was looking at the current code, not 1.19. yeah, it'll try to shell out for the diff instead of falling back to PHP
I should dig up the sysop password so I can edit those, heh
nikki
I think I can
apparently I can
since I just did :P
ianmcorvidae
yeah, you're set to bureaucrat/administrator
which presumably I should get myself set to, but :P
that tagline page also, I didn't get that one
whoo
legoktm
is there a dedicated job runner set up?
(what is $wgJobRunRate set to?)
ianmcorvidae
I think there's no dedicated job runner
yeah, it's set to default
legoktm
On another wiki I run, we have a cronjob every minute that does: php /path/to/mw/maintenance/runJobs.php --maxjobs 100 --maxtime 55
and $wgJobRunRate=0;
if one minute is too frequent, you could do every 5 or 10 minutes, and just increase maxtime/maxjobs accordingly
just need to make sure whatever user executes that can also write to the filesystem, and any files they create will also be read/writable by the webserver
ianmcorvidae
I'd probably just have www-data run it, unless that's ill-advised for some reason
admittedly adding things to cron is maybe unwise given we already suck at updating it, but :P
legoktm
www-data should be fine
ianmcorvidae wonders how many of the php files actually need to be directly executed
ianmcorvidae
(right now I have nginx passing anything \.php$ to php-fpm, but it feels like I could be more paranoid about that :P
api, img_auth (you actually don't need this one since it's not a private wiki), index, load, opensearch_desc (I don't even know what this is), profileinfo (don't need this since I'm guessing you don't have profiling turned on), redirect (I think this is gone in modern versions...) thumb, thumb_handler
ianmcorvidae
well, opensearch is for browser "add search engine" things, I see that loaded directly
legoktm
ah, right
DWSR2 joined the channel
ianmcorvidae
heh, now downloads the php files
(in /includes/)
legoktm
make sure your LocalSettings.php/file with passwords in it isn't web accessible :P
ianmcorvidae
yeah, that one's not XD
legoktm
if you're feeling ambitious we can turn on the file cache
when logged-out users hit the wiki, they'll get the page served from the filesystem instead of pulling it out of the db and rendering it
it kind of acts like a frontend cache
ianmcorvidae
sure, may as well
needs $wgCacheDirectory I guess
legoktm
yeah
is all of your settings stored in the LocalSettings.php file? or do you include/require other files in it?
ianmcorvidae
all localsettings
legoktm
ok perfect, MW handles that nicely by default
you don't need $wgCacheDirectory necessarily
by default file cache uses $wgUploadDirectory/cache
ianmcorvidae
ah, I have it using $IP/cache which is nicely forbidden by nginx config
which I think should be good
already see an l10n_cache-en.cdb file
legoktm
that's localization cache, and also good :D
so it should just be $wgUseFileCache = true; and making sure $wgShowIPinHeader = false;
ianmcorvidae
alright, that's on
it's putting the cache files in the upload directory, which I'm not sure if is a security issue
(rather than $IP/cache, I guess I'd need to set $wgFileCacheDirectory)
legoktm
it shouldn't be given that it's just wiki content...