MediaWiki: Difference between revisions

 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
I'm using the [http://www.mediawiki.org/wiki/MediaWiki MediaWiki] software from the WikiMedia Foundation to power my wikis. MediaWiki is written in PHP5, and thus precludes the use of a multi-threaded version of [http://www.apache.org Apache].
I'm using the [http://www.mediawiki.org/wiki/MediaWiki MediaWiki] software from the WikiMedia Foundation to power my wikis. '''The following information is largely [[Debian]]-specific.'''
 
==Use with Apache==
By default (at least on Debian), MediaWiki's PHP is run within Apache's PHP module <tt>mod_php</tt>. This can only be safely run under the multiprocess [https://httpd.apache.org/docs/2.4/mod/prefork.html mpm_prefork] paradigm. To use the (generally superior) [https://httpd.apache.org/docs/2.4/mod/worker.html mpm_worker] or [https://httpd.apache.org/docs/2.4/mod/event.html mpm_event] modules, one ought employ [https://www.php.net/manual/en/install.fpm.php php-fpm], the PHP "fast process manager" (note that FastCGI is also a thing. I don't know much about it).


==Installing MediaWiki==
==Installing MediaWiki==
'''The following information is largely [[Debian]]-specific.'''
* Have handy the administrator account/password for your MySQL installation.
* Have handy the administrator account/password for your MySQL installation.
** I advise you to install MySQL ''before'' MediaWiki, not as a single <tt>apt</tt> step.
** I advise you to install MySQL ''before'' MediaWiki, not as a single <tt>apt</tt> step.
Line 96: Line 98:


==Extensions==
==Extensions==
A variety of extensions are available for MediaWiki. The most popular and stable are collected in the Debian package <tt>mediawiki-extensions</tt>, including (as of 1.10) GeSHi, Cite, inputbox, and ParserFunctions. By default, none are enabled -- the package only provides the extensions; it does not enable them!
A variety of extensions are available for MediaWiki. The most popular and stable were once collected in the Debian package <tt>mediawiki-extensions</tt>, but as of 2026 this package no longer exists in the archive. So:
 
===Enabling Debian-Supported Extensions===
* Install the <tt>mediawiki-extensions</tt> package.
* Enter the <tt>/etc/mediawiki-extensions/extensions-enabled</tt> directory.
* Enable extensions by creating symbolic links to contents of the <tt>/etc/mediawiki-extensions/extensions-available</tt> directory.
** To enable all extensions, run: <tt>for i in ../extensions-available/* ; do sudo ln -s /etc/mediawiki-extensions/extensions-available/`basename $i` . ; done</tt>


===Enabling other Extensions===
* Download desired extensions to <tt>/var/lib/mediawiki/extensions</tt>
* Download the extension to <tt>/var/lib/mediawiki/extensions</tt>
* See <tt>/var/lib/mediawiki/extensions/README</tt> for up-to-date information on enabling it
* See <tt>/var/lib/mediawiki/extensions/README</tt> for up-to-date information on enabling it
* Worth noting: [http://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration googleAnalytics], [http://www.mediawiki.org/wiki/Extension:Countdown Countdown], [http://www.mediawiki.org/wiki/Extension:RSS RSSNews]
* Worth noting: [http://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration googleAnalytics], [http://www.mediawiki.org/wiki/Extension:Countdown Countdown], [http://www.mediawiki.org/wiki/Extension:RSS RSSNews]