Media Wiki Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(59 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=
 
* https://www.mediawiki.org/wiki/Manual:FAQ
* MediaWiki FAQ: https://www.mediawiki.org/wiki/Manual:FAQ
* https://www.mediawiki.org/wiki/Manual:Configuration_settings


=Internal=
=Internal=
Line 7: Line 7:
* [[Media Wiki]]
* [[Media Wiki]]


=Get Media Wiki Version=
=<span id='Installation'><span>Media Wiki Installation=
Look up "$wgVersion" in [[Media_Wiki_Concepts#DefaultSettings.php|includes/DefaultSettings.php]].
A full last version new instance installation is recommend even in the case of a [[#Restoration|restoration]] of an older instance from backup. This is an opportunity to upgrade to the last LTS Media Wiki version.
{{Internal|Media Wiki Installation#Overview|Media Wiki Installation}}


Alternatively go to Tools → Special Pages → Version
=<span id='Restoration'></span>Media Wiki Restoration=
This procedure documents restoration of a site instance backed up with the [[Media_Wiki_Backup_Automation#Overview|Media Wiki Backup Automation]] procedure. Restoration implies performing a full new installation of the latest LTS version as a prerequisite, as described in [[Media Wiki Installation#Overview|Media Wiki Installation]].
{{Internal|Media Wiki Restoration#Overview|Media Wiki Restoration}}


=Installation=
=<Span id='Back_Up_a_Wiki'></span><Span id='Back_Up'></span>Media Wiki Back Up Automation=
{{Internal|Media Wiki Installation|Media Wiki Installation}}
{{Internal|Media_Wiki_Backup_Automation#Overview|Media Wiki Backup Automation}}


=Backing Up a Wiki=
=Get Media Wiki Version=
The MediaWiki, PHP, database and extension versions can be read from a working instance from Left hand side tab Tools → Special pages → Version → Installed software.


{{Internal|Backing Up a MediaWiki Instance|Backing Up a MediaWiki Instance}}
For 1.35 onward, look up MW_VERSION in <code>includes/Defines.php</code>.


=Restoring a Wiki from Backup=
For older versions, look up "$wgVersion" in <code>[[Media_Wiki_Concepts#DefaultSettings.php|includes/DefaultSettings.php]]</code>.


{{Internal|Restoring MediaWiki from Backup|Restoring MediaWiki from Backup}}
=Locate the <tt>php.ini</tt> File=
{{Internal|PHP#Locate_the_php.ini_File|PHP &#124; Locate the php.ini File}}


=Moving a Wiki=
=Increase the Maximum Size for Uploaded Files=
{{Internal|Media_Wiki_Installation#Increase_the_Maximum_Size_for_Uploaded_Files|Increase the Maximum Size for Uploaded Files}}
=Enable and Configure Image Uploads=
{{Internal|Media Wiki Enable and Configure Image Uploads|Enable and Configure Image Uploads}}


* External: https://www.mediawiki.org/wiki/Manual:Moving_a_wiki
=Configure Site Logo=
{{Internal|Media_Wiki_Configure_Site_Logo|Configure Site Logo}}


Steps:
=Visual Editor=
# [[Backing_Up_a_MediaWiki_Instance|Backup the source wiki]]
{{Internal|Media_Wiki_Visual_Editor|Visual Editor}}
# Transfer backups from the old server to the new one
# [[Restoring_MediaWiki_from_Backup|Restore the backup on the new server]]


Lessons learned after performing a not500 export and a now510 import:
=CirrusSearch=
* The wiki users carry passwords over (as expected, they're stored in the database).
{{Internal|Media_Wiki_CirrusSearch|CirrusSearch}}
* MySQL export/import went fine:
<pre>
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
</pre>
* Only the "image" content need to be transferred, and I needed to restore ownership to apache:apache and run
<pre>
chcon -R -t httpd_sys_script_rw_t ./images
</pre>
 
=Create a User=


=User Operations=
{{Internal|Media_Wiki_Security_Concepts#User|Users}}
==Create a User==
Special pages -> Login / create account -> Create Account. Or [[Special:UserLogin/signup]].
Special pages -> Login / create account -> Create Account. Or [[Special:UserLogin/signup]].
 
==Get the List of All Users==
=Get the List of All Users=
 
Special Pages -> Users and rights -> User list. Or [[Special:ListUsers]].
Special Pages -> Users and rights -> User list. Or [[Special:ListUsers]].


=Locate the <tt>php.ini</tt> File=
=Troubleshooting=
{{Internal|PHP#Locate_the_php.ini_File|PHP &#124; Locate the php.ini File}}
{{Internal|Media Wiki Troubleshooting|Troubleshooting}}
 
=Get Support=
=Upgrade a Wiki=
{{External|https://www.mediawiki.org/wiki/Project:Support_desk}}
{{Internal|Upgrading_MediaWiki|Upgrading MediaWiki}}

Latest revision as of 23:27, 30 December 2023

External

Internal

Media Wiki Installation

A full last version new instance installation is recommend even in the case of a restoration of an older instance from backup. This is an opportunity to upgrade to the last LTS Media Wiki version.

Media Wiki Installation

Media Wiki Restoration

This procedure documents restoration of a site instance backed up with the Media Wiki Backup Automation procedure. Restoration implies performing a full new installation of the latest LTS version as a prerequisite, as described in Media Wiki Installation.

Media Wiki Restoration

Media Wiki Back Up Automation

Media Wiki Backup Automation

Get Media Wiki Version

The MediaWiki, PHP, database and extension versions can be read from a working instance from Left hand side tab Tools → Special pages → Version → Installed software.

For 1.35 onward, look up MW_VERSION in includes/Defines.php.

For older versions, look up "$wgVersion" in includes/DefaultSettings.php.

Locate the php.ini File

PHP | Locate the php.ini File

Increase the Maximum Size for Uploaded Files

Increase the Maximum Size for Uploaded Files

Enable and Configure Image Uploads

Enable and Configure Image Uploads

Configure Site Logo

Visual Editor

Visual Editor

CirrusSearch

CirrusSearch

User Operations

Users

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.

Troubleshooting

Troubleshooting

Get Support

https://www.mediawiki.org/wiki/Project:Support_desk