Chinaunix首页 | 论坛 | 博客
  • 博客访问: 292918
  • 博文数量: 84
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: -10
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-05 09:11
文章分类
文章存档

2015年(1)

2014年(6)

2013年(8)

2012年(1)

2011年(6)

2010年(2)

2009年(16)

2008年(44)

我的朋友

分类: LINUX

2008-11-27 13:58:02

wiki服务器安装
前提条件
apache+php+mysql

1、准备工作
>>1、下载MediaWiki程序
wget
程序解压:
Linux : tar -zxvf mediawiki-1.4.6.tar.gz
Windows: 用WINRAR或者WINZIP解压mediawiki-1.5.4.tar.gz
>>2、上传全部文件到自己空间并修改config目录设为可写(a+w)模式
chmod a+w config
或chmod 777 config
>>3、建立wiki库

[root@irunnet wiki]# mysql --user=root mysql
      mysql>use mysql;
      mysql>create database wiki;
      mysql> GRANT ALL PRIVILEGES ON wiki.* TO IDENTIFIED BY 'wiki' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 ;
      mysql> flush privileges;

2、安装、配置
通过浏览器访问index.php文件(例如 ),安装程序会自动运行,并检查系统配置。
按照页面提示填写相应的内容(以下内容必填,其他可以选填)
Site name:wiki.irunnet.com(建议英文)
Contact e-mail:站长的联络邮件
Language:语种选择。(建议选择zh-cn简体中文;高级用户也可以支持繁简体自动转换的zh中文)
Copyright/license medadata:版权类型。
Sysop account name:管理员用户(建议英文)。
password:管理员的密码
MySQL server:MySQL服务器名称(一般为localhost)
Database name:数据库名称
DB username:数据库用户名
DB password:数据库密码
Database table prefix:数据表前缀。(例如wiki_)

执行了浏览器安装过程後,在config目录下会自动生成一个LocalSettings.php的本地配置文件。
把它LocalSettings.php移动到上级目录中。

3、完成
通过浏览器访问index.php文件,就可以看到完成安装的wiki首页了

 

以下是该页面的配置

 
 

is Copyright (C) 2001-2005 by Magnus Manske, Brion Vibber, Lee Daniel Crocker, Tim Starling, Erik Möller, Gabriel Wicke and others.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. or

MediaWiki 1.5.4 installation

Please include all of the lines below when reporting installation problems.

Checking environment...

  • PHP 5.1.6: ok
  • PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
  • Have XML / Latin1-UTF-8 conversion support.
  • PHP is configured with no memory_limit.
  • No zlib support.
  • Neither nor are installed, can't use object caching functions
  • Found GNU diff3: /usr/bin/diff3.
  • Found ImageMagick: /usr/local/bin/convert; image thumbnailing will be enabled if you enable uploads.
  • Installation directory: /usr/local/apache/htdocs/wiki
  • Script URI path: /wiki

Site config

Must not be blank or "MediaWiki".
Your site name should be a relatively short word. It'll appear as the namespace name for 'meta' pages as well as throughout the user interface. Good site names are things like "" and ""; avoid punctuation, which may cause problems.
This will be used as the return address for password reminders and may be displayed in some error conditions so visitors can get in touch with you. It is also be used as the default sender address of e-mail notifications (enotifs).
You may select the language for the user interface of the wiki... Some localizations are less complete than others. Unicode (UTF-8 encoding) is used for all localizations.
Select one:
  • (link will wipe out any other data in this form!)
MediaWiki can include a basic license notice, icon, and machine-readable copyright metadata if your wiki's content is to be licensed under the GNU FDL or a Creative Commons license. If you're not sure, leave it at "none".
Must not be blank
A sysop user account can lock or delete pages, block problematic IP addresses from editing, and other maintenance tasks. If creating a new wiki database, a sysop account will be created with the given name and password.
Select one:
Using a shared memory system such as Turck MMCache, eAccelerator, or Memcached will speed up MediaWiki significantly. Memcached is the best solution but needs to be installed. Specify the server addresses and ports in a comma-separted list. Only use Turck shared memory if the wiki will be running on a single Apache server.

E-mail, e-mail notification and authentication setup

Select one:
Use this to disable all e-mail functions (send a password reminder, user-to-user e-mail and e-mail notification), if sending e-mails on your server doesn't work.
Select one:
Use this to disable only the user-to-user e-mail function (EmailUser).
Select one:

E-mail notification sends a notification e-mail to a user, when the user_talk page is changed and/or when watch-listed pages are changed, depending on the above settings. When testing this feature, be reminded, that obviously an e-mail address must be present in your preferences and that your own changes never trigger notifications to be sent to yourself.

Users get corresponding options to select or deselect in their users' preferences. The user options are not shown on the preference page, if e-mail notification is disabled.

There are additional options for fine tuning in /includes/DefaultSettings.php .

Select one:

E-mail address authentication uses a scheme to authenticate e-mail addresses of the users. The user who initially enters or changes his/her stored e-mail address gets a link with a token mailed to that address. The stored e-mail address is authenticated at the moment the user comes back to the wiki via the link.

The e-mail address stays authenticated as long as the user does not change it; the time of authentication is indicated on the user preference page.

If the option is enabled, only authenticated e-mail addresses can receive EmailUser mails and/or e-mail notification mails.

Database config

If your database server isn't on your web server, enter the name or IP address here.
Must not be blank
If you only have a single user account and database available, enter those here. If you have database root access (see below) you can specify new accounts/databases to be created.

If you need to share one database between multiple wikis, or MediaWiki and another web application, you may choose to add a prefix to all the table names to avoid conflicts.

Avoid exotic characters; something like mw_ is good.

Select one:
EXPERIMENTAL: You can enable explicit Unicode charset support for MySQL 4.1 and 5.0 servers. This is not well tested and may cause things to break. If upgrading an older installation, leave in backwards-compatible mode.
You will only need this if the database and/or user account above don't already exist. Do not type in your machine's root password! MySQL has its own "root" user with a separate password. (It might even be blank, depending on your configuration.)

 

 

阅读(2821) | 评论(0) | 转发(0) |
0

上一篇:mysql索引应用

下一篇:Linux命令详解 — time

给主人留下些什么吧!~~