Changes between Version 15 and Version 16 of faq/get-dedicated-wiki


Ignore:
Timestamp:
Sep 26, 2013, 4:32:30 PM (6 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/get-dedicated-wiki

    v15 v16  
    44May First/People Link runs a shared mediawiki installation, using the same wiki software used by [http://wikipedia.com].
    55
    6 If you would like your own wiki with a URL like http://yourorg.wiki.mayfirst.org/ then please [/newticket open a ticket] with the name you would like to use.
     6If you would like your own wiki just go to the [https://members.mayfirst.org/cp members control panel], click on the Web Apps link, click "New item" and choose "mediawiki" as the type.
    77
    8 == Admin directions ==
    9 
    10 These directions are for MFPL admins.
    11 
    12 To setup a new wiki:
    13 
    14  * In this example, I will refer to <prefix>. This variable should be changed based on the request coming in. <prefix> should be replaced wth a short name refering to the member requesting the wiki (e.g. mfpl or brecht).
    15  * Create a DNS A record for the member under the MFPL hosting order with the domain <prefix>.wiki.mayfirst.org that points to the IP address: 209.51.163.6
    16  * Login to peltier.mayfirst.org as root and run the following commands:
    17 {{{
    18 cd /etc/mediawiki/members-configs
    19 # first create your new file (changing <prefix> below to your wiki name and don't forget the php at the end)
    20 cp example.wiki.mayfirst.org.php <prefix>.wiki.mayfirst.org.php
    21 # now go into your new file and edit it to make sure the defaults do what you need and change the two instances of the word PREFIX with your own wiki's new name (just the name...not the full url)
    22 # create new tables for the installation.
    23 # for the tables, e.g. mfpl_ or ussf2010_
    24 ./create-new-tables <prefix>_
    25 # create an image directory (should match settings in <prefix>.wiki.mayfirst.org)
    26 mkdir /var/www/wiki.mayfirst.org/mediawiki/images/<prefix>
    27 chown mediawiki:nogroup /var/www/wiki.mayfirst.org/mediawiki/images/PREFIX
    28 # edit select-settings.php file, which includes the proper settings file based on the domain - adding a new stanza at the end
    29 }}}
    30  * At this point, you should be able to go to http://<prefix>.wiki.mayfirst.org and see a working wiki site.
    31  * Grant the requester sysop privileges. The requester will need special privileges in the wiki.
    32   * Ask the requester to create an account by using the OpenID login.
    33   * Once they have created the account, Login to peltier as root and:
    34 {{{
    35 su mediawiki
    36 mysql
    37 # replace <prefix> with whatever table prefix you used above
    38 SELECT user_id,user_name FROM <prefix>_user;
    39 # replace ID with whatever ID the user you want to give sysop privs has
    40 INSERT INTO <prefix>_user_groups SET ug_user = ID, ug_group = 'sysop';
    41 INSERT INTO <prefix>_user_groups SET ug_user = ID, ug_group = 'bureaucrat';
    42 }}}
     8The control panel will create your database and configure the mediawiki for you.