Difference between revisions of "PKC MediaWiki configuration data"

From PKC
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:
</syntaxhighlight>
</syntaxhighlight>


Note that the value for <code>$wgDBserver</code> is often suggested to be <code>localhost</code>, and in the <code>docker-compose.yml</code> file for [[PKC]], it is set to be <code>database</code> already.
==Important parameters==
There are two important parameter that must be defined, database name and the administrators password.
===Database name in Docker's Default Network===
Due to [[PKC]] is running in docker, the value for <code>$wgDBserver</code> is often suggested to be <code>localhost</code>, and in the <code>docker-compose.yml</code> file for [[PKC]], it is set to be <code>database</code> already.
 
===Administrator's name and password===
MediaWiki allows you to define a name for a user with administrator privilege. In [[PKC]] convention, we will set up a user namely:<code>admin</code> to possess administrator's privilege.
 
Administrator user name: <code>admin</code>
Password:<code>YOUR PREFERED KEY PHRASE</code>
 
You may change the password using MediaWiki's web-based interface after you log-in as the user:<code>admin</code>. The interface is in the [[Special:Preferences]] page.

Latest revision as of 03:19, 18 August 2021

The configuration file should have the following entries:

## Database settings
$wgDBtype = "mysql";
$wgDBserver = "database";
$wgDBname = "my_wiki";
$wgDBuser = "wikiuser";
$wgDBpassword = "example";

Important parameters

There are two important parameter that must be defined, database name and the administrators password.

Database name in Docker's Default Network

Due to PKC is running in docker, the value for $wgDBserver is often suggested to be localhost, and in the docker-compose.yml file for PKC, it is set to be database already.

Administrator's name and password

MediaWiki allows you to define a name for a user with administrator privilege. In PKC convention, we will set up a user namely:admin to possess administrator's privilege.

Administrator user name: admin
Password:YOUR PREFERED KEY PHRASE

You may change the password using MediaWiki's web-based interface after you log-in as the user:admin. The interface is in the Special:Preferences page.