Setup:Installation Guide/Installation BlueSpice WikiFarm: Difference between revisions

(Created page with " __TOC__ An existing BlueSpice pro installation can easily be extended with BlueSpiceWikiFarm. The existing installation assumes the role of the main wiki (=farm management)....")
Tag: 2017 source edit
 
No edit summary
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
Important for the operation of BlueSpiceWikiFarm is that BlueSpice is located in the directory <code>/w</code> of the DocumentRoot of your web server or VirtualHost. <br />
Important for the operation of BlueSpiceWikiFarm is that BlueSpice is located in the directory <code>/w</code> of the DocumentRoot of your web server or VirtualHost. <br />


If this is not the case, you have to move the entire codebase there. <br /> <br />
If this is not the case, you have to move the entire codebase there. <br /><br />After that, the variable<code>$wgScriptPath</code> in the <code>LocalSettings.php</code> contains the path <code>/w</code>. <br />
After that, the variable <code>$wgScriptPath</code> in the <code>LocalSettings.php</code> contains the path <code>/w</code>. <br />
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
$ wgScriptPath = "/w";
$ wgScriptPath = "/w";
Line 30: Line 29:
require_once "$IP/LocalSettings.BlueSpice.php";
require_once "$IP/LocalSettings.BlueSpice.php";
</syntaxhighlight>
</syntaxhighlight>
==
 
Including the extension "BlueSpiceWikiFarm" ==
== Including the extension "BlueSpiceWikiFarm" ==
In the <code>LocalSettings.php</code> replace the line
In the <code>LocalSettings.php</code> replace the line
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
Line 48: Line 47:


Configure these RewriteRules for the DocumentRoot level of your Web server or VirtualHost.
Configure these RewriteRules for the DocumentRoot level of your Web server or VirtualHost.
{{Textbox|boxtype=note|header=|text=If you experience issues with spaces in page names: Add <code>RewriteRule ^([^\ ]*)\ (.*)$ $1_$2 [E=rspace:yes,N]</code> if it is not already included in your rewrite rules.|icon=yes}}
== Adding new permissions in MySql ==
GRANT ALL ON ´sfr\_%´.* to ´bluespice´@´127.0.0.1´ identified by ´password´;
== Important for Windows farming ==
<nowiki>https://www.mediawiki.org/wiki/Manual:$wgPhpCli</nowiki>
== cronjobs ==
Has to be executed as Apache user:
*/5 * * * * php /var/www/bluespice/w/extensions/BlueSpiceWikiFarm/SimpleFarmer/maintenance/RunForAll.php --script=maintenance/runJobs.php
*/1 * * * * php /var/www/bluespice/w/extensions/BlueSpiceWikiFarm/SimpleFarmer/maintenance/FarmProcessRunner.php


==Completion==
==Completion==
The installation of BlueSpiceWikiFarm is now complete. From now on, you can reach the farm administration in the main wiki under the special page "Special:SimpleFarmer".
The installation of BlueSpiceWikiFarm is now complete. From now on, you can reach the farm administration in the main wiki under the special page "Special:SimpleFarmer".
{{Messagebox|boxtype=important|Note text=If localhost is not available, download the IIS extension "URL Rewrite". https://www.iis.net/downloads/microsoft/url-rewrite}}


[[en:{{FULLPAGENAME}}]]
[[en:{{FULLPAGENAME}}]]
[[de:Setup:Installationsanleitung/Installation_BlueSpice_WikiFarm]]
[[de:Setup:Installationsanleitung/Installation_BlueSpice_WikiFarm]]

Latest revision as of 11:23, 7 February 2024

An existing BlueSpice pro installation can easily be extended with BlueSpiceWikiFarm. The existing installation assumes the role of the main wiki (=farm management). The contents remain there and can be maintained as usually.

Note:WikiFarm is not a standard feature of BlueSpice pro and needs to be acquired separately.

PHP prerequisites

Please ensure that the PHP extension ZIP is archived, which is required for BlueSpiceWikFarm.

Ensuring the correct path in the file system

Important for the operation of BlueSpiceWikiFarm is that BlueSpice is located in the directory /w of the DocumentRoot of your web server or VirtualHost.

If this is not the case, you have to move the entire codebase there.

After that, the variable$wgScriptPath in the LocalSettings.php contains the path /w.

$ wgScriptPath = "/w";

Creating the necessary folders for BlueSpiceWikiFarm

BlueSpiceWikiFarm needs two additional folders in the folder /w at the same level as the LocalSettings.php. You have to create these two folders:

  • _sf_instances - all data and configurations for the respective instances are stored here
  • _sf_archive - deleted farm instances including your database dump are stored here as ZIP archive

Make sure that these folders are writable by the web server. See also our (notes in the helpdesk ) for this purpose.

Creating the LocalSettingsAppend.php

Including the extension "BlueSpiceWikiFarm" first requires an additional configuration file with the name LocalSettingsAppend.php. Create this file on the same level as the LocalSettings.php and add the following content:

<?php
require_once "$IP/LocalSettings.BlueSpice.php";

Including the extension "BlueSpiceWikiFarm"

In the LocalSettings.php replace the line

require_once "$IP/LocalSettings.BlueSpice.php";

with

require_once "$IP/extensions/BlueSpiceWikiFarm/BlueSpiceWikiFarm.php";

Configuring the web server

In the folder extensions/BlueSpiceWikiFarm/SimpleFarmer/doc you will find example files for RewriteRules, which are necessary for BlueSpiceWikiFarm:

  • htaccess.template - RewriteRules for Apache
  • web.config.template - RewriteRules for IIS

Configure these RewriteRules for the DocumentRoot level of your Web server or VirtualHost.

If you experience issues with spaces in page names: Add RewriteRule ^([^\ ]*)\ (.*)$ $1_$2 [E=rspace:yes,N] if it is not already included in your rewrite rules.


Adding new permissions in MySql

GRANT ALL ON ´sfr\_%´.* to ´bluespice´@´127.0.0.1´ identified by ´password´;

Important for Windows farming

https://www.mediawiki.org/wiki/Manual:$wgPhpCli

cronjobs

Has to be executed as Apache user:

*/5 * * * * php /var/www/bluespice/w/extensions/BlueSpiceWikiFarm/SimpleFarmer/maintenance/RunForAll.php --script=maintenance/runJobs.php
*/1 * * * * php /var/www/bluespice/w/extensions/BlueSpiceWikiFarm/SimpleFarmer/maintenance/FarmProcessRunner.php

Completion

The installation of BlueSpiceWikiFarm is now complete. From now on, you can reach the farm administration in the main wiki under the special page "Special:SimpleFarmer".


Important!If localhost is not available, download the IIS extension "URL Rewrite". https://www.iis.net/downloads/microsoft/url-rewrite



To submit feedback about this documentation, visit our community forum.