<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Php Wiki Administration</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Php Wiki Administration</h1>
</div>
<div id="content">



<div class="wikitext"><p class="tightenable top"><i><b>Note:</b></i>  <i>Most of the actions on this page require administrative
privileges. They will not work unless you have set an admin username and
password in the <a href="PhpWiki.html" class="wiki">PhpWiki</a> config file.</i></p>
<div class="plugin tightenable" id="CreateTocPlugin3"><div class="toc" id="toc"><script type="text/javascript">
<!--//
function toggletoc(a) {
  var toc=document.getElementById('toclist')
  //toctoggle=document.getElementById('toctoggle')
  var open='/phpwiki/themes/default/images/folderArrowOpen.png'
  var close='/phpwiki/themes/default/images/folderArrowClosed.png'
  if (toc.style.display=='none') {
    toc.style.display='block'
    a.title='Click to hide the TOC'
    a.src = open
  } else {
    toc.style.display='none';
    a.title='Click to display'
    a.src = close
  }
}
// --></script>
<h4>Table Of Contents <a name="TOC"></a><img id="toctoggle" class="wikiaction" title="Click to display to TOC" onClick="toggletoc(this)" height="15" width="15" border="0" src="/phpwiki/themes/default/images/folderArrowOpen.png" /></h4>
<ul id="toclist" class="toc" style="display:block;">
<li><a href="PhpWikiAdministration.html#Page_Explorer" class="named-wiki" title="PhpWikiAdministration">Page Explorer</a></li>
<li><a href="PhpWikiAdministration.html#User_Management" class="named-wiki" title="PhpWikiAdministration">User Management</a></li>
<li><a href="PhpWikiAdministration.html#Cleanup" class="named-wiki" title="PhpWikiAdministration">Cleanup</a></li>
<li><a href="PhpWikiAdministration.html#Making_Snapshots_or_Backups" class="named-wiki" title="PhpWikiAdministration">Making Snapshots or Backups</a></li>
<li>&nbsp;&nbsp;<a href="PhpWikiAdministration.html#ZIP_files_of_database" class="named-wiki" title="PhpWikiAdministration">ZIP files of database</a></li>
<li>&nbsp;&nbsp;<a href="PhpWikiAdministration.html#Dump_to_directory" class="named-wiki" title="PhpWikiAdministration">Dump to directory</a></li>
<li><a href="PhpWikiAdministration.html#Restoring" class="named-wiki" title="PhpWikiAdministration">Restoring</a></li>
<li>&nbsp;&nbsp;<a href="PhpWikiAdministration.html#Upload_File" class="named-wiki" title="PhpWikiAdministration">Upload File</a></li>
<li>&nbsp;&nbsp;<a href="PhpWikiAdministration.html#Load_File" class="named-wiki" title="PhpWikiAdministration">Load File</a></li>
<li>&nbsp;&nbsp;<a href="PhpWikiAdministration.html#Upgrade" class="named-wiki" title="PhpWikiAdministration">Upgrade</a></li>
<li><a href="PhpWikiAdministration.html#Format_of_the_files" class="named-wiki" title="PhpWikiAdministration">Format of the files</a></li>
<li>&nbsp;&nbsp;<a href="PhpWikiAdministration.html#Old_Formats" class="named-wiki" title="PhpWikiAdministration">Old Formats</a></li>
<li><a href="PhpWikiAdministration.html#Dump_pages_as_XHTML" class="named-wiki" title="PhpWikiAdministration">Dump pages as XHTML</a></li>
<li><a href="PhpWikiAdministration.html#Phpwiki_Internals" class="named-wiki" title="PhpWikiAdministration">Phpwiki Internals</a></li>
</ul>
</div>
</div>
<hr />
<h2><a href="PhpWikiAdministration.html#TOC" name="Page_Explorer">Page Explorer</a></h2>
<p class="tightenable">First select pages and then define the action:</p>
<div class="plugin tightenable" id="WikiAdminSelectPlugin2"><form action="WikiAdminSelect.html" method="get" class="wikiaction" accept-charset="iso-8859-1">
<div class="wikiaction"><input name="s" value="*" type="text" size="30" title="Allows selection of multiple pages which get passed to other WikiAdmin plugins." onmouseover="window.status=&quot;Allows selection of multiple pages which get passed to other WikiAdmin plugins.&quot;; return true;" onmouseout="window.status='';return true;" /><input type="submit" class="button" value="WikiAdminSelect" /></div>
</form>
</div>
<p class="tightenable">or call the available WikiAdmin actions directly:</p>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable"><th><a href="PhpWikiAdministration/Remove.html" class="wiki">/Remove</a></th>
<th><a href="PhpWikiAdministration/Rename.html" class="wiki">/Rename</a></th>
<th><a href="PhpWikiAdministration/Replace.html" class="wiki">/Replace</a></th>
<th><a href="PhpWikiAdministration/SetAcl.html" class="wiki">/SetAcl</a></th>
<th><a href="PhpWikiAdministration/Chmod.html" class="wiki">/Chmod</a></th>
<td><a href="PhpWikiAdministration/Chown.html" class="wiki">/Chown</a></td>
</tr>
</table>
<hr />
<h2><a href="PhpWikiAdministration.html#TOC" name="User_Management">User Management</a></h2>
<dl><dt class="tightenable">Reset a users password</dt>
<dd class="tightenable"><span class="plugin" id="PasswordResetPlugin2"><form action="PasswordReset.html" method="post" class="wikiaction" accept-charset="iso-8859-1">
<div class="wikiaction"><input name="user" value="" type="text" size="30" title="PasswordReset" onmouseover="window.status=&quot;PasswordReset&quot;; return true;" onmouseout="window.status='';return true;" /><input type="submit" class="button" value="PasswordReset" /></div>
</form>
</span></dd>
<dt class="tightenable">Email Verification</dt>
<dd class="tightenable"><p class="tightenable top">This is currently non-strict, leaving some possible holes in not being able to
connect to certain mail hosts, which can be overridden below. See <a href="http://phpwiki.sourceforge.net/phpwiki/EmailVerification" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />PhpWiki:</span><span class="wikipage">EmailVerification</span></a></p>
<p class="tightenable">This button will show a list of all users with registered emails and buttons to set the
verification status manually.</p>
<div class="plugin tightenable bottom" id="WikiAdminUtilsPlugin2"><div class="disabled-plugin"><div class="title">Plugin WikiAdminUtils disabled. (action != 'browse')</div>
<pre>&lt;?plugin WikiAdminUtils
         action=email-verification
         label=&quot;Email Verification&quot;
 ?&gt;</pre>
