Media Wiki Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(72 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]]


=Backing Up a Wiki=
=<span id='Installation'><span>Media Wiki Installation=
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}}
 
=<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}}


* External: https://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
=<Span id='Back_Up_a_Wiki'></span><Span id='Back_Up'></span>Media Wiki Back Up Automation=
{{Internal|Media_Wiki_Backup_Automation#Overview|Media Wiki Backup Automation}}


=Restoring a Wiki from Backup=
=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|Restoring MediaWiki from Backup|Restoring MediaWiki from Backup}}
For 1.35 onward, look up MW_VERSION in <code>includes/Defines.php</code>.


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


* External: https://www.mediawiki.org/wiki/Manual:Moving_a_wiki
=Locate the <tt>php.ini</tt> File=
{{Internal|PHP#Locate_the_php.ini_File|PHP &#124; Locate the php.ini File}}


Lessons learned after performing a not500 export and a now510 import:
=Increase the Maximum Size for Uploaded Files=
* The wiki users carry passwords over (as expected, they're stored in the database).
{{Internal|Media_Wiki_Installation#Increase_the_Maximum_Size_for_Uploaded_Files|Increase the Maximum Size for Uploaded Files}}
* MySQL export/import went fine:
=Enable and Configure Image Uploads=
<pre>
{{Internal|Media Wiki Enable and Configure Image Uploads|Enable and Configure Image Uploads}}
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=
=Configure Site Logo=
{{Internal|Media_Wiki_Configure_Site_Logo|Configure Site Logo}}


Special pages -> Login / create account -> Create Account. Or [[Special:UserLogin/signup]].
=Visual Editor=
{{Internal|Media_Wiki_Visual_Editor|Visual Editor}}


=Get the List of All Users=
=CirrusSearch=
{{Internal|Media_Wiki_CirrusSearch|CirrusSearch}}


=User Operations=
{{Internal|Media_Wiki_Security_Concepts#User|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]].
Special Pages -> Users and rights -> User list. Or [[Special:ListUsers]].


=Locate the <tt>php.ini</tt> File=
=Troubleshooting=
 
{{Internal|Media Wiki Troubleshooting|Troubleshooting}}
<pre>
=Get Support=
php -i
{{External|https://www.mediawiki.org/wiki/Project:Support_desk}}
 
...
Configuration File (php.ini) Path => /etc
...
</pre>

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