Discussion:
Fw: Issues Installing on Windows 2012 Server
(too old to reply)
James HK
2017-07-23 09:56:39 UTC
Permalink
Hi,
- Installing mediawiki/semantic-media-wiki (2.5.3): Loading from cache
mediawiki/semantic-media-wiki suggests installing
mediawiki/semantic-result-formats (Additional result formats for SMW queries)
Writing lock file
Generating optimized autoload files
It means that you have successful retrieving the files!
require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
enableSemantics('http://localhost'); /** Adjust to yours.*
May I ask if you had the the time to read the installation instruction [0]?
require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
This line is not required (as noted in [0])!
I note in the extensions directory I now have SemanticMediaWiki in there but
I can't see the Semantic Tables in the database.
You did run `update.php` from the MediaWiki base directory as suggested in [0]?

PS: There is a short video [1, 2] which shows all the required steps
using a Win PC!

[0] https://www.semantic-mediawiki.org/wiki/Help:Installation
[1] https://vimeo.com/82255034
[2]


On 7/23/17, Gary via Semediawiki-user
Apologies not sure if that went to the list
Thanks for that. I have run it from the standard MS command prompt, but I am
[b1322b2439fa43d35ac5b7ff] 2017-07-23 07:20:46: Fatal exception of type
"MWException"
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>cd C:\wamp\www\wiki
C:\wamp\www\wiki>composer require mediawiki/semantic-media-wiki "~2.5"
./composer.json has been updated
ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removalsbles
- Installing mediawiki/semantic-media-wiki (2.5.3): Loading from cache
mediawiki/semantic-media-wiki suggests installing
mediawiki/semantic-result-form
ats (Additional result formats for SMW queries)
Writing lock file
Generating optimized autoload files
C:\wamp\www\wiki>
require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
enableSemantics('http://localhost'); /** Adjust to yours.*/
I have tried
require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
enableSemantics('localhost'); /** Adjust to yours.*/
But still get the same error.
I note in the extensions directory I now have SemanticMediaWiki in there but
I can't see the Semantic Tables in the database.
Any assistance is appreciated.
Gary
Hello Gary: composer require mediawiki/semantic-media-wiki"~2.5" Try
replacing the string above with the string below. That space after the
string 'wiki' is important. composer require mediawiki/semantic-media-wiki
"~2.5" -----Original Message-----
Sent: Sat, Jul 22, 2017 6:04 pm
Subject: [Semediawiki-user] Issues Installing on Windows 2012 Server
Hi EveryoneI hope everyone is doing great.I am trying to install Semantic
MediaWiki on a Windows 2012 server. The Server that it will be on eventually
is on a private network that is not Internet facing. I have set up a VM on
my Fedora machine which is Internet facing and will transfer over to the
other VM when installed.The issue I am facing is, no matter what I do I just
can't seem to get it installed. I have followed the instructions here.I have
GIT and Composer installed, I don't have the Extension Installer installed,
looking at the MediaWiki page it has been incorporated into the main build.I
have tried to run the commands in both the CMD and GIT Terminal, but I run
the command: composer require mediawiki/semantic-media-wiki"~2.5"But I
get the error detailed below.Reading further on I attempted running: php
SMW_refreshData.php -f -d 50 -vThat seemed to run, but when I go into the
MediaWiki I get an Internal error:[c95d398107fcb1a960a9e229] 2017-07-22
20:18:56: Fatal exception of type "MWException"Any idea what I am doing
wrong? Should I just give up and go with Cargo? My colleagues are extremely
keen on using Semantic MediaWiki hence the reason why I am trying to get
this working, but wondering if I am fighting a losing battle.Any help is
appreciated.GaryError Messages using different commands:Microsoft Windows
[Version 6.3.9600](c) 2013 Microsoft Corporation. All rights
reserved.C:\Users\Administrator>cd C:\wamp\www\wikiC:\wamp\www\wiki>composer
require "mediawiki/semantic-media-wiki": "2.5.3"
[InvalidArgumentException] Could not find package 2.5.3 at any version for
your minimum-stability (sta ble). Check the package spelling or your
minimum-stabilityrequire [--dev] [--prefer-source] [--prefer-dist]
[--no-progress] [--no-suggest] [--no-update] [--no-scripts]
[--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs]
[--prefer-stable] [--prefer-lowest] [--sort-packages]
[-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader]
[--] [<packages>]...C:\wamp\www\wiki>composer require
mediawiki/semantic-media-wiki: "2.5.3" [InvalidArgumentException] Could
not find package 2.5.3 at any version for your minimum-stability (sta ble).
Check the package spelling or your minimum-stabilityrequire [--dev]
[--prefer-source] [--prefer-dist] [--no-progress]
[--no-suggest] [--no-update] [--no-scripts] [--update-no-dev]
[--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable]
[--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--apcu-autoloader] [--]
[<packages>]...C:\wamp\www\wiki>composer require
mediawiki/semantic-media-wiki"~2.5" [InvalidArgumentException] Could not
find package mediawiki/semantic-media-wiki~2.5 at any version for your
minimum-stability (stable). Check the package spelling or your minimu
m-stabilityrequire [--dev] [--prefer-source] [--prefer-dist] [--no-progress]
[--no-suggest] [--no-update] [--no-scripts] [--update-no-dev]
[--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable]
[--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--apcu-autoloader] [--]
[<packages>]...C:\wamp\www\wiki>------------------------------------------------------------------------------Check
out the vibrant tech community on one of the world's mostengaging tech
sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________Semediawiki-user
mailing
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
James HK
2017-07-23 13:08:16 UTC
Permalink
Hi,
mediawiki/semantic-media-wiki: 2.5.3 installed, ~2.5 required.
Error: your composer.lock file is not up to date. Run "composer update" to
insta
ll newer dependencies
There is a troubleshoot and an explanation to be found in [0].

