Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-06-2021, 06:51 AM   #1
LQ Newbie
Registered: Oct 2021
Posts: 6

Rep: Reputation: Disabled
Mediawiki keeps redirecting to old IP after the server got a new IP

I have installed mediawiki at home and it has worked without issues. But recently I changed ip addresses of my rasperry pi's so it would make more sense. raspberry-pi-1 would get and raspberry-pi-2 would get, etc.

The mac addresses are entered into the home router to lock it down, so the raspberry pi's are still set up for dynamic ip's. Not sure if it's relevant.

But now when I go to the mediawiki page like, it takes a long time because it tries to redirect to, which was the old url for the frontpage. It should redirect to 101 and not 2. It's with every redirect, like after making a change to a wiki page to save it, the change is saved, but then it times out because it is redirecting to the old ip again.

The system is Ubuntu Server 21.04. I am not sure if this is a linux- or mediawiki-issue.
Old 12-06-2021, 08:01 AM   #2
LQ Newbie
Registered: Oct 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
It turns out that the ip was located in the settings file called LocalSettings.php. It is autogenerated, so I wasn't aware.

The file is located in /var/lib/mediawiki/LocalSettings.php

And what needs to be changed is this.

$wgServer = "";


mediawiki, ubuntu 21.04

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I click About Me here and it keeps redirecting me to login again; why? linux-man Linux - Newbie 1 12-21-2016 07:43 PM
[SOLVED] Redirecting SMB traffic destined for old Samba server to new one Sheridan Linux - Networking 1 04-06-2015 08:07 AM
Ubuntu Server 10.04 CLI Headless server | Allowing user to SUDO and Hosting Mediawiki wulfsburg Ubuntu 2 06-09-2012 01:58 AM
I got a question about redirecting to /dev/null trist007 Linux - Newbie 3 12-13-2009 06:34 PM
Redirecting from old site to new site Sheridan Linux - Networking 1 02-02-2008 12:52 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration