this post was submitted on 16 Jun 2023
20 points (100.0% liked)

Selfhosted

40433 readers
569 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I currently host a couple small wikis for worldbuilding information, but the hosting provider for that is going down in a few months, so I'm looking for ways to self host what I got.

I've never self hosted with Mediawiki before so this is brand new to me, I've already spent a couple hours messing around with Docker but haven't gotten too far into that. OS is Manjaro/Endeavour Linux between two systems.

Not necessarily looking to host it online immediately to start with, though in the future I'd like to do so when I can get the proper hardware preparations for it, but for now I just want to host it locally to get it set up.

you are viewing a single comment's thread
view the rest of the comments
[–] rarkgrames 1 points 1 year ago

I installed mediawiki for the first time yesterday. Just did a straight install on to a Linux VM.

One thing that caught me out was that it would take a loooong time to open, but once it did it was ok. It turns out I hadn't set up any caching and this isn't done by default. It's easy enough to do though in the LocalSettings.php config file. Open it in Nano (or your text editor of choice) and find the first line you see below.

$wgCacheDirectory = "$IP/cache";
$wgFileCacheDirectory = "$IP/cache";
$wgEnableSideBarCache = true;
$wgUseFileCache = true;
$wgShowIPinHeader = false;
$EnableParserCache = true;
$wgCachePages = true;

$wgMainCacheType = CACHE_ACCEL;
$wgMessageCacheType = CACHE_ACCEL;
$wgParserCacheType = CACHE_ACCEL;
$wgMemCachedServers = array();

In my installation the first line of the above was commented out so I uncommented it and then added the rest of the stuff you see there. Then, just make sure the cache folder has the correct permissions set and you should be good to go.

Otherwise it was pretty simple. I did have to make sure I had installed the pre-reqs as listed in the mediawiki download page - ensuring apache, mariaDB etc were installed and running, and then it was pretty simple from there on in.

Also, this video is quite useful if you're not sure on certain steps: https://www.youtube.com/watch?v=QpRfwCUC2uM&t=137s