Dokuwiki - Dev environment Configuration and Installation

1 - About

Personal configuration of my dokuwiki installation for development:

  • on Wamp (op my laptop XAMP)
  • with Idea

3 - Prerequisites

4 - Steps

4.1 - Install php

  • Install php
  • Install pear

4.2 - Clone Dokuwiki

You need to clone it in order to get the dokuwiki test class.

git clone git://github.com/splitbrain/dokuwiki.git .

4.3 - Phpunit

To run individual test file on plugin:

  • add the configuration file

  • set the _test directory as Test Source. Context menu option Mark directory As Test Source Root

4.3.1 - Run

  • A class/method: add the option –stderr to the test runner options to avoid PHPUnit_Framework_Error_Warning : Cannot modify header information - headers already sent by (output started at …php\pear\PHPUnit\Util\Printer.php:172)

  • A directory: add the option –test-suffix test.php to overide the Phpunit default

See: devel:intellij_idea#integrate_unit_tests

4.4 - Environment variable

Add in the PATH

  • the php directory

4.5 - Web Server

4.6 - Dokuwiki

In conf/local.php, change the URI parameters to your local installation

$conf['basedir'] = '/';
$conf['baseurl'] = 'http://localhost';

4.7 - Index.php

Verify that the index.php doesn't have a redirection.

4.8 - Javascript and CSS

  • debug your code with compress disabled
  • verify your code still works with compress enabled with the JSLint online service

4.9 - Cache

4.10 - Xdebug

dokuwiki/dev_config.txt · Last modified: 2018/06/17 11:33 by gerardnico