</div>
</div>
</dd>
<dt class="tightenable">Access Restrictions (disabled)</dt>
<dd class="tightenable"><p class="tightenable top">To prevent from robots eating all possible ressources in a short time, blocking from certain IPs
or not-well-behaving user agents can be defined below. See <a href="http://phpwiki.sourceforge.net/phpwiki/HowToBlockRobots" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />PhpWiki:</span><span class="wikipage">HowToBlockRobots</span></a> and
<a href="http://www.usemod.com/cgi-bin/mb.pl?SurgeProtector" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />MeatBall:</span><span class="wikipage">SurgeProtector</span></a>. <i>Note: Not yet enabled.</i></p>
<div class="plugin tightenable bottom" id="WikiAdminUtilsPlugin3"><div class="disabled-plugin"><div class="title">Plugin WikiAdminUtils disabled. (action != 'browse')</div>
<pre>&lt;?plugin WikiAdminUtils
         action=access-restrictions
         label=&quot;Access Restrictions&quot;
 ?&gt;</pre>
</div>
</div>
</dd>
</dl>
<hr />
<h2><a href="PhpWikiAdministration.html#TOC" name="Cleanup">Cleanup</a></h2>
<p class="tightenable">A Wiki <a href="SandBox.html" class="wiki">SandBox</a> is very easy to clean. Here you can restore it to
pristine condition by loading the default from pgsrc.</p>
<blockquote class="tightenable"><p class="tightenable top bottom"><a href="PhpWikiAdministration.html?action=loadfile&amp;source=pgsrc%2FSandBox" class="wikiadmin">Rake the SandBox</a>.</p>
</blockquote>
<hr />
<h2><a href="PhpWikiAdministration.html#TOC" name="Making_Snapshots_or_Backups">Making Snapshots or Backups</a></h2>
<h3><a href="PhpWikiAdministration.html#TOC" name="ZIP_files_of_database">ZIP files of database</a></h3>
<p class="tightenable">These links lead to zip files, generated on the fly, which contain all
the pages in your Wiki. The zip file will be downloaded to your local
computer.</p>
<blockquote class="tightenable"><p class="tightenable top">This <b><a href="PhpWikiAdministration.html?action=zip" class="wikiadmin">ZIP Snapshot</a></b> contains only the
latest versions of each page, while this <b><a href="PhpWikiAdministration.html?action=zip&amp;include=all" class="wikiadmin">ZIP Dump</a></b> contains all archived versions.</p>
<p class="tightenable bottom">(If the <a href="PhpWiki.html" class="wiki">PhpWiki</a> is configured to allow it, anyone can download a zip
file.)</p>
</blockquote>
<p class="tightenable">If your php has <i>zlib</i> support, the files in the archive will be
compressed, otherwise they will just be stored.</p>
<h3><a href="PhpWikiAdministration.html#TOC" name="Dump_to_directory">Dump to directory</a></h3>
<p class="tightenable">Here you can dump pages of your Wiki into a directory of your choice.</p>
<blockquote class="tightenable"><span class="plugin" id="WikiFormPlugin2"><form action="PhpWikiAdministration.html?action=dumphtml" method="post" class="wikiadmin" accept-charset="iso-8859-1">
<input type="hidden" name="action" value="dumpserial" /><input type="hidden" name="pagename" value="PhpWikiAdministration" /><span class="wikiadmin"><input type="text" value="/tmp/wikidump" size="50" name="directory" title="Dump Pages" onmouseover="window.status=&quot;Dump Pages&quot;; return true;" onmouseout="window.status='';return true;" /><input type="submit" value="Dump Pages" class="wikiadmin" /></span></form>
</span></blockquote>
<p class="tightenable">The most recent version of each page will written out to the
directory, one page per file. Your server must have write permissions
to the directory!</p>
<hr />
<h2><a href="PhpWikiAdministration.html#TOC" name="Restoring">Restoring</a></h2>
<p class="tightenable">If you have dumped a set of pages from <a href="PhpWiki.html" class="wiki">PhpWiki</a>, you can reload them
here. Note that pages in your database will be overwritten; thus, if
you dumped your <a href="HomePage.html" class="wiki">HomePage</a> when you load it from this form it will
overwrite the one in your database now. If you want to be selective
just delete the pages from the directory (or zip file) which you don't
want to load.</p>
<h3><a href="PhpWikiAdministration.html#TOC" name="Upload_File">Upload File</a></h3>
<p class="tightenable">Here you can upload ZIP archives, or individual files from your
(client) machine.</p>
<blockquote class="tightenable"><span class="plugin" id="WikiFormPlugin3"><form action="PhpWikiAdministration.html?action=dumphtml" method="post" class="wikiadmin" accept-charset="iso-8859-1" enctype="multipart/form-data">
<input type="hidden" name="action" value="upload" /><input type="hidden" name="pagename" value="PhpWikiAdministration" /><input name="MAX_FILE_SIZE" value="16777216" type="hidden" /><span><input type="file" size="50" name="file" title="Upload" onmouseover="window.status=&quot;Upload&quot;; return true;" onmouseout="window.status='';return true;" /><input type="submit" value="Upload" /></span></form>
</span></blockquote>
<h3><a href="PhpWikiAdministration.html#TOC" name="Load_File">Load File</a></h3>
<p class="tightenable">Here you can load ZIP archives, individual files or entire
directories. The file or directory must be local to the http
server. You can also use this form to load from an http: or ftp: URL.</p>
<blockquote class="tightenable"><span class="plugin" id="WikiFormPlugin4"><form action="PhpWikiAdministration.html?action=dumphtml" method="post" class="wikiadmin" accept-charset="iso-8859-1">
<input type="hidden" name="action" value="loadfile" /><input type="hidden" name="pagename" value="PhpWikiAdministration" /><span><input type="text" value="/tmp/wikidump" size="50" name="source" title="Load File" onmouseover="window.status=&quot;Load File&quot;; return true;" onmouseout="window.status='';return true;" /><input type="submit" value="Load File" /></span></form>
</span><span class="plugin" id="WikiFormPlugin5"><form action="PhpWikiAdministration.html?action=dumphtml" method="post" class="wikiadmin" accept-charset="iso-8859-1">
<input type="hidden" name="action" value="loadfile" /><input type="hidden" name="pagename" value="PhpWikiAdministration" /><span><input type="text" value="/tmp/wikidump" size="50" name="source" title="Load &amp; Overwrite" onmouseover="window.status=&quot;Load &amp; Overwrite&quot;; return true;" onmouseout="window.status='';return true;" /><input type="submit" value="Load &amp; Overwrite" /></span></form>
</span></blockquote>
<h3><a href="PhpWikiAdministration.html#TOC" name="Upgrade">Upgrade</a></h3>
<p class="tightenable bottom">Do some verification checks and upgrade changes automatically, after having installed a
new phpwiki engine update:</p>
<ul><li class="tightenable top bottom">Upgrade new or changed page revisions from pgsrc,</li>
<li class="tightenable top">Upgrade the database schema (mysql <i>page.id auto_increment</i>, ADD <i>session.sess_ip</i>),</li>
</ul>
<dl><dd class="tightenable"><a href="HomePage.html?action=upgrade" class="wikiadmin">Upgrade</a></dd>
</dl>
<hr />
<h2><a href="PhpWikiAdministration.html#TOC" name="Format_of_the_files">Format of the files</a></h2>
<p class="tightenable">Currently the pages are stored, one per file, as MIME (<a href="http://www.faqs.org/rfcs/rfc2045.html" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />RFC:</span><span class="wikipage">2045</span></a>)
e-mail (<a href="http://www.faqs.org/rfcs/rfc822.html" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />RFC:</span><span class="wikipage">822</span></a>) messages. The content-type <i>application/x-phpwiki</i>
is used, and page meta-data is encoded in the content-type
parameters. (If the file contains several versions of a page, it will
have type <i>multipart/mixed</i>, and contain several sub-parts, each
with type <i>application/x-phpwiki</i>.)  The message body contains the
page text.</p>
<h3><a href="PhpWikiAdministration.html#TOC" name="Old_Formats">Old Formats</a></h3>
<ul><li class="tightenable"><p class="tightenable top">Serialized Files*</p>
<blockquote class="tightenable bottom"><p class="tightenable top bottom">The dump to directory command used to dump the pages as PHP
<i>serialized()</i> strings. For humans, this made the files very hard
to read, and nearly impossible to edit.</p>
</blockquote>
</li>
<li class="tightenable"><p class="tightenable top">Plain Files*</p>
<blockquote class="tightenable bottom"><p class="tightenable top bottom">Before that the page text was just dumped to a file--this means that
all page meta-data was lost. Note that when loading <i>plain files</i>,
the page name is deduced from the file name.</p>
</blockquote>
</li>
</ul>
<p class="tightenable">The upload and load functions will automatically recognize each of
these three types of files, and handle them accordingly.</p>
<hr />
<h2><a href="PhpWikiAdministration.html#TOC" name="Dump_pages_as_XHTML">Dump pages as XHTML</a></h2>
<blockquote class="tightenable"><span class="plugin" id="WikiFormPlugin6"><form action="PhpWikiAdministration.html?action=dumphtml" method="post" class="wikiadmin" accept-charset="iso-8859-1">
<input type="hidden" name="action" value="dumphtml" /><input type="hidden" name="pagename" value="PhpWikiAdministration" /><span class="wikiadmin"><input type="text" value="/tmp/wikidumphtml" size="50" name="directory" title="Dump Pages as XHTML" onmouseover="window.status=&quot;Dump Pages as XHTML&quot;; return true;" onmouseout="window.status='';return true;" /><input type="submit" value="Dump Pages as XHTML" class="wikiadmin" /></span></form>
</span></blockquote>
<p class="tightenable">This will generate a directory of static pages suitable for
distribution on disk where no web server is available. The various
links for page editing functions and navigation are removed from the
pages.</p>
<blockquote class="tightenable"><p class="tightenable top bottom">The XHTML file collection can also be downloaded as an
<b><a href="PhpWikiAdministration.html?action=ziphtml" class="wikiadmin">XHTML ZIP Snapshot</a></b>.</p>
</blockquote>
<hr />
<h2><a href="PhpWikiAdministration.html#TOC" name="Phpwiki_Internals">Phpwiki Internals</a></h2>
<p class="tightenable">These are here mostly for debugging purposes (at least, that is the
hope.)</p>
<p class="tightenable">In normal use, you should not need to use these, though, then again,
they should not really do any harm.</p>
<p class="tightenable">Purge Markup Cache:</p>
<p class="tightenable">(If your wiki is so configured,) the transformed (almost-HTML) content
of the most recent version of each page is cached. This speeds up page
rendering since parsing of the wiki-text takes a fair amount of juice.</p>
<blockquote class="tightenable"><p class="tightenable top">Hitting this button will delete all cached transformed
content. (Each pages content will be transformed and re-cached next
time someone views it.)</p>
<div class="plugin tightenable bottom" id="WikiAdminUtilsPlugin4"><div class="disabled-plugin"><div class="title">Plugin WikiAdminUtils disabled. (action != 'browse')</div>
<pre>&lt;?plugin WikiAdminUtils
         action=purge-cache
         label=&quot;Purge Markup Cache&quot;
 ?&gt;</pre>
