Issues Installing on Windows 2012 Server

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues Installing on Windows 2012 Server

Semantic Mediawiki - User mailing list
Hi Everyone
I 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 -v
That 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.
Gary
Error Messages using different commands:
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.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-stability


require [--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-stability


require [--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-stability


require [--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 most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Issues Installing on Windows 2012 Server

Semantic Mediawiki - User mailing list

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-----
From: Gary via Semediawiki-user <[hidden email]>
To: Semantic MediaWiki Users <[hidden email]>
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
[hidden email]://lists.sourceforge.net/lists/listinfo/semediawiki-user
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Fw: Issues Installing on Windows 2012 Server

Semantic Mediawiki - User mailing list
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 still getting the error:

[b1322b2439fa43d35ac5b7ff] 2017-07-23 07:20:46: Fatal exception of type "MWException"

This is what I see in CMD:

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>

This is the script I have in my LocalSettings.php:

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


On Saturday, July 22, 2017, 11:54:14 PM GMT+1, [hidden email] <[hidden email]> wrote:

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-----
From: Gary via Semediawiki-user <[hidden email]>
To: Semantic MediaWiki Users <[hidden email]>
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 [hidden email]://lists.sourceforge.net/lists/listinfo/semediawiki-user


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Fw: Issues Installing on Windows 2012 Server

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!

> This is the script I have in my LocalSettings.php:
>
> 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] https://www.youtube.com/watch?v=zY5ugnyq7ig

On 7/23/17, Gary via Semediawiki-user
<[hidden email]> wrote:

> 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
> still getting the error:
>
> [b1322b2439fa43d35ac5b7ff] 2017-07-23 07:20:46: Fatal exception of type
> "MWException"
>
> This is what I see in CMD:
>
> 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>
>
> This is the script I have in my LocalSettings.php:
>
> 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
>
>
> On Saturday, July 22, 2017, 11:54:14 PM GMT+1, [hidden email] <[hidden email]>
> wrote:
>
> 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-----
> From: Gary via Semediawiki-user <[hidden email]>
> To: Semantic MediaWiki Users <[hidden email]>
> 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
> [hidden email]://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
>
> ------------------------------------------------------------------------------
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Fw: Issues Installing on Windows 2012 Server

Semantic Mediawiki - User mailing list
Hi James
Thank you for your reply. I have answered your queries below:


On Sunday, July 23, 2017, 10:56:40 AM GMT+1, James HK <[hidden email]> wrote:

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.

> This is the script I have in my LocalSettings.php:
>
> 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]?***
I have run the update.php file, it shows:
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] https://www.youtube.com/watch?v=zY5ugnyq7ig

*******
Thank you, I will check them out.
Gary

On 7/23/17, Gary via Semediawiki-user
<[hidden email]> wrote:

> 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
> still getting the error:
>
> [b1322b2439fa43d35ac5b7ff] 2017-07-23 07:20:46: Fatal exception of type
> "MWException"
>
> This is what I see in CMD:
>
> 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>
>
> This is the script I have in my LocalSettings.php:
>
> 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
>
>
> On Saturday, July 22, 2017, 11:54:14 PM GMT+1, [hidden email] <[hidden email]>
> wrote:
>
> 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-----
> From: Gary via Semediawiki-user <[hidden email]>
> To: Semantic MediaWiki Users <[hidden email]>
> 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
> [hidden email]://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
>
> ------------------------------------------------------------------------------
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Fw: Issues Installing on Windows 2012 Server

James HK
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

On 7/23/17, Gary <[hidden email]> wrote:

> Hi James
> Thank you for your reply. I have answered your queries below:
>
>
> On Sunday, July 23, 2017, 10:56:40 AM GMT+1, James HK
> <[hidden email]> wrote:
>
> 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.
>
>> This is the script I have in my LocalSettings.php:
>>
>> 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]?***
> I have run the update.php file, it shows:
> 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] https://www.youtube.com/watch?v=zY5ugnyq7ig
>
> *******
> Thank you, I will check them out.
> Gary
>
> On 7/23/17, Gary via Semediawiki-user
> <[hidden email]> wrote:
>> 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
>> still getting the error:
>>
>> [b1322b2439fa43d35ac5b7ff] 2017-07-23 07:20:46: Fatal exception of type
>> "MWException"
>>
>> This is what I see in CMD:
>>
>> 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>
>>
>> This is the script I have in my LocalSettings.php:
>>
>> 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
>>
>>
>> On Saturday, July 22, 2017, 11:54:14 PM GMT+1, [hidden email]
>> <[hidden email]>
>> wrote:
>>
>> 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-----
>> From: Gary via Semediawiki-user <[hidden email]>
>> To: Semantic MediaWiki Users <[hidden email]>
>> 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
>> [hidden email]://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
>

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Fw: Issues Installing on Windows 2012 Server

