
Tutorials Support > Tutorials? > SampleConfig
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';
- AuthUser is only required if you wish to use ZAP's login capabilities.
- I have ZAP and ZAPtoolbox enabled everywhere on this site, because only $webmasters can edit pages.
- This setup only allows authenticated users to view pages. Visitors can see pages in group Main.
- Only authenticated members can submit ZAP forms. These settings will need to be overridden to allow visitors to use the Registration and Login forms!
- Just to be safe, the source and diff actions are disabled to help protect other data.
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.