-
Notifications
You must be signed in to change notification settings - Fork 1
MediaWiki
MediaWiki requires the following PHP version (see compatibility list):
-
PHP 5.3: MediaWiki 1.13 - 1.26
-
PHP 5.4: MediaWiki 1.17 - 1.26
-
PHP 5.5: MediaWiki 1.18 -
-
PHP 5.6: MediaWiki 1.23 -
-
PHP 7.0: MediaWiki 1.27 -
MediaWiki can be downloaded as follows:
$ git clone https://github.com/wikimedia/mediawiki.git $ cd mediawiki $ git checkout -b REL1_25 origin/REL1_25
Since version 1.24 the skin has to be cloned separately:
$ cd skins $ rm .gitignore $ git clone https://github.com/wikimedia/mediawiki-skins-MonoBook --branch REL1_25 --single-branch MonoBook $ cd MonoBook $ rm -rf .git
Since version 1.27 the skin has to be updated from submodule:
$ git submodule update --init -- skins/MonoBook
To merge the submodule:
$ mv skins/MonoBook skins/MonoBook.tmp $ git submodule deinit -f -- skins/MonoBook $ rm -rf .git/modules/skins/MonoBook $ rm -rf skins/MonoBook $ rm -rf skins/.gitignore $ mv skins/MonoBook.tmp skins/MonoBook
Then modify LocalSettings.php to load the skin:
wfLoadSkin( 'MonoBook' );
See also:
Open http://server.example.com and follow the instruction. Download and install LocalSettings.php.
Database connection is configured as follows:
$wgDBtype = "mysql"; $wgDBserver = $_ENV['OPENSHIFT_MYSQL_DB_HOST'].":".$_ENV['OPENSHIFT_MYSQL_DB_PORT']; $wgDBname = $_ENV['OPENSHIFT_APP_NAME']; $wgDBuser = $_ENV['OPENSHIFT_MYSQL_DB_USERNAME']; $wgDBpassword = $_ENV['OPENSHIFT_MYSQL_DB_PASSWORD'];
Edit MediaWiki:Sidebar, enter:
* SEARCH * navigation ** mainpage|Home ** PKI_Documentation|Documentation ** PKI_FAQ|FAQ ** PKI_Users|Users ** PKI_Developers|Developers ** PKI_Download|Download ** PKI_Bugs|Bugs ** recentchanges-url|recentchanges * TOOLBOX * LANGUAGES
See also MediaWiki:Sidebar.
To lock wiki add the following lines into LocalSettings.php:
$wgReadOnly = 'This wiki is currently under maintenance.';
To unlock wiki restore the original LocalSettings.php.
See also:
To list users:
mysql> select user_id, user_name, user_email from user order by user_name;
To list user groups:
mysql> select user_name, user_email, ug_group from user left join user_groups on user_id = ug_user order by user_name;
$ dnf install pandoc mariadb-connector-c-devel $ pip install mariadb sphinx