<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.saruman.biz/saruwiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=149.156.0.0%2F16</id>
	<title>SaruWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.saruman.biz/saruwiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=149.156.0.0%2F16"/>
	<link rel="alternate" type="text/html" href="https://www.saruman.biz/saruwiki/index.php?title=Special:Contributions/149.156.0.0/16"/>
	<updated>2026-09-08T20:56:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://www.saruman.biz/saruwiki/index.php?title=Semantic_MediaWiki_under_Debian&amp;diff=2396</id>
		<title>Semantic MediaWiki under Debian</title>
		<link rel="alternate" type="text/html" href="https://www.saruman.biz/saruwiki/index.php?title=Semantic_MediaWiki_under_Debian&amp;diff=2396"/>
		<updated>2009-05-07T09:29:36Z</updated>

		<summary type="html">&lt;p&gt;149.156.96.14: Fixed bug in export $MW_INSTALL_PATH - should be export MW_INSTALL_PATH&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Installing Semantic MediaWiki (SMW) under Debian==&lt;br /&gt;
Installation consists of these simple steps:&lt;br /&gt;
&lt;br /&gt;
1) Use Aptitude to install package &#039;&#039;mediawiki-semediawiki&#039;&#039; (under Lenny that&#039;s version 1.2-1)&lt;br /&gt;
&lt;br /&gt;
2) Adjust your namespaces - since we haven&#039;t modified the MediaWiki namespaces relative to the original Debian installation, we don&#039;t need that.&lt;br /&gt;
&lt;br /&gt;
3) Edit the file &#039;&#039;/etc/mediawiki-extensions/extensions-available/SemanticMediaWiki.php&#039;&#039;. All you need to do is change the string for &#039;&#039;enableSemantics&#039;&#039; from &#039;&#039;localhost&#039;&#039; to the hostname of your server:&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 include_once(&#039;extensions/SemanticMediaWiki/includes/SMW_Settings.php&#039;);&lt;br /&gt;
 enableSemantics(&#039;dworkin.saruman.biz&#039;);&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
Actually, the string for &#039;&#039;enableSemantics&#039;&#039; is an identifier, needed to identify any exported data. The [http://semantic-mediawiki.org/wiki/Help:Installation Semantic MediaWiki website] suggests using the server&#039;s host name for this purpose (if you have multiple hostnames, just pick any one of them).&lt;br /&gt;
&lt;br /&gt;
4) Enable the SMW extension, by creating a link to it under &#039;&#039;/etc/mediawiki-extensions/extensions-enabled&#039;&#039;:&lt;br /&gt;
 cd /etc/mediawiki-extensions/extensions-enabled/&lt;br /&gt;
 ln -s ../extensions-available/SemanticMediaWiki.php&lt;br /&gt;
By the way, this should also work with the MediaWiki extension enabler command:&lt;br /&gt;
  mwenext SemanticMediaWiki.php&lt;br /&gt;
&lt;br /&gt;
5) We now run the maintenance script that creates the necessary tables in your MySQL MediaWiki database. This is a two-step affair:&amp;lt;br&amp;gt;&lt;br /&gt;
- first set the MW_INSTALL_PATH environment variable to the root of the MediaWiki installation. This path is where &#039;&#039;LocalSettings.php&#039;&#039; and &#039;&#039;index.php&#039;&#039; are located; most likely it&#039;s &#039;&#039;/usr/share/mediawiki&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
- then go to the directory where the SMW maintenance scripts are located, and execute &#039;&#039;SMW_setup.php&#039;&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
The sequence will thus look something like this:&lt;br /&gt;
 MW_INSTALL_PATH=/usr/share/mediawiki&lt;br /&gt;
 export MW_INSTALL_PATH&lt;br /&gt;
 cd /usr/share/mediawiki-semediawiki/maintenance&lt;br /&gt;
 php SMW_setup.php&lt;br /&gt;
The php-script should report setting up some nine tables, named &#039;&#039;smw_ids&#039;&#039;, &#039;&#039;smw_redi2&#039;&#039; et cetera. These are the extra MySQL tables that SMW needs.&lt;br /&gt;
&lt;br /&gt;
6) Next, log into your MediaWiki with an account with administrative rights. If you now visit your &#039;&#039;Special pages&#039;&#039;, you&#039;ll find taht under the section &#039;&#039;Restricted special pages&#039;&#039; there is now an entry titled &#039;&#039;Admin functions for Semantic MediaWiki&#039;&#039;. Open it, and find two sections:&lt;br /&gt;
* &#039;&#039;&#039;Preparing database for Semantic MediaWiki&#039;&#039;&#039;&amp;lt;br&amp;gt;Here you&#039;ll have to press the button labeled &#039;&#039;Initialise or upgrade tables&#039;&#039;; this will initialise the newly created tables. A dull page should appear, reporting actions for each of the nine new tables, and ending with the status message &#039;&#039;The storage engine was set up successfully.&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Announce your wiki&#039;&#039;&#039;&amp;lt;br&amp;gt;Clicking this button is optional; what it will do is post the URL of your wiki on the [http://semantic-mediawiki.org/wiki/Special:SMWRegistry SMW Registry page] over on the SMW site.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
That&#039;s it! You can now start [http://semantic-mediawiki.org/wiki/Help:User_manual using SMW].&lt;/div&gt;</summary>
		<author><name>149.156.96.14</name></author>
	</entry>
</feed>