分类: LINUX
2008-11-27 13:58:02
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
Please include all of the lines below when reporting installation problems.