Discuss Installation with shell access using Composer (MediaWiki 1.25+)
- [View source↑]
- [History↑]
Contents
Thread title | Replies | Last modified |
---|---|---|
Setup instructions incomplet? | 0 | 22:17, 10 March 2019 |
enableSemantics() and port | 2 | 20:41, 21 July 2016 |
Clarify about "initialization script" | 2 | 22:51, 3 June 2016 |
installation variation; composer variation | 1 | 18:48, 23 September 2015 |
enableSemantics() | 2 | 10:15, 25 June 2015 |
My wiki has address 'http://www.example.org:8080'. What should I specify in the parameter?
Hi, It is not clear to me what the "initialization script", in the mediawiki basefolder is. I'm trying to get my head around that now, but thought it might be helpful to clarify that either way?
I was not able to install using:
php composer.phar require mediawiki/semantic-media-wiki "~2.1" --update-no-dev
However, I was successful @ installing with the following command:
composer require mediawiki/semantic-media-wiki "~2.1" --update-no-dev
NB: this install was on a Dreamhost VPS
Hope this helps someone,
Hi,
Starting with smw I installed the latest proposed.
Sadly I'm still unable to finish properly the installation. To point °4
- Add a call to enableSemantics() to the end of the "LocalSettings.php" file. enableSemantics() takes in the domain name of the wiki
both:
include_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"); enableSemantics('localhost');
or just (as "The calls require_once … must neither be added for Semantic MediaWiki nor for Validator since Composer loads the extensions automatically.")
enableSemantics('localhost');
are ineffective. The wiki isn't working with this in LocalSettings.php but work cleared from those lines.
I haven't any $smwgNamespaceIndex
I went to previous installation procedures and did not see any other instruction for this point. I checked other reference such as github or WOW - Wiki Aided Organization DraWing
the command:
php maintenance/update.php
returns
PHP Fatal error: Call to undefined function enableSemantics() in /etc/mediawiki/LocalSettings.php on line 147
I found a divergent advice here on sourceforge
enableSemantics('http://localhost';);
got the error with th ";"; then tried with:
enableSemantics('http://localhost');
and got again
PHP Fatal error: Call to undefined function enableSemantics() in /etc/mediawiki/LocalSettings.php on line 147
Single occurrence of "enable Semantics" in configuration help is at:
$smwgNamespace
ls from /mediawiki returns
AdminSettings.php catch_it.png composer.lock config images includes install-utils.inc LocalSettings.php opensearch_desc.php redirect.php skins thumb.php vendor api.php composer.json composer.phar extensions img_auth.php index.php languages maintenance profileinfo.php redirect.phtml StartProfiler.php trackback.php wiki.phtml
and /extensions
README SemanticMediaWiki Validator
So I suppose it is indeed installed but not enabled.
Would you please consider putting a LocalSetting.php article wihtin this wiki or on GitHub to help installation? As done for SefaultSetting of mediawiki on GitHub
> Would you please consider putting a LocalSetting.php article wihtin this wiki or on GitHub to help installation? As done for SefaultSetting of mediawiki on GitHub
?
> include_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php");
This line is not required in LocalSettings for SMW.
Please have a look at the video [0] which shows a vanilla MW/SMW installation from the start to the end.
Thanks MWjames,
The problem came from a different mediawiki version (oups didn't checked that). I installed through:
sudo apt-get install mediawiki
But the version on the repository was 1.15 and not 1.25.
The video did help as I realised this gap in version within the first few images "Download mediawiki 1.24.2". So thank you for pointing toward it. I didn't notice there was some in the "Help:Installation" page.
I take the liberty to add a "version checking " line in the steps describe. May it help those hasty and inattentive as I can sometime be.
BR