2014-01-08

‎Install / Update SMW with Composer

← Older revision

Revision as of 09:28, 8 January 2014

(6 intermediate revisions by one user not shown)

Line 6:

Line 6:

 

== Requirements ==

 

== Requirements ==

 

You need a running existing Wiki or a freshly installed one. Consider updating MediaWiki to the latest stable version on a exiting wiki. When you are installing / updating SMW on existing Wiki back up your Wiki and its DB. Before you start installing SMW you will need the following software / extension(s) to be installed on your Wiki server. Only start installing SMW when you have done this:  

 

You need a running existing Wiki or a freshly installed one. Consider updating MediaWiki to the latest stable version on a exiting wiki. When you are installing / updating SMW on existing Wiki back up your Wiki and its DB. Before you start installing SMW you will need the following software / extension(s) to be installed on your Wiki server. Only start installing SMW when you have done this:  



{| class = "wikitable" width = "
70
%"

+

{| class = "wikitable" width = "
100
%"

 

! Program<br />Extension

 

! Program<br />Extension

 

! description

 

! description

Line 24:

Line 24:

 

|}

 

|}

 

 



=== Install
composer
===

+

=== Install
Composer
===

 

Download the installer from '''http://getcomposer.org/Composer-Setup.exe''' and run the installer. The installer will download composer for you and set up your PATH environment variable so you can simply call composer from any directory <ref name=composer>http://getcomposer.org/download/</ref>.

 

Download the installer from '''http://getcomposer.org/Composer-Setup.exe''' and run the installer. The installer will download composer for you and set up your PATH environment variable so you can simply call composer from any directory <ref name=composer>http://getcomposer.org/download/</ref>.

 

 

Line 34:

Line 34:

 

 

 

== Install / Update SMW with Composer ==

 

== Install / Update SMW with Composer ==



{{note}}''There
is no need to edit <code>LocalSetting.php</code>. All extensions that support Composer will auto-load, i.e. MW 1.22 provides direct support for composer! However, you can edit <code>LocalSettings.php</code> after setup to change extension settings. When you are installing SMW on a fresh MW installation
go to
step 3.
''

+

When using Composer to install SMW there
is no need
anymore
to edit <code>LocalSetting.php</code>. All extensions that support Composer will auto-load, i.e. MW 1.22 provides direct support for composer! However, you can edit <code>LocalSettings.php</code> after setup to change extension settings. When you are installing SMW on a fresh MW installation
start at
step 3.

 

 

 

# In explorer delete all required extensions for SMW from the extensions directory of your wiki installation these are:

 

# In explorer delete all required extensions for SMW from the extensions directory of your wiki installation these are:



#* SemanticMediaWiki  

+

#*
<code>
SemanticMediaWiki
</code>



#* Validator

+

#*
<code>
Validator
</code>



#* DataValues

+

#*
<code>
DataValues
</code>



#* SemanticResultFormats

+

#*
<code>
SemanticResultFormats
</code>

 

# Delete all lines from required SMW extensions from <code>Localsettings.php</code> that load SMW, they are no longer needed. These are:

 

# Delete all lines from required SMW extensions from <code>Localsettings.php</code> that load SMW, they are no longer needed. These are:

 

#* <code>require_once( "$IP/extensions/DataValues/DataValues.php" );</code>

 

#* <code>require_once( "$IP/extensions/DataValues/DataValues.php" );</code>

Line 50:

Line 50:

 

#* <code>enableSemantics('your.wiki.blabla'); /** Adjust to yours.*/</code>

 

#* <code>enableSemantics('your.wiki.blabla'); /** Adjust to yours.*/</code>

 

# In a terminal screen cd to the root of your wiki and execute the following commands:

 

# In a terminal screen cd to the root of your wiki and execute the following commands:



#* For the latest stable release use: <code>composer require mediawiki/semantic-media-wiki "{{SMW release main page}}"</code>

+

#* For the latest stable
SMW
release use: <code>composer require mediawiki/semantic-media-wiki "{{SMW release main page}}"</code>



#* For the development version use: <code>composer require mediawiki/semantic-media-wiki "dev-master"</code>

+

#* For the
SMW
development version use: <code>composer require mediawiki/semantic-media-wiki "dev-master"</code>

 

# In a terminal screen cd to the <code>maintenance</code> directory of you wiki and run <code>php update.php</code> to update your DB.

 

# In a terminal screen cd to the <code>maintenance</code> directory of you wiki and run <code>php update.php</code> to update your DB.

 

 

Show more