MediaWiki: Difference between revisions
php-fpm |
|||
| (2 intermediate revisions 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 | 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== | ||
* 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 66: | Line 68: | ||
* To allow files larger than the default 2M to be uploaded, edit the value of <tt>upload_max_filesize</tt> in <tt>/etc/php.ini</tt> | * To allow files larger than the default 2M to be uploaded, edit the value of <tt>upload_max_filesize</tt> in <tt>/etc/php.ini</tt> | ||
** This requires a web server restart to take effect | ** This requires a web server restart to take effect | ||
===System strings=== | |||
Most strings in e.g. sidebars can be edited in the Special:AllMessages area. To see what message key a string corresponds to, add "uselang=qqx" to a URI, e.g. https://nick-black.com/dankwiki/index.php?title=User:Dank&uselang=qqx. | |||
==Moving a wiki== | ==Moving a wiki== | ||
| Line 110: | Line 115: | ||
* [http://en.wikipedia.org/wiki/Image_tutorial Wikipedia image tutorial] | * [http://en.wikipedia.org/wiki/Image_tutorial Wikipedia image tutorial] | ||
I also have [[MediaWiki editing|some information]]. | I also have [[MediaWiki editing|some information]]. | ||
===Editing permissions=== | |||
Some editing capabilities are by default disabled even for sysops: | |||
<pre> | |||
$wgGroupPermissions['sysop']['deleterevision'] = true; | |||
$wgGroupPermissions['sysop']['editsitecss'] = true; | |||
$wgGroupPermissions['sysop']['editsitejs'] = true; | |||
</pre> | |||
==See Also== | ==See Also== | ||
* [http://www.debian-administration.org/articles/137 mod_deflate configuration] for [[Debian]] | * [http://www.debian-administration.org/articles/137 mod_deflate configuration] for [[Debian]] | ||