<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.saruman.biz/saruwiki/index.php?action=history&amp;feed=atom&amp;title=Change_MediaWiki_subpath</id>
	<title>Change MediaWiki subpath - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.saruman.biz/saruwiki/index.php?action=history&amp;feed=atom&amp;title=Change_MediaWiki_subpath"/>
	<link rel="alternate" type="text/html" href="https://www.saruman.biz/saruwiki/index.php?title=Change_MediaWiki_subpath&amp;action=history"/>
	<updated>2026-05-13T02:23:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.saruman.biz/saruwiki/index.php?title=Change_MediaWiki_subpath&amp;diff=2334&amp;oldid=prev</id>
		<title>Saruman!: Page started</title>
		<link rel="alternate" type="text/html" href="https://www.saruman.biz/saruwiki/index.php?title=Change_MediaWiki_subpath&amp;diff=2334&amp;oldid=prev"/>
		<updated>2009-02-07T17:39:37Z</updated>

		<summary type="html">&lt;p&gt;Page started&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Change MediaWiki pathname==&lt;br /&gt;
&lt;br /&gt;
By default, the MediaWiki instance will appear on your site in a subdirectory of your main site, e.g. &amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;http://www.saruman.biz/mediawiki&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;. This is not always what you want. If you want a different path name, e.g. just &amp;quot;wiki&amp;quot;, or maybe even &amp;quot;foobar&amp;quot;, you&amp;#039;ll have to make two changes:&lt;br /&gt;
&lt;br /&gt;
* You&amp;#039;ll have to change the &amp;#039;&amp;#039;apache.conf&amp;#039;&amp;#039; file that by default is in &amp;#039;&amp;#039;/etc/mediawiki&amp;#039;&amp;#039; - and that&amp;#039;ll have moved to &amp;#039;&amp;#039;/etc/mediawiki/&amp;lt;instancename&amp;gt;&amp;#039;&amp;#039; if you&amp;#039;ve followed the instructions to creat a [[Create_a_Wikifarm|wikifarm]]. In it, you find an Alias line that you&amp;#039;ll have to change; in the case of a change from &amp;#039;&amp;#039;/mediawiki&amp;#039;&amp;#039; to &amp;#039;&amp;#039;/foobar&amp;#039;&amp;#039; to&lt;br /&gt;
 Alias /foobar /var/lib/mediawiki&lt;br /&gt;
* You&amp;#039;ll also have to change a line in &amp;#039;&amp;#039;LocalSettings.php&amp;#039;&amp;#039; which should be in the same location as &amp;#039;&amp;#039;apache.conf&amp;#039;&amp;#039;. The line defines the path name for all PHP scripts to use, so in the case of a change from &amp;#039;&amp;#039;/mediawiki&amp;#039;&amp;#039; to &amp;#039;&amp;#039;/foobar&amp;#039;&amp;#039;, it becomes&lt;br /&gt;
 $wgScriptPath       = &amp;quot;/foobar&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Naturally, you&amp;#039;ll have to restart your Apache2 webserver in order to effectuate the changes.&lt;/div&gt;</summary>
		<author><name>Saruman!</name></author>
	</entry>
</feed>