LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-06-2021, 06:51 AM   #1
taumuco
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 192.168.1.101 and raspberry-pi-2 would get 192.168.1.102, 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 http://192.168.1.101/mediawiki, it takes a long time because it tries to redirect to http://192.168.1.2/mediawiki/index.php/Frontpage, 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
taumuco
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 = "192.168.1.1.2";
 
  


Reply

Tags
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:39 AM.

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