Event Timeline
Comment Actions
Pasting db setup here to make it easier to find:
sudo apt-get install mariadb-server sudo sed -i -e 's/bind-address/#bind-address/g' /etc/mysql/my.cnf sudo service mysql restart
Comment Actions
Two remarks, from when I used this script to install the new wikidata-constraints wiki on labs (woo!):
- On line 12, mysql-client was not installed because it conflicted with mariadb-server-10.0. I first tried removing mariadb-server because I didn’t know what it was, which was a stupid solution; the correct solution, I think, is to remove mysql-client from the package list. mariadb-client-core-10.0, which is pulled in by mariadb-server, provides a /usr/bin/mysql, but apparently does not provide a mysql-client package that apt is aware of.
- I had to change $wgScriptPath from "/wiki" to "" in LocalSettings.php, since line 23 clones MediaWiki directly into the Apache DocumentRoot, not into wiki/. ("/" as $wgScriptPath does not work, by the way.)
Apart from those minor issues, this worked pretty well, so thanks for putting this document together!
Comment Actions
One more small goodie for LocalSettings.php:
$wgUsePrivateIPs = true; $wgSquidServers = [ 'IP HERE' ];
Without that, all anonymous edits will be credited to the proxy’s IP (not sure if that’s public, so I replaced it with IP HERE above).