个人工具

“UbuntuHelp:MediaWiki”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/MediaWiki}} {{Languages|UbuntuHelp:MediaWiki}} MediaWiki is the engine that is used for Wikipedia. See [http://www.mediawiki.org/ MediaWiki] for m...)
 
第2行: 第2行:
 
{{Languages|UbuntuHelp:MediaWiki}}
 
{{Languages|UbuntuHelp:MediaWiki}}
 
MediaWiki is the engine that is used for Wikipedia. See [http://www.mediawiki.org/ MediaWiki] for more information
 
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]] 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  
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Then restart apache:  
 
Then restart apache:  
 
<pre><nowiki>
 
<pre><nowiki>
 
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]]) 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
 
</nowiki></pre>
 
</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)
 
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:  
 
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.
 
'''NOTE:''' Check the output in your web browser if it's instructions differ from below follow them.
 
<pre><nowiki>
 
<pre><nowiki>
第31行: 第24行:
 
</nowiki></pre>
 
</nowiki></pre>
 
You are done!  you should see a wiki page at: http://your.site.net/mediawiki
 
You are done!  you should see a wiki page at: http://your.site.net/mediawiki
 
 
===  Customize ===
 
===  Customize ===
 
 
The apache config files reside at /etc/apache2/conf.d/mediawiki.conf
 
The apache config files reside at /etc/apache2/conf.d/mediawiki.conf
 
 
You might want to customize the look of your wiki.   
 
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:  
 
To change the icon make a 135x135 pixal logo in the png format and move it to the right place:  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp my_new_logo.png /var/lib/mediawiki/skins/common/images/wiki.png
 
sudo cp my_new_logo.png /var/lib/mediawiki/skins/common/images/wiki.png
 
</nowiki></pre>
 
</nowiki></pre>
 
 
To get rid of the mac-like sunburst in the background, edit /var/lib/mediawiki/skins/monobook/main.css and change:
 
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;
 
background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;
 
to  
 
to  
 
background: #f9f9f9;
 
background: #f9f9f9;
 
 
 
see http://prevolution.org/mediawikifarm for running multiple wikis on a server
 
see http://prevolution.org/mediawikifarm for running multiple wikis on a server
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 20:14的版本

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 - UbuntuHelp: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 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):

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