Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huksley/dokuwiki-phar
DokuWiki addon to use it as single file installation (PHAR)
https://github.com/huksley/dokuwiki-phar
Last synced: about 2 months ago
JSON representation
DokuWiki addon to use it as single file installation (PHAR)
- Host: GitHub
- URL: https://github.com/huksley/dokuwiki-phar
- Owner: huksley
- License: gpl-2.0
- Created: 2015-05-22T16:19:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-22T17:33:04.000Z (over 9 years ago)
- Last Synced: 2024-04-15T06:42:41.143Z (8 months ago)
- Language: PHP
- Size: 164 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-dokuwiki-phar
Awesome Lists containing this project
README
# DokuWiki PHAR
DokuWiki addon to use it as single file installation (PHAR).
Current PHP installations allow to use PHAR files as virtual directories. These files may contain, PHP, JS, GIF and other resources files and accessed (mostly) transparently by PHP code.
This project is a collection of files for DokuWiki to allow it to be served from single file.
Currenly only supporting serving from /wiki prefix.## Building PHAR
PHAR supports using ZIP (renamed to PHAR). Startup entry specified in file .phar/stub.php.
So for building just ZIP resulting dir and name it index.phar.#### Dirs and files from dokuwiki.tar.gz:
> bin/
> lib/
> conf/
> inc/
> *.php#### Dirs and files from this project:
> *.php
> data/
> .phar/#### If you want your wiki to be configurable from web-interface, copy following dirs:
> inc/
Change inc/init.php, line 18 to following (remove fullpath(xxx)):$preload = dirname(__FILE__).'/preload.php';
#### If you want your configuration be READ-ONLY, copy following dirs:
> conf/
Create zip from resulting directory and rename it to index.phar.
## Preparing Apache httpd 2.x
Apache module mod_rewrite must be enabled. Add following to httpd.conf:
AddType application/x-httpd-php .phar
DirectoryIndex index.phar
AllowOverride all
Create directory /wiki under DocumentRoot#### Place ht.access as .htaccess to /wiki
#### Place index.phar to /wiki
#### Create data directory in /wiki using following command
mkdir -m 0777 -p data/pages data/attic data/index data/locks data/media data/media_attic data/media_meta \
data/meta data/tmp data/cache#### If you want your wiki to be configurable from web-interface
#### Copy conf/ directory from this project to /wiki folder.
#### Make it writable
chmod a+rwx conf; chmod a+rw conf/*.php
## Ready!
You are ready to use DokuWiki.
Your wiki is already requires login. **Username is admin**. **Password is 123**.