public
Fork of patrikf/ewiki
Description: Simple PHP Wiki using git as storage backend (native php only)
Homepage: http://soultcer.net/wiki/Code/eWiki
Clone URL: git://github.com/soult/ewiki.git
ewiki /
name age message
file .htaccess Fri Nov 21 06:03:10 -0800 2008 .htaccess: Add RewriteBase, replace php_flag wi... [Patrik Fimml]
file COPYING Wed Nov 05 07:14:35 -0800 2008 Officially add license information [Patrik Fimml]
file HACKING Tue Jul 22 06:06:43 -0700 2008 Add HACKING [Patrik Fimml]
file LICENSE Wed Nov 05 07:14:35 -0800 2008 Officially add license information [Patrik Fimml]
file README.rst Sun May 31 06:20:47 -0700 2009 Split off git library code to glip More inform... [Patrik Fimml]
file TODO Sat Mar 14 14:42:55 -0700 2009 Add 2 points to TODO [soult]
directory doc/ Fri Nov 21 15:59:44 -0800 2008 Add markup specification [Patrik Fimml]
file ewiki.sql Wed Jul 30 07:48:05 -0700 2008 Add user management [Patrik Fimml]
directory include/ Sun Jun 21 06:34:17 -0700 2009 MIME: Make suffix tree lookup in mime.cache 1.0... [Patrik Fimml]
file index.php Sun May 31 06:20:47 -0700 2009 Split off git library code to glip More inform... [Patrik Fimml]
file mootools-1.2-core-nc.js Thu Jul 24 08:22:07 -0700 2008 Add mootools [Patrik Fimml]
file php.ini Fri Nov 21 06:03:10 -0800 2008 .htaccess: Add RewriteBase, replace php_flag wi... [Patrik Fimml]
directory templates/ Sun Apr 19 13:28:55 -0700 2009 Remove "xxxy" from standard template [Patrik Fimml]

eWiki - A simple, git-based Wiki

Introduction

eWiki ("English Wiki") is a small Wiki written in PHP. Instead of using a database to store changes it uses Git. This allows you to run all those fancy SCM operations like bisect, blame and rebase on your Wiki, as well as editing it offline.

Requirements

  • PHP > 5.0
  • A server with mod_rewrite or another URL-rewriting mechanism
  • A database with a PDO driver if you want user authentication

Installing eWiki

Installing dependencies

eWiki uses glip to access git repositories. You should copy or symlink the lib folder of glip to include/glip.

Setting up a bare git repository

This only sets up a bare repository that will be used by eWiki. You still need another repository and at least one commit. Create an empty directory, cd into it and type the following command on your workstation or directly on the server, if you have shell access and git is installed:

git init --bare
git fetch /path/to/wiki/repository/ master:master

If you created the repository on your workstation, upload the resulting directory structure to a path on your webserver.

Configuring eWiki

Simply edit the file include/config.class.php according to the instructions given in the file.