RestorePmWiki

Summary: Restore or move a PmWiki installation from an archive
Version:
Prerequisites:
Status:
Maintainer:
Categories: Administration

Question answered by this recipe

How do I restore or move a PmWiki installation from an archive?

Answer

You can copy a complete file tree from an archive to build a new installation. Some complementary operations are required :

  • First check that your FTP client allow you to see dot prefixed files .files
  • Remove the .flock file in /wiki.d directory, which may lock file access
  • Remove the .lastmod file in /wiki.d directory, which may prevent page updating when cache is activated
  • Remove the .mailposts file in /wiki.d directory, which may prevent mailposts to work
  • If your archive was on a Windows system, access rights are lost, and for the /files directory and all existing subdirectories, the access rights should be set to 777 (a copy from Windows may set them to 755, depending your FTP client), if not set at 777 you will not be able to upload files.
  • Same for /wiki.d directory, if not accessible, you may not save pages...

If this is a new installation on another server, add :

  • Made the same adaptations in local/config.php as for a new installation (absolute URL and file path if needed, etc.)
  • The password crypt functions may varies from one server to another, so you may be obliged to recrypt your passwords in all your configuration files.
  • $EnablePathInfo = 1; may not work on your new server, so set it to 0 first
  • Have a look on your .htaccess files, they might need local adaptation

Discussion

See also

Contributors