Semantic Mediawiki - User mailing list
Hi Semantic MediaWiki people.
I am still having issues with installing on Windows 2012 using WAMP.
I have got the files into the extensions directory using the command:
composer require mediawiki/semantic-media-wiki "~2.5"
But when I go to:
php maintenance/update.php
I get the error:
Error: your composer.lock file is not up to date.
I run the command:
php maintenance/update.php --skip-external-dependencies
It goes through the routine of updating the database but the Semantic Tables don't get populated.
I have searched extensively on Google and watched the videos suggested but still nothing.
Any help is appreciated.
Gary


On Sunday, July 23, 2017, 2:08:18 PM GMT+1, James HK <[hidden email]> wrote:

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

On 7/23/17, Gary <[hidden email]> wrote:

> Hi James
> Thank you for your reply. I have answered your queries below:
>
>
> On Sunday, July 23, 2017, 10:56:40 AM GMT+1, James HK
> <[hidden email]> wrote:
>
> 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.
>
>> This is the script I have in my LocalSettings.php:
>>
>> 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]?***
> I have run the update.php file, it shows:
> 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] https://www.youtube.com/watch?v=zY5ugnyq7ig
>
> *******
> Thank you, I will check them out.
> Gary
>
> On 7/23/17, Gary via Semediawiki-user
> <[hidden email]> wrote:
>> 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
>> still getting the error:
>>
>> [b1322b2439fa43d35ac5b7ff] 2017-07-23 07:20:46: Fatal exception of type
>> "MWException"
>>
>> This is what I see in CMD:
>>
>> 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>
>>
>> This is the script I have in my LocalSettings.php:
>>
>> 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
>>
>>
>> On Saturday, July 22, 2017, 11:54:14 PM GMT+1, [hidden email]
>> <[hidden email]>
>> wrote:
>>
>> 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-----
>> From: Gary via Semediawiki-user <[hidden email]>
>> To: Semantic MediaWiki Users <[hidden email]>
>> 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
>> [hidden email]://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
>
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Fw: Issues Installing on Windows 2012 Server

Semantic Mediawiki - User mailing list
OK, so it turned out that the issue was the forms extension.
I presume this can be enabled using the method detailed on the install page. I will give it a go.


On Monday, July 24, 2017, 2:48:33 PM GMT+1, Gary via Semediawiki-user <[hidden email]> wrote:

Hi Semantic MediaWiki people.
I am still having issues with installing on Windows 2012 using WAMP.
I have got the files into the extensions directory using the command:
composer require mediawiki/semantic-media-wiki "~2.5"
But when I go to:
php maintenance/update.php
I get the error:
Error: your composer.lock file is not up to date.
I run the command:
php maintenance/update.php --skip-external-dependencies
It goes through the routine of updating the database but the Semantic Tables don't get populated.
I have searched extensively on Google and watched the videos suggested but still nothing.
Any help is appreciated.
Gary


On Sunday, July 23, 2017, 2:08:18 PM GMT+1, James HK <[hidden email]> wrote:

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

On 7/23/17, Gary <[hidden email]> wrote:

> Hi James
> Thank you for your reply. I have answered your queries below:
>
>
> On Sunday, July 23, 2017, 10:56:40 AM GMT+1, James HK
> <[hidden email]> wrote:
>
> 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.
>
>> This is the script I have in my LocalSettings.php:
>>
>> 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]?***
> I have run the update.php file, it shows:
> 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] https://www.youtube.com/watch?v=zY5ugnyq7ig
>
> *******
> Thank you, I will check them out.
> Gary
>
> On 7/23/17, Gary via Semediawiki-user
> <[hidden email]> wrote:
>> 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
>> still getting the error:
>>
>> [b1322b2439fa43d35ac5b7ff] 2017-07-23 07:20:46: Fatal exception of type
>> "MWException"
>>
>> This is what I see in CMD:
>>
>> 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>
>>
>> This is the script I have in my LocalSettings.php:
>>
>> 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
>>
>>
>> On Saturday, July 22, 2017, 11:54:14 PM GMT+1, [hidden email]
>> <[hidden email]>
>> wrote:
>>
>> 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-----
>> From: Gary via Semediawiki-user <[hidden email]>
>> To: Semantic MediaWiki Users <[hidden email]>
>> 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
>> [hidden email]://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
>
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user