derwin: this is not about the main site, it's about the wiki
2014-10-07 28054, 2014
derwin
ah!
2014-10-07 28001, 2014
ianmcorvidae
and yes, we do have caching on the main site, but it doesn't help as much as it should
2014-10-07 28012, 2014
ianmcorvidae
long story with that, but anyway :)
2014-10-07 28052, 2014
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
2014-10-07 28008, 2014
ianmcorvidae
hm, that may be historical
2014-10-07 28011, 2014
ianmcorvidae
and I wonder if anyone cares
2014-10-07 28015, 2014
legoktm
unless you guys really want that, I'd recommend turning it off
2014-10-07 28020, 2014
ianmcorvidae
(suspicion is nobody cares)
2014-10-07 28033, 2014
legoktm
it's so unperformant that we're planning to remove it from MediaWiki in the next release
2014-10-07 28038, 2014
nikki
I didn't even know we had it :P
2014-10-07 28039, 2014
ianmcorvidae
let's see, other weirdnesses we have
2014-10-07 28052, 2014
nikki
I'm not sure it's much use to us anyway
2014-10-07 28057, 2014
ianmcorvidae
we have some stuff to hack in https support behind our reverse proxy, not sure if done correctly
2014-10-07 28007, 2014
ianmcorvidae
we have an IsTrustedProxy hook, related
2014-10-07 28025, 2014
legoktm
$wgDisableCounters = true;
2014-10-07 28029, 2014
ianmcorvidae
some extra groups/permissions which IIRC didn't bring much complication
2014-10-07 28051, 2014
derwin agrees that you should not log hits in your database.
2014-10-07 28044, 2014
ianmcorvidae
no more counters!
2014-10-07 28005, 2014
ianmcorvidae
if someone complains I can worry about it, doubt anyone who doesn't read this will even notice :P
2014-10-07 28029, 2014
legoktm
:D
2014-10-07 28046, 2014
ianmcorvidae
do you guys have a recommended nginx config, btw?
2014-10-07 28020, 2014
legoktm
hmm, I don't think so
2014-10-07 28027, 2014
ianmcorvidae
I think I mostly just made something up that seemed to work properly
2014-10-07 28048, 2014
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
2014-10-07 28034, 2014
CallerNo6
I always forget there's a main wp page.
2014-10-07 28009, 2014
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
2014-10-07 28031, 2014
ianmcorvidae
should be, I think
2014-10-07 28047, 2014
ianmcorvidae
well, I mean, it writes to images I guess
2014-10-07 28057, 2014
legoktm
also this is running ubuntu or debian right?
2014-10-07 28014, 2014
ianmcorvidae
ubuntu 12.04, yes
2014-10-07 28040, 2014
chirlu`
Seems 32 bit wouldn’t be enough for 1.5 years.
2014-10-07 28026, 2014
legoktm
you can install the 'php-wikidiff2' package for faster diff rendering
2014-10-07 28059, 2014
ianmcorvidae
and presumably some localsettings bits
2014-10-07 28008, 2014
legoktm
and set $wgExternalDiffEngine = 'wikidiff2'
2014-10-07 28015, 2014
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
2014-10-07 28041, 2014
chirlu`
Sorry. :)
2014-10-07 28015, 2014
nikki
it was amusing to imagine us simultaneously adding it though XD
2014-10-07 28035, 2014
ianmcorvidae
er, wait, this wikidiff2 package is trying to make me install apache and the mediawiki package
2014-10-07 28040, 2014
ianmcorvidae
this seems undesirable
2014-10-07 28012, 2014
legoktm
wha
2014-10-07 28036, 2014
chirlu`
We also did some relationships at the same time.
2014-10-07 28053, 2014
chirlu`
You won with respect to the “recorded at” ones.
2014-10-07 28003, 2014
nikki
ah, I wondered if you were doing any of those
2014-10-07 28028, 2014
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...
2014-10-07 28026, 2014
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.”).
2014-10-07 28041, 2014
ianmcorvidae
other things seem to use configurations in /etc/php5/conf.d
2014-10-07 28044, 2014
ianmcorvidae tries to put something there
2014-10-07 28057, 2014
nikki
oh... perhaps I should've read it properly instead of just looking at when it would be released XD
2014-10-07 28058, 2014
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
2014-10-07 28009, 2014
nikki
I think I can
2014-10-07 28051, 2014
nikki
apparently I can
2014-10-07 28056, 2014
nikki
since I just did :P
2014-10-07 28003, 2014
ianmcorvidae
yeah, you're set to bureaucrat/administrator
2014-10-07 28020, 2014
ianmcorvidae
which presumably I should get myself set to, but :P
2014-10-07 28025, 2014
ianmcorvidae
that tagline page also, I didn't get that one
2014-10-07 28006, 2014
ianmcorvidae
whoo
2014-10-07 28040, 2014
legoktm
is there a dedicated job runner set up?
2014-10-07 28057, 2014
legoktm
(what is $wgJobRunRate set to?)
2014-10-07 28048, 2014
ianmcorvidae
I think there's no dedicated job runner
2014-10-07 28007, 2014
ianmcorvidae
yeah, it's set to default
2014-10-07 28018, 2014
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
2014-10-07 28024, 2014
legoktm
and $wgJobRunRate=0;
2014-10-07 28054, 2014
legoktm
if one minute is too frequent, you could do every 5 or 10 minutes, and just increase maxtime/maxjobs accordingly
2014-10-07 28034, 2014
legoktm
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
2014-10-07 28056, 2014
ianmcorvidae
I'd probably just have www-data run it, unless that's ill-advised for some reason
2014-10-07 28024, 2014
ianmcorvidae
admittedly adding things to cron is maybe unwise given we already suck at updating it, but :P
2014-10-07 28057, 2014
legoktm
www-data should be fine
2014-10-07 28031, 2014
ianmcorvidae wonders how many of the php files actually need to be directly executed
2014-10-07 28055, 2014
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
2014-10-07 28022, 2014
ianmcorvidae
well, opensearch is for browser "add search engine" things, I see that loaded directly
2014-10-07 28039, 2014
legoktm
ah, right
2014-10-07 28033, 2014
DWSR2 joined the channel
2014-10-07 28024, 2014
ianmcorvidae
heh, now downloads the php files
2014-10-07 28039, 2014
ianmcorvidae
(in /includes/)
2014-10-07 28023, 2014
legoktm
make sure your LocalSettings.php/file with passwords in it isn't web accessible :P
2014-10-07 28040, 2014
ianmcorvidae
yeah, that one's not XD
2014-10-07 28034, 2014
legoktm
if you're feeling ambitious we can turn on the file cache
2014-10-07 28030, 2014
legoktm
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
2014-10-07 28001, 2014
legoktm
it kind of acts like a frontend cache
2014-10-07 28015, 2014
ianmcorvidae
sure, may as well
2014-10-07 28053, 2014
ianmcorvidae
needs $wgCacheDirectory I guess
2014-10-07 28055, 2014
legoktm
yeah
2014-10-07 28016, 2014
legoktm
is all of your settings stored in the LocalSettings.php file? or do you include/require other files in it?
2014-10-07 28025, 2014
ianmcorvidae
all localsettings
2014-10-07 28033, 2014
legoktm
ok perfect, MW handles that nicely by default
2014-10-07 28007, 2014
legoktm
you don't need $wgCacheDirectory necessarily
2014-10-07 28017, 2014
legoktm
by default file cache uses $wgUploadDirectory/cache
2014-10-07 28047, 2014
ianmcorvidae
ah, I have it using $IP/cache which is nicely forbidden by nginx config
2014-10-07 28053, 2014
ianmcorvidae
which I think should be good
2014-10-07 28008, 2014
ianmcorvidae
already see an l10n_cache-en.cdb file
2014-10-07 28026, 2014
legoktm
that's localization cache, and also good :D
2014-10-07 28051, 2014
legoktm
so it should just be $wgUseFileCache = true; and making sure $wgShowIPinHeader = false;
2014-10-07 28002, 2014
ianmcorvidae
alright, that's on
2014-10-07 28014, 2014
ianmcorvidae
it's putting the cache files in the upload directory, which I'm not sure if is a security issue
2014-10-07 28032, 2014
ianmcorvidae
(rather than $IP/cache, I guess I'd need to set $wgFileCacheDirectory)
2014-10-07 28037, 2014
legoktm
it shouldn't be given that it's just wiki content...