Log inRegister
You are here: Boossy » WebSites » 1-07-BoossyFoswiki

Foswiki transfer van 123-webhost naar HostingSquad

IN SHORT

STAP 1: unpack, perl & config

  • Pak de wiki.tar.gz uit
  • Verwijder of hernoem /lib/LocalSite.cfg
  • Ga via browser naar /bin/view/Main/WebHome
    • installeer zo nodig de CRITICAL perl dependencies¹
  • Ga via browser naar /bin/view/System/PerlDependencyReport²
    • installeer zo nodig de CORE perl dependencies
  • Vervolledig de configuratie door naar /bin/configure te gaan
    • corrigeer waar nodig en sla op

RODE UITROEPTEKENS

  • Security and Authentication > Login
    Authenticated Scripts: + diffauth
  • Extensions > Extension operation and maintenance
    Enable or disable installed extensions: Uncheck AutoViewTemplatePlugin

GELE UITROEPTEKENS

  • General settings > File System Paths
    Safe PATH: check enable and fill in: /bin:/usr/bin
  • [Mail > Basic settings & Auto-configure
    • Webmaster Name: Stijn Bousard
      • Webmaster Email: ******@t*****t.be
      • click the autoconfigure button
  • Mail > Advanced settings

ADMIN

  • Registreer een gebruiker en voeg hem toe aan de AdminGroup:
    • /bin/view/Main/AdminGroup

IN DETAIL

LocalSite.cfg

If you don't delete the LocalSite.cfg from your old configuration, you will get all kinds of errors:
  • Software error: Attempt to reload Foswiki/I18N.pm aborted.
    Compilation failed in require at /.../.../domains/.../public_html/wiki/lib/Foswiki.pm line 2416.
    ...
  • Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
    Can't locate Localepath in @INC (@INC contains: path . path path path path path path path)

What is @INC?

@INC is a built-in array perl provides. It contains a series of directories, the "search path" for perl when trying to load a module.

You can check your current @INC paths by issuing the following command:
perl -e "print qq(@INC)"

¹CRITICAL perl dependencies

**** ERROR ****
 The following critical dependencies are missing from your installation:
 ... CGI: Can't locate CGI.pm in @INC 
 ... CGI::Session: Can't locate CGI/Session.pm in @INC 
 ... Crypt::PasswdMD5: Can't locate Crypt/PasswdMD5.pm in @INC 
 ... File::Copy::Recursive: Can't locate File/Copy/Recursive.pm in @INC
 ... JSON: Can't locate JSON.pm in @INC
 
 Please install these modules and then ensure all dependencies are installed by either:
 - viewing the System.PerlDependencyReport in your local Foswki, or
 - running the CLI shell script tools/dependencies from your server's command line.
 You can get a complete list of Perl module dependencies by viewing System.SystemRequirements
 on your local system or at http://foswiki.org/System/SystemRequirements.
 
 Foswiki will not operate correctly unless the required dependencies are installed.
 
 Your current library search path @INC contains:

 ...

 You can adjust the search path by editing bin/LocalLib.cfg 

Read here how to add the missing critical dependencies: FwInstallationExplio
  • /domains/boossy.be/public_html/wiki/lib/CPAN/lib/CGI.pm
  • /domains/boossy.be/public_html/wiki/lib/CPAN/lib/CGI/Session.pm
  • /domains/boossy.be/public_html/wiki/lib/CPAN/lib/Crypt/PasswdMD5.pm
  • /domains/boossy.be/public_html/wiki/lib/CPAN/lib/File/Copy/Recursive.pm
  • /domains/boossy.be/public_html/wiki/lib/CPAN/lib/JSON.pm

²PerlDependencyReport

When the critical dependencies are available, you normally are able to access the Foswiki site. Go to /bin/view/System/PerlDependencyReport and check what CORE perl dependencies are still missing.

You can still distinguish between "Required ..." and "Optional required ...". I focus on "Required" now, and later will solve the "Optional required ..." ones for those I need (sending mail, interface translation).

Also check the .../public_html/wiki/working/logs/error.log.

Possibly you'll see some issues here as well:

| 2019-05-11T08:54:22+02:00 error | Foswiki::Plugins::AutoViewTemplatePlugin could not be loaded. Errors were:
Can't locate Foswiki/Plugins/AutoViewTemplatePlugin.pm in @INC (@INC contains: .../domains/boossy.be/public_html/wiki/lib . /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .../domains/boossy.be/public_html/wiki/lib/CPAN/lib) at (eval 154) line 2.
 at (eval 154) line 2.
...
---- |
| 2019-05-11T08:54:22+02:00 warning | Foswiki::Plugins::AutoViewTemplatePlugin could not be loaded. Errors were:
Can't locate Foswiki/Plugins/AutoViewTemplatePlugin.pm in @INC (@INC contains: .../domains/boossy.be/public_html/wiki/lib . /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .../domains/boossy.be/public_html/wiki/lib/CPAN/lib) at (eval 154) line 2.
 at (eval 154) line 2.
...
---- |
| 2019-05-11T08:54:23+02:00 warning | Can't locate Locale/Maketext.pm in @INC (@INC contains: .../domains/boossy.be/public_html/wiki/lib . /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .../domains/boossy.be/public_html/wiki/lib/CPAN/lib) at .../domains/boossy.be/public_html/wiki/lib/Foswiki/Macros/MAKETEXT.pm line 7.
 at .../domains/boossy.be/public_html/wiki/lib/Foswiki/Macros/MAKETEXT.pm line 7.
...

FilterPlugin
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This page was cached on 20 Apr 2021 - 13:18.