</div>
</div>
</blockquote>
<p class="tightenable">Clean WikiDB of Illegal Filenames:</p>
<p class="tightenable">Page names beginning with the subpage-separator, usually a slash
(<tt>/</tt>), are not allowed. Sometimes though an errant plugin or something
might create one....</p>
<blockquote class="tightenable"><p class="tightenable top">This button will delete any pages with illegal page names, without possibility to restore.</p>
<div class="plugin tightenable bottom" id="WikiAdminUtilsPlugin5"><div class="disabled-plugin"><div class="title">Plugin WikiAdminUtils disabled. (action != 'browse')</div>
<pre>&lt;?plugin WikiAdminUtils
         action=purge-bad-pagenames
         label=&quot;Purge bad pagenames&quot;
 ?&gt;</pre>
</div>
</div>
</blockquote>
<dl><dt class="tightenable">Clean WikiDB of empty and unreferenced pages</dt>
<dd class="tightenable"><p class="tightenable top"><b>Warning!</b> This button will delete every empty and unreferenced page, without any possibility to restore them again.
This will disable the possibility to revert or get back any deleted page.</p>
<div class="plugin tightenable bottom" id="WikiAdminUtilsPlugin6"><div class="disabled-plugin"><div class="title">Plugin WikiAdminUtils disabled. (action != 'browse')</div>
<pre>&lt;?plugin WikiAdminUtils
         action=purge-empty-pages
         label=&quot;Purge all empty unreferenced pages&quot;
 ?&gt;</pre>
