ITeye博客

mediawiki安装使用

openstudy · 2013-04-02 23:11 · 开源软件 · Markdown

一、安装mediawiki(apache/php/mysql/mediawiki) 1.安装apache, Server Infomation分别填写: .localdomain .localdomain admin@.localdomain 测试http://localhost,如果显示It Works,说明apache安装正常 2.安装php, Web Server Setup选择Apache 2.2.x module Apache Configuration Directory选择apache的安装路径 重启apache,在apache的htdocs目录下新建hello.php文件,内容为

测试http://localhost/hello.php,如果显示很多php的信息,说明php安装成功 3.安装mysql,创建用户 4.解压缩mediawiki,文件夹改名为wiki,然后复制到apache的htdocs目录下 http://localhost/wiki/mw-config/index.php,进行mediawiki的配置,配置完成后会得到一个LocalSettings.php,将它复制到mediawiki的目录下

修改LocalSetting.php文件的以下变量 $wgServer改为实际ip地址 $wgLogo改为实际的logo图片位置 $wgEnableUploads改为true

修改左侧导航栏:在搜索位置输入mediawiki:sidebar,然后编辑 默认是

  • navigation ** mainpage|mainpage-description ** portal-url|portal ** currentevents-url|currentevents ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help
  • SEARCH
  • TOOLBOX
  • LANGUAGES

In your LocalSettings.php, look to see if $wgServer is set to something.

二、WikiEditor http://www.mediawiki.org/wiki/Extension:WikiEditor

LocalSettings.php添加以下内容: require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );

Enables use of WikiEditor by default but still allow users to disable it in preferences

$wgDefaultUserOptions = 1; $wgDefaultUserOptions = 1;

Displays the Preview and Changes tabs

$wgDefaultUserOptions = 1;

Displays the Publish and Cancel buttons on the top right side

$wgDefaultUserOptions = 1;

三、mediawiki语法

四、目录显示在右侧 编辑commonContent.css,添加一行 #toc { float: right; border: 1px solid #aaa; BACKGROUND-COLOR: #aaa };

五、管理 Special:ListUsers,列出所有的用户

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。