Media Wiki Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 53: Line 53:


=Locate the <tt>php.ini</tt> File=
=Locate the <tt>php.ini</tt> File=
 
{{Internal|PHP#Locate_the_php.ini_File|PHP &#124; Locate the php.ini File}}
<pre>
php -i
 
...
Configuration File (php.ini) Path => /etc
...
</pre>


=Upgrade a Wiki=
=Upgrade a Wiki=
{{Internal|Upgrading_MediaWiki|Upgrading MediaWiki}}
{{Internal|Upgrading_MediaWiki|Upgrading MediaWiki}}

Revision as of 04:32, 31 March 2021

External

Internal

Get Media Wiki Version

Look up "$wgVersion" in includes/DefaultSettings.php.

Alternatively go to Tools → Special Pages → Version

Installation

Media Wiki Installation

Backing Up a Wiki

Backing Up a MediaWiki Instance

Restoring a Wiki from Backup

Restoring MediaWiki from Backup

Moving a Wiki

Steps:

  1. Backup the source wiki
  2. Transfer backups from the old server to the new one
  3. Restore the backup on the new server

Lessons learned after performing a not500 export and a now510 import:

  • The wiki users carry passwords over (as expected, they're stored in the database).
  • MySQL export/import went fine:
mysqldump -h localhost -u <old-user> -p --default-character-set=binary <old-database> > novaordis-wiki.sql
mysql -u <new-user> -p <new-database> < novaordis-wiki.sql
  • Only the "image" content need to be transferred, and I needed to restore ownership to apache:apache and run
chcon -R -t httpd_sys_script_rw_t ./images

Create a User

Special pages -> Login / create account -> Create Account. Or Special:UserLogin/signup.

Get the List of All Users

Special Pages -> Users and rights -> User list. Or Special:ListUsers.

Locate the php.ini File

PHP | Locate the php.ini File

Upgrade a Wiki

Upgrading MediaWiki