There are many ways to set up a PmWiki site, and ZAP can be configured differently based on your setup. The setup below is for a basic CMS, where only "webmasters" can do direct editing of pages. All member interaction is done through ZAP. Here is the relevant section of a sample config file to give you ideas for your site:
## enable authuser, zap & modules include_once("$FarmD/scripts/authuser.php"); include_once("$FarmD/cookbook/zap.php"); include_once("$FarmD/cookbook/zaptoolbox.php"); ## set passwords $DefaultPasswords['read'] = 'id:*'; if (FmtPageName('$Group', $pagename) == "Main") { $DefaultPasswords['read'] = ''; } $DefaultPasswords['edit'] = '@webmasters'; $DefaultPasswords['admin'] = 'id:Caveman'; $DefaultPasswords['zap'] = 'id:*'; ## protect data $HandleAuth['source'] ='admin'; $HandleAuth['diff'] ='admin';
Note: Do not confuse your local config.php file with ZAP's site configuration page (Site.ZAPConfig). This page is talking about your local config file.