</div>
</div>
</dd>
<dt class="tightenable">Convert cached_html to new SQL column</dt>
<dd class="tightenable"><p class="tightenable top">This is only needed on SQL or ADODB if you didn't do action=upgrade, but created the
new page.cached_html field seperately, and now you want to move this data from
page.pagedata over to page.cached_html.</p>
<div class="plugin tightenable bottom" id="WikiAdminUtilsPlugin7"><div class="disabled-plugin"><div class="title">Plugin WikiAdminUtils disabled. (action != 'browse')</div>
<pre>&lt;?plugin WikiAdminUtils
         action=convert-cached-html
         label=&quot;Convert cached_html&quot;
 ?&gt;</pre>
</div>
</div>
</dd>
<dt class="tightenable">Check WikiDB</dt>
<dd class="tightenable"><p class="tightenable top">This button will check the Wiki page database for consistency. This can last several minutes.</p>
<div class="plugin tightenable bottom" id="WikiAdminUtilsPlugin8"><div class="disabled-plugin"><div class="title">Plugin WikiAdminUtils disabled. (action != 'browse')</div>
<pre>&lt;?plugin WikiAdminUtils
         action=db-check
         label=&quot;Check WikiDB&quot;
 ?&gt;</pre>
</div>
</div>
</dd>
<dt class="tightenable">Rebuild WikiDB</dt>
<dd class="tightenable"><p class="tightenable top">This will retransform all pages and rebuild the Wiki database on consistency errors or parser updates.
This can last several minutes, eat a lot of memory and possibly times out!!</p>
<div class="plugin tightenable bottom" id="WikiAdminUtilsPlugin9"><div class="disabled-plugin"><div class="title">Plugin WikiAdminUtils disabled. (action != 'browse')</div>
<pre>&lt;?plugin WikiAdminUtils
         action=db-rebuild
         label=&quot;Rebuild WikiDB&quot;
 ?&gt;</pre>
</div>
</div>
</dd>
</dl>
<hr />
<p class="tightenable top bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on August 14, 2007  7:11 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
