Install Semantic MediaWiki on a Windows Machine
Status: Archived
Publication date: 2018-08-04
Last edited by: Garyf
Last updated: 2024 - 09 - 1
The problem
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.
The resolution
Please note: cheekyfactor.com or the owners of this site cannot be held responsible if things go wrong. You perform these tasks at your own risk.
Device: Server
Operating system: Windows Server 2012
Software: WAMP, Composer
Guidance for Server, Windows Server 2012, WAMP, Composer
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:
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.