<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TechBuddy &#187; MediaWiki</title>
	<atom:link href="http://techbuddy.in/category/mediawiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://techbuddy.in</link>
	<description>Technology blog</description>
	<lastBuildDate>Sun, 26 Jun 2011 08:27:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to run Maintenance scripts on MediaWiki without Shell Access.</title>
		<link>http://techbuddy.in/2009/07/30/how-to-run-maintenance-scripts-on-mediawiki-without-shell-access/</link>
		<comments>http://techbuddy.in/2009/07/30/how-to-run-maintenance-scripts-on-mediawiki-without-shell-access/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 16:15:13 +0000</pubDate>
		<dc:creator>Techbuddy</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[Maintenance scripts]]></category>
		<category><![CDATA[without Shell Access]]></category>

		<guid isPermaLink="false">http://techbuddy.in/?p=45</guid>
		<description><![CDATA[MediaWiki is very popular for wiki creation. Though it is so much used, the irony is, most of settings has to be set using LocalSettings.php file. Also the maintenance scripts has to be run by command prompt. Maintenance scripts are used for various update task on MediaWiki. 
Recently I faced a problem in MediaWiki update. My requirement was to prevent users from creating the account by themselves. The account creation request should be validated by moderator and then it is accepted or rejected. I found a ConfirmAccount extension which does ...]]></description>
			<content:encoded><![CDATA[<p>MediaWiki is very popular for wiki creation. Though it is so much used, the irony is, most of settings has to be set using LocalSettings.php file. Also the maintenance scripts has to be run by command prompt. Maintenance scripts are used for various update task on MediaWiki. </p>
<p>Recently I faced a problem in MediaWiki update. My requirement was to prevent users from creating the account by themselves. The account creation request should be validated by moderator and then it is accepted or rejected. I found a <a href="http://www.mediawiki.org/wiki/Extension:ConfirmAccount">ConfirmAccount </a>extension which does the exactly what I wanted. Now comes the problem. It is specified in installation steps of <a href="http://www.mediawiki.org/wiki/Extension:ConfirmAccount">ConfirmAccount </a>that I will have to run one of the maintenance scripts. My hosting account does not provide me shell access (<a href="http://www.3ix.org/sys/aff.php?aff=8580">1$/month account</a>).<br />
I search and found another extension <a href="http://www.mediawiki.org/wiki/Extension:MaintenanceShell">MaintenanceShell</a>, which emulates the shell environment so Mediawiki will think that the script is run inside shell terminal. It is very simple to install and then use.</p>
<p>Installation steps:<br />
1: Download the extension package from <a href="http://www.mediawiki.org/wiki/Extension:MaintenanceShell#Downloads">here</a>.<br />
2: extract and copy the folder to wikidir/extensions/MaintenanceShell (name should be exact same)<br />
3. copy following lines to end of your LocalSettings.php file. </p>
<p># Sysops will have access to the MaintenanceShell<br />
$wgGroupPermissions['sysop']['maintenanceshell'] = true;</p>
<p>#Place this on the VERY LAST line of your Localsettings.php file:<br />
require_once(&#8220;$IP/extensions/MaintenanceShell/MaintenanceShell.php&#8221;);</p>
<p>It is important that “require_once” line is the last line in the file.</p>
<p>First line tells that sysop group will have access to maintenanceshell. MaintenanceShell adds a new user right called maintenanceshell, which a user must be granted before they can access the MaintenanceShell page. You can change to existing group or add the group here.</p>
<p>Usage:<br />
After going to your wiki page. Click on “Special pages” from left side panel. Under “Wiki data and tools” you will find a new link called “Maintenance Shell”. Click on this Link. A page will open with two text boxes and list of all available maintenance scripts. Write the name of the script you want to run in first text box or click on the list below. You can provide the arguments in the second text box (optional). And Voila, scripts runs without shell access to server!! </p>
]]></content:encoded>
			<wfw:commentRss>http://techbuddy.in/2009/07/30/how-to-run-maintenance-scripts-on-mediawiki-without-shell-access/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

