PmWiki:Installation

 

See Also notes I have at PmWiki:Profiles.MichaelPaulukonis and the http://www.pmwiki.org/wiki/Cookbook/TwitterBootstrap (or at github)

 

I like the project - particularly the skin, which I’ve extended by extracting it from the starter-kit so it can be standalone, and have more features.
Also, I don’t need all of the components in the starter-kit, like Blog It.
However, it might not be a bad component to have in a client-based starter. “here you go”, you know?
So, I should bundle up what I have.
See my notes @ Site.Notes -- which, if you aren’t me, you can’t see. Sorry.

 

TODO: config.php and .htaccess that will work in both dev and production.

 

config.php can be handled by some tweaks to check the servername

 

if ($_SERVER['HTTP_HOST'] == 'localhost') {
    $ScriptUrl = 'http://localhost';
    $PubDirUrl = 'http://localhost/pub';
}

 

 

clean urls

Cookbook:CleanUrls

 

 

index.php

The PmWiki distribution deliberately doesn’t include an index.php file. You can easily add your own “wrapper script” in the same directory as pmwiki.php. Create a new file called index.php with the following single line of text (missing a closing “ ?>” tag deliberately):
<?php include_once('pmwiki.php');

 

copy docs\sample-config.php to local\config.php

 

 

additions/changes to local\config.php

## http://www.pmwiki.org/wiki/Cookbook/SkinChange
$EnableAutoSkinList = 1;
include_once('cookbook/skinchange.php');


## User Authentication
## http://www.pmwiki.org/wiki/PmWiki/AuthUser
$DefaultPasswords['edit'] = crypt('<PASSWORD>');
include_once("$FarmD/scripts/authuser.php");


## http://www.pmwiki.org/wiki/PmWiki/PageDirectives
## enable linebreaks by default
$HTMLPNewline = '<br/>';


##  force explicit use of link ([[...]]) markup
##  Set $LinkWikiWords if you want to allow WikiWord links.
if ($Group == '<TARGET_GROUP>') {
        $LinkWikiWords = 0## disable for this group only
        #$SpaceWikiWords = 0; ## turn off WikiWord spacing
} else {
        $LinkWikiWords = 1; ## enable WikiWord links for other groups
}

## http://www.pmwiki.org/wiki/PmWiki/PageDirectives#faq
## must be PRIOR to the rename.php inclusion as it is called from w/in in my revised rename patch
$EnableRedirectQuiet=1;

## activate rename module
## http://www.pmwiki.org/wiki/Cookbook/RenamePage
## Activate the RenamePage recipe.
if ($action == 'rename' || $action == 'postrename' || $action == 'links' ) {
  ## comment out RenameHelper if MarkupExtensions are used
  ##include_once("$FarmD/cookbook/renamehelper.php");
  include_once("cookbook/rename.php");
}
 

 

refs from above:
http://www.pmwiki.org/wiki/Cookbook/SkinChange
http://www.pmwiki.org/wiki/PmWiki/AuthUser - NOTE: this script comes with the default installation
http://www.pmwiki.org/wiki/Cookbook/RenamePage - I find this to be an invaluable refactoring tool. I’m always getting pagenames “wrong” on creation.

 

 

See Also

PmWikiDevelopment
PmToggleEdit