特殊:Badtitle/NS100:MediaWiki:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第3行: | 第3行: | ||
[[UbuntuHelp:MediaWiki|MediaWiki]] is the engine that is used for Wikipedia. See [http://www.mediawiki.org/ MediaWiki] for more information | [[UbuntuHelp:MediaWiki|MediaWiki]] is the engine that is used for Wikipedia. See [http://www.mediawiki.org/ MediaWiki] for more information | ||
=== Install === | === Install === | ||
To install on your [u|k|edu]buntu server (with Apache and MySQL - [[UbuntuHelp:ApacheMySQLPHP]] or another web server already installed): | To install on your [u|k|edu]buntu server (with Apache and MySQL - [[UbuntuHelp:ApacheMySQLPHP|ApacheMySQLPHP]] or another web server already installed): | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install mediawiki imagemagick mediawiki-math | sudo apt-get install mediawiki imagemagick mediawiki-math | ||
第11行: | 第11行: | ||
sudo /etc/init.d/apache2 restart | sudo /etc/init.d/apache2 restart | ||
</nowiki></pre> | </nowiki></pre> | ||
The next step is to visit the website. Since you will be entering passwords, you don't want to make an unsecured connection. Either set up a ssl server] ( see [[UbuntuHelp:forum/server/apache2/SSL]]) and connect with https://your.site.net/mediawiki, or visit from the server itself (using [lynx] or [links], two excellent text-based web browsers): | The next step is to visit the website. Since you will be entering passwords, you don't want to make an unsecured connection. Either set up a ssl server] ( see [[UbuntuHelp:forum/server/apache2/SSL|forum/server/apache2/SSL]]) and connect with https://your.site.net/mediawiki, or visit from the server itself (using [lynx] or [links], two excellent text-based web browsers): | ||
<pre><nowiki> | <pre><nowiki> | ||
lynx localhost/mediawiki | lynx localhost/mediawiki |
2007年12月5日 (三) 11:29的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MediaWiki }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/af | • {{#if: UbuntuHelp:MediaWiki|Afrikaans| [[::MediaWiki/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/ar | • {{#if: UbuntuHelp:MediaWiki|العربية| [[::MediaWiki/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/az | • {{#if: UbuntuHelp:MediaWiki|azərbaycanca| [[::MediaWiki/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/bcc | • {{#if: UbuntuHelp:MediaWiki|جهلسری بلوچی| [[::MediaWiki/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/bg | • {{#if: UbuntuHelp:MediaWiki|български| [[::MediaWiki/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/br | • {{#if: UbuntuHelp:MediaWiki|brezhoneg| [[::MediaWiki/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/ca | • {{#if: UbuntuHelp:MediaWiki|català| [[::MediaWiki/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/cs | • {{#if: UbuntuHelp:MediaWiki|čeština| [[::MediaWiki/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/de | • {{#if: UbuntuHelp:MediaWiki|Deutsch| [[::MediaWiki/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/el | • {{#if: UbuntuHelp:MediaWiki|Ελληνικά| [[::MediaWiki/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/es | • {{#if: UbuntuHelp:MediaWiki|español| [[::MediaWiki/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/fa | • {{#if: UbuntuHelp:MediaWiki|فارسی| [[::MediaWiki/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/fi | • {{#if: UbuntuHelp:MediaWiki|suomi| [[::MediaWiki/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/fr | • {{#if: UbuntuHelp:MediaWiki|français| [[::MediaWiki/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/gu | • {{#if: UbuntuHelp:MediaWiki|ગુજરાતી| [[::MediaWiki/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/he | • {{#if: UbuntuHelp:MediaWiki|עברית| [[::MediaWiki/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/hu | • {{#if: UbuntuHelp:MediaWiki|magyar| [[::MediaWiki/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/id | • {{#if: UbuntuHelp:MediaWiki|Bahasa Indonesia| [[::MediaWiki/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/it | • {{#if: UbuntuHelp:MediaWiki|italiano| [[::MediaWiki/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/ja | • {{#if: UbuntuHelp:MediaWiki|日本語| [[::MediaWiki/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/ko | • {{#if: UbuntuHelp:MediaWiki|한국어| [[::MediaWiki/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/ksh | • {{#if: UbuntuHelp:MediaWiki|Ripoarisch| [[::MediaWiki/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/mr | • {{#if: UbuntuHelp:MediaWiki|मराठी| [[::MediaWiki/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/ms | • {{#if: UbuntuHelp:MediaWiki|Bahasa Melayu| [[::MediaWiki/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/nl | • {{#if: UbuntuHelp:MediaWiki|Nederlands| [[::MediaWiki/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/no | • {{#if: UbuntuHelp:MediaWiki|norsk| [[::MediaWiki/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/oc | • {{#if: UbuntuHelp:MediaWiki|occitan| [[::MediaWiki/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/pl | • {{#if: UbuntuHelp:MediaWiki|polski| [[::MediaWiki/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/pt | • {{#if: UbuntuHelp:MediaWiki|português| [[::MediaWiki/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/ro | • {{#if: UbuntuHelp:MediaWiki|română| [[::MediaWiki/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/ru | • {{#if: UbuntuHelp:MediaWiki|русский| [[::MediaWiki/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/si | • {{#if: UbuntuHelp:MediaWiki|සිංහල| [[::MediaWiki/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/sq | • {{#if: UbuntuHelp:MediaWiki|shqip| [[::MediaWiki/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/sr | • {{#if: UbuntuHelp:MediaWiki|српски / srpski| [[::MediaWiki/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/sv | • {{#if: UbuntuHelp:MediaWiki|svenska| [[::MediaWiki/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/th | • {{#if: UbuntuHelp:MediaWiki|ไทย| [[::MediaWiki/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/tr | • {{#if: UbuntuHelp:MediaWiki|Türkçe| [[::MediaWiki/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/vi | • {{#if: UbuntuHelp:MediaWiki|Tiếng Việt| [[::MediaWiki/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/yue | • {{#if: UbuntuHelp:MediaWiki|粵語| [[::MediaWiki/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/zh | • {{#if: UbuntuHelp:MediaWiki|中文| [[::MediaWiki/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/zh-hans | • {{#if: UbuntuHelp:MediaWiki|中文(简体)| [[::MediaWiki/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MediaWiki | UbuntuHelp:MediaWiki | {{#if: | :}}MediaWiki}}/zh-hant | • {{#if: UbuntuHelp:MediaWiki|中文(繁體)| [[::MediaWiki/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MediaWiki|:MediaWiki|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MediaWiki/zh | | {{#ifexist: MediaWiki/zh | | {{#ifeq: {{#titleparts:MediaWiki|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MediaWiki|1|-1|}} | zh | | }}
MediaWiki is the engine that is used for Wikipedia. See MediaWiki for more information
Install
To install on your [u|k|edu]buntu server (with Apache and MySQL - ApacheMySQLPHP or another web server already installed):
sudo apt-get install mediawiki imagemagick mediawiki-math
Then restart apache:
sudo /etc/init.d/apache2 restart
The next step is to visit the website. Since you will be entering passwords, you don't want to make an unsecured connection. Either set up a ssl server] ( see forum/server/apache2/SSL) and connect with https://your.site.net/mediawiki, or visit from the server itself (using [lynx] or [links], two excellent text-based web browsers):
lynx localhost/mediawiki
fill out the forms, noting that the final form is NOT your root or user password, but the password for the root mysql account (blank by default) Lastly, move the config files as requested to prevent anyone else from changing these settings: NOTE: Check the output in your web browser if it's instructions differ from below follow them.
sudo mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki/LocalSettings.php sudo chmod 600 /etc/mediawiki/LocalSettings.php sudo rm -Rf /var/lib/mediawiki/config
You are done! you should see a wiki page at: http://your.site.net/mediawiki
Customize
The apache config files reside at /etc/apache2/conf.d/mediawiki.conf You might want to customize the look of your wiki. To change the icon make a 135x135 pixal logo in the png format and move it to the right place:
sudo cp my_new_logo.png /var/lib/mediawiki/skins/common/images/wiki.png
To get rid of the mac-like sunburst in the background, edit /var/lib/mediawiki/skins/monobook/main.css and change: background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat; to background: #f9f9f9; see http://prevolution.org/mediawikifarm for running multiple wikis on a server