[0] https://www.semantic-mediawiki.org/wiki/Help:Installation/Troubleshooting#Error:_your_composer.lock_file_is_not_up_to_date.

Cheers
Hi James
On Sunday, July 23, 2017, 10:56:40 AM GMT+1, James HK
Hi,
- Installing mediawiki/semantic-media-wiki (2.5.3): Loading from cache
mediawiki/semantic-media-wiki suggests installing
mediawiki/semantic-result-formats (Additional result formats for SMW queries)
Writing lock file
Generating optimized autoload files
It means that you have successful retrieving the files!****
Yes, the files are there.
require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
enableSemantics('http://localhost'); /** Adjust to yours.*
May I ask if you had the the time to read the installation instruction
[0]?****
I have.
require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
This line is not required (as noted in [0])!*****
I have now removed this line, I was experimenting to see if it resolved the
issue.
I note in the extensions directory I now have SemanticMediaWiki in there but
I can't see the Semantic Tables in the database.
You did run `update.php` from the MediaWiki base directory as suggested in
[0]?***
C:\Users\Administrator>cd C:\wamp\www\wiki
C:\wamp\www\wiki>composer update
ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
C:\wamp\www\wiki>php maintenance/update.php
MediaWiki 1.28.2 Updater
mediawiki/semantic-media-wiki: 2.5.3 installed, ~2.5 required.
Error: your composer.lock file is not up to date. Run "composer update" to
insta
ll newer dependencies
C:\wamp\www\wiki>
I have tried to update composer, which it shows it has done, but still get
the same error.
PS: There is a short video [1, 2] which shows all the required steps
using a Win PC!
[0] https://www.semantic-mediawiki.org/wiki/Help:Installation
[1] https://vimeo.com/82255034
[2] http://youtu.be/zY5ugnyq7ig
*******
Thank you, I will check them out.
Gary
On 7/23/17, Gary via Semediawiki-user
Apologies not sure if that went to the list
Thanks for that. I have run it from the standard MS command prompt, but I am
[b1322b2439fa43d35ac5b7ff] 2017-07-23 07:20:46: Fatal exception of type
"MWException"
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>cd C:\wamp\www\wiki
C:\wamp\www\wiki>composer require mediawiki/semantic-media-wiki "~2.5"
./composer.json has been updated
ComposerHookHandler::onPreUpdate
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removalsbles
- Installing mediawiki/semantic-media-wiki (2.5.3): Loading from cache
mediawiki/semantic-media-wiki suggests installing
mediawiki/semantic-result-form
ats (Additional result formats for SMW queries)
Writing lock file
Generating optimized autoload files
C:\wamp\www\wiki>
require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
enableSemantics('http://localhost'); /** Adjust to yours.*/
I have tried
require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
enableSemantics('localhost'); /** Adjust to yours.*/
But still get the same error.
I note in the extensions directory I now have SemanticMediaWiki in there but
I can't see the Semantic Tables in the database.
Any assistance is appreciated.
Gary
Hello Gary: composer require mediawiki/semantic-media-wiki"~2.5" Try
replacing the string above with the string below. That space after the
string 'wiki' is important. composer require
mediawiki/semantic-media-wiki
"~2.5" -----Original Message-----
Sent: Sat, Jul 22, 2017 6:04 pm
Subject: [Semediawiki-user] Issues Installing on Windows 2012 Server
Hi EveryoneI hope everyone is doing great.I am trying to install Semantic
MediaWiki on a Windows 2012 server. The Server that it will be on eventually
is on a private network that is not Internet facing. I have set up a VM on
my Fedora machine which is Internet facing and will transfer over to the
other VM when installed.The issue I am facing is, no matter what I do I just
can't seem to get it installed. I have followed the instructions here.I have
GIT and Composer installed, I don't have the Extension Installer installed,
looking at the MediaWiki page it has been incorporated into the main build.I
have tried to run the commands in both the CMD and GIT Terminal, but I run
the command: composer require mediawiki/semantic-media-wiki"~2.5"But I
php
SMW_refreshData.php -f -d 50 -vThat seemed to run, but when I go into the
MediaWiki I get an Internal error:[c95d398107fcb1a960a9e229] 2017-07-22
20:18:56: Fatal exception of type "MWException"Any idea what I am doing
wrong? Should I just give up and go with Cargo? My colleagues are extremely
keen on using Semantic MediaWiki hence the reason why I am trying to get
this working, but wondering if I am fighting a losing battle.Any help is
appreciated.GaryError Messages using different commands:Microsoft Windows
[Version 6.3.9600](c) 2013 Microsoft Corporation. All rights
reserved.C:\Users\Administrator>cd
C:\wamp\www\wikiC:\wamp\www\wiki>composer
require "mediawiki/semantic-media-wiki": "2.5.3"
[InvalidArgumentException] Could not find package 2.5.3 at any version for
your minimum-stability (sta ble). Check the package spelling or your
minimum-stabilityrequire [--dev] [--prefer-source] [--prefer-dist]
[--no-progress] [--no-suggest] [--no-update] [--no-scripts]
[--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs]
[--prefer-stable] [--prefer-lowest] [--sort-packages]
[-o|--optimize-autoloader] [-a|--classmap-authoritative]
[--apcu-autoloader]
[--] [<packages>]...C:\wamp\www\wiki>composer require
mediawiki/semantic-media-wiki: "2.5.3" [InvalidArgumentException] Could
not find package 2.5.3 at any version for your minimum-stability (sta
ble).
Check the package spelling or your minimum-stabilityrequire [--dev]
[--prefer-source] [--prefer-dist] [--no-progress]
[--no-suggest] [--no-update] [--no-scripts] [--update-no-dev]
[--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable]
[--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--apcu-autoloader] [--]
[<packages>]...C:\wamp\www\wiki>composer require
mediawiki/semantic-media-wiki"~2.5" [InvalidArgumentException] Could not
find package mediawiki/semantic-media-wiki~2.5 at any version for your
minimum-stability (stable). Check the package spelling or your minimu
m-stabilityrequire [--dev] [--prefer-source] [--prefer-dist]
[--no-progress]
[--no-suggest] [--no-update] [--no-scripts] [--update-no-dev]
[--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable]
[--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader]
[-a|--classmap-authoritative] [--apcu-autoloader] [--]
[<packages>]...C:\wamp\www\wiki>------------------------------------------------------------------------------Check
out the vibrant tech community on one of the world's mostengaging tech
sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________Semediawiki-user
mailing
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...