Jeffrey Carter's picture

We just installed the Server using the image from https://www.turnkeylinux.org/download?file=turnkey-mediawiki-15.2-stretch-amd64.ova.

After install when we try to go the the start page https://192.168.1.100 (Server IP) we get redirected to example.com.

I'm brand new to this and really not sure what to do to fix it.

Thanks for your Help

Forum: 
Jeremy Davis's picture

MediaWiki requires that a domain be set and by default, it's set to www.example.com. If you didn't change that when you ran the firstboot scripts, then that would explain why it's redirecting (it will redirect to the domain set at first boot).

If you're just testing, then possibly the quickest workaround is to add a hosts file entry to point www.example.com to the IP of your VM (i.e. 192.168.1.100). Alternatively, you could re-run the MediaWiki firstboot script and set the IP address as the domain. Either way, only use that for testing, or make sure that you set a static IP for your VM.

To rerun the firstboot script from the commandline:

/usr/lib/inithooks/bin/mediawiki.py

Add new comment