MediaWiki SaaS/NasqueronMaintenance: Difference between revisions
From Nasqueron Agora
(Created page with "The '''NasqueronMaintenance''' is a repository to host a collection of scripts useful on the MediaWiki SaaS cluster. It contains scripts specific to our installation and archi...") |
|||
Line 3: | Line 3: | ||
== Scripts available == | == Scripts available == | ||
=== AddWiki.php === | === AddWiki.php === | ||
Usage: <kbd>mw | Usage: <kbd>mw <code of the wiki> addWiki</kbd> | ||
Create a database and the MediaWiki tables. Set the homepage. Fire a notification. | Create a database and the MediaWiki tables. Set the homepage. Fire a notification. | ||
Line 10: | Line 10: | ||
# Declare the instance in the configuration, at least the host/database name mapping | # Declare the instance in the configuration, at least the host/database name mapping | ||
# On a shared MySQL server, you first need to grant privileges through MySQL: <code>GRANT ALL PRIVILEGES ON <code of the wiki>.* TO 'mediawiki-saas'@'localhost';</code> | # On a shared MySQL server, you first need to grant privileges through MySQL:<br><code>GRANT ALL PRIVILEGES ON <code of the wiki>.* TO 'mediawiki-saas'@'localhost';</code> | ||
You can create the database yourself, but the addWiki script can do it. | You can create the database yourself, but the addWiki script can do it. |
Revision as of 01:00, 1 April 2018
The NasqueronMaintenance is a repository to host a collection of scripts useful on the MediaWiki SaaS cluster. It contains scripts specific to our installation and architecture.
Scripts available
AddWiki.php
Usage: mw <code of the wiki> addWiki
Create a database and the MediaWiki tables. Set the homepage. Fire a notification.
Before running this scripts there are several things to do:
- Declare the instance in the configuration, at least the host/database name mapping
- On a shared MySQL server, you first need to grant privileges through MySQL:
GRANT ALL PRIVILEGES ON
.* TO 'mediawiki-saas'@'localhost';
You can create the database yourself, but the addWiki script can do it.
It's not required but useful to configure nginx beforehand in the rOPS repository.
AddWiki.php