Install Semantic MediaWiki on a Windows Machine

Install Semantic MediaWiki on a Windows Machine

You can find instructions on Semantic MediaWiki site on how to install on Windows, but it is advised that Semantic MediaWiki is not supported for Windows environments. It also misses a few areas that need to be included to ensure it installs. This is how I did it:

Ensure you have composer installed and it is in the PHP version you are using.

Remove or comment out any Semantic MediaWiki lines in the LocalSettings.php

Add the line:

enableSemantics(‘localhost/wiki’); /**adjust to yours*/

Open the command prompt, change the directory to the root of your wiki and run:

composer update:

Next run:

composer require mediawiki/semantic-media-wiki “~2.5”

Verify it has installed by going to the Version page:

Job done, on the off chance things don’t go to plan, change the directory to the maintenance folder. With Windows you will need to set the path to the PHP version by running:

set path=path/to/PHP/install

Then run:

php update.php –skip-external-dependencies

Job done.

To make Semantic MediaWiki more useful you may want to install other extensions to work with it, the five I use are:

  • Page Forms
  • Semantic Compound Queries
  • Semantic Drilldown
  • Semantic Internal Objects
  • Maps

Page Forms, Semantic Drilldown and Semantic Internal objects are fairly straight forward to install, just follow the guidance on the extension page. But Semantic Compound Queries and Maps are a little more complex. They both require the use of composer.

See the MediaWiki composer extensions for more details.

Please Login to Comment.

Notice for AdBlock users

Please support this website by adding us to your whitelist in your ad blocker.

Ad-revenue is vital for the upkeep of this site, expenses incurred include time to manage the site, hosting and domain name. You can also support this site by donating and/or registering for goPro.

With goPro you will not see any ads.

Your assistance is appreciated.

Gary