Semantic MediaWiki under Debian: Difference between revisions
m (page started) |
m (→Installing Semantic MediaWiki (SMW) under Debian: updated for Debian - tmp) |
||
Line 4: | Line 4: | ||
1) Use Aptitude to install package ''mediawiki-semediawiki'' (under Lenny that's version 1.2-1) | 1) Use Aptitude to install package ''mediawiki-semediawiki'' (under Lenny that's version 1.2-1) | ||
2) | 2) Edit the file ''/etc/mediawiki-extensions/extensions-available/SemanticMediaWiki.php''. All you need to do is change the string for ''enableSemantics'' from ''localhost'' to the hostname of your server: | ||
include_once( | <?php | ||
include_once('extensions/SemanticMediaWiki/includes/SMW_Settings.php'); | |||
enableSemantics('dworkin.saruman.biz'); | enableSemantics('dworkin.saruman.biz'); | ||
?> | |||
Actually, the string for ''enableSemantics'' is an identifier, needed to identify any exported data. The [http://semantic-mediawiki.org/wiki/Help:Installation Semantic MediaWiki website] suggests using the server's host name for this purpose (if you have multiple hostnames, just pick any one of them). | Actually, the string for ''enableSemantics'' is an identifier, needed to identify any exported data. The [http://semantic-mediawiki.org/wiki/Help:Installation Semantic MediaWiki website] suggests using the server's host name for this purpose (if you have multiple hostnames, just pick any one of them). | ||
3) Adjust your namespaces - since we haven't modified the MediaWiki namespaces relative to the original Debian installation, we don't need that. | 3) We now run the maintenance script that sets up the MySQL database. This is a two-step affair: | ||
- first set the MW_INSTALL_PATH environment variable to the root of the MediaWiki installation. This path is where ''LocalSettings.php'' and ''index.php'' are located; most likely it's ''/usr/share/mediawiki''. | |||
MW_INSTALL_PATH=/usr/share/mediawiki | |||
export $MW_INSTALL_PATH | |||
cd /usr/share/mediawiki-semediawiki/maintenance | |||
4) Adjust your namespaces - since we haven't modified the MediaWiki namespaces relative to the original Debian installation, we don't need that. | |||
4) Setup the SMW tables in the MySQL database. To this end, we simply go to | 4) Setup the SMW tables in the MySQL database. To this end, we simply go to |
Revision as of 19:39, 17 January 2009
Installing Semantic MediaWiki (SMW) under Debian
Installation consists of these simple steps:
1) Use Aptitude to install package mediawiki-semediawiki (under Lenny that's version 1.2-1)
2) Edit the file /etc/mediawiki-extensions/extensions-available/SemanticMediaWiki.php. All you need to do is change the string for enableSemantics from localhost to the hostname of your server:
<?php include_once('extensions/SemanticMediaWiki/includes/SMW_Settings.php'); enableSemantics('dworkin.saruman.biz'); ?>
Actually, the string for enableSemantics is an identifier, needed to identify any exported data. The Semantic MediaWiki website suggests using the server's host name for this purpose (if you have multiple hostnames, just pick any one of them).
3) We now run the maintenance script that sets up the MySQL database. This is a two-step affair: - first set the MW_INSTALL_PATH environment variable to the root of the MediaWiki installation. This path is where LocalSettings.php and index.php are located; most likely it's /usr/share/mediawiki.
MW_INSTALL_PATH=/usr/share/mediawiki export $MW_INSTALL_PATH cd /usr/share/mediawiki-semediawiki/maintenance
4) Adjust your namespaces - since we haven't modified the MediaWiki namespaces relative to the original Debian installation, we don't need that.
4) Setup the SMW tables in the MySQL database. To this end, we simply go to