• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

remko/wigit: Simple & light Git-based wiki

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

remko/wigit

开源软件地址:

https://github.com/remko/wigit

开源编程语言:

PHP 89.2%

开源软件介绍:

⚠️ The implementation of this project is very naive (using processes etc.), and has not gone through any security review. I would be surprised if it still works, and if it does, I wouldn't trust it if I were you. Leaving it here for historical purpose only.

WiGit: A Git-based Wiki

About

WiGit is a simple Wiki written in PHP, using Git as a backend for tracking changes. Besides Git, this wiki makes use of Textile for marking up text.

Features

  • Very simple and light
  • Easily customizable using themes
  • Extensive syntax for marking up text (using Textile)
  • Full history tracking support
  • Basic support for users/authors, by using the HTTP authentication headers to extract the user.
  • Support for pretty URLs (using URL rewriting)

Requirements

  • Webserver
  • PHP4
  • Git

Installation

  • Put the WiGit dir in some place where the webserver can find it
  • Make sure there's a 'data' subdir, and that it is writable by the webserver
  • Copy config.php.sample to config.php, and edit config.php to reflect your local settings
  • Surf to the wigit URL, and you should start by editing the front page

For URL rewriting, change the SCRIPT_URL to be the base URL prefix (as is shown in the config file), and add the necessary URL rewrite rules for your webserver. E.g.,

  • For Apache, add the following to .htaccess in your wigit install dir:

      <IfModule mod_rewrite.c>
      	RewriteEngine On
      	RewriteBase /wigit/
      	RewriteCond %{REQUEST_FILENAME} !-f
      	RewriteRule (.*) /wigit/index.php?r=/$1 [L] 
      </IfModule>
    
  • For lighttpd, add the following to your config file:

      url.rewrite-once = (
      		"^/wigit/themes/(.*)" => "$0",
      		"^/wigit(.*)" => "/wigit/index.php?r=$1",
      	)
    

(where /wigit is replaced by your own base url)

For user support, configure your webserver to require authentication for the wigit install dir. E.g.

  • For Apache, add the following to .htaccess in your wigit install dir:

      AuthType Basic
      AuthName "My WiGit"
      AuthUserFile /path/to/passwords/file
      Require valid-user
    
  • For lighttpd, add the following to your config file:

      auth.backend = "htdigest"
      auth.backend.htdigest.userfile = "/path/to/htdigest/file"
      auth.require = (
      			"/wigit" => (
      					"method" => "digest",
      					"realm" => "My WiGit",
      					"require" => "valid-user",
      				)
      		)
    



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap