个人工具
登录
查看“UbuntuHelp:MediaWiki”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:MediaWiki”的源代码
来自Ubuntu中文
←
UbuntuHelp:MediaWiki
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/MediaWiki}} {{Languages|UbuntuHelp:MediaWiki}} MediaWiki is the engine that is used for Wikipedia, but you can also use it to set up your own wiki server with information of your own. See [http://www.mediawiki.org/ MediaWiki] for more information. === Install === To install on your Ubuntu (or Kubuntu, etc) server (with [[UbuntuHelp:ApacheMySQLPHP|Apache and MySQL]] already installed): <pre><nowiki> sudo apt-get install mediawiki imagemagick mediawiki-math mysql-server </nowiki></pre> To enable MediaWiki edit the following file and remove the '#' from the third line so that it reads 'Alias /mediawiki /var/lib/mediawiki': <pre><nowiki> sudo nano /etc/apache2/conf.d/mediawiki.conf </nowiki></pre> Then restart apache: <pre><nowiki> sudo /etc/init.d/apache2 restart </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|forum/server/apache2/SSL]]) and connect with https://yoursite.example.com/mediawiki, or visit from the server itself (using [[UbuntuHelp:elinks|elinks]] or lynx, two excellent text-based web browsers): <pre><nowiki> elinks localhost/mediawiki </nowiki></pre> 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 its instructions differ from below, follow them. <pre><nowiki> 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 </nowiki></pre> You are done! you should see a wiki page at: http://yoursite.example.com/mediawiki === Customize === The Apache2 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 pixel logo in PNG format and move it to the right place: <pre><nowiki> sudo cp my_new_logo.png /var/lib/mediawiki/skins/common/images/wiki.png </nowiki></pre> 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; === Extensions === Mediawiki extensions are stored in the /etc/mediawiki-extensions/extensions-available folder. You can enable an extension using <pre><nowiki> sudo mwenext <extension.php> </nowiki></pre> Tab/autocomplete shows a list of extensions. Similarly use mwdisext to disable an extension. ==== More ==== It is possible to run multiple parallel instances of Mediawiki on a single server: * http://www.jirp.nl/2008/04/11/mediawiki-farm-multiple-wiki/ === See also === * [http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu] === External Links === The following are unverified suggestions made by users. ==== Turnkey Linux ==== An Ubuntu-based [[UbuntuHelp: http://www.turnkeylinux.org/appliances/mediawiki | MediaWiki appliance ]] is one of the easiest ways to get up and running with MediaWiki on Ubuntu. It's part of a family of pre-integrated [[UbuntuHelp: http://www.turnkeylinux.org/ | TurnKey Linux ]] [[UbuntuHelp: http://www.turnkeylinux.org/appliances | Software Appliances ]] based on Ubuntu 8.04.2 (Hardy LTS). ---- [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:MediaWiki
。