Upgrade Foswiki from 1.1.7 to 1.1.8

Upgrade reason

To successfully keep free software secure, we need to upgrade to new version, especially when a release fix a Critical Security Vulnerability in Locale:Maketext, see http://foswiki.org/Support/SecurityAlert-CVE-2013-1666 for more informations.

This upgrade add a dependency I cannot reach in this hosting space : Foswiki now need at least CPAN:version 0.77. My hosting provider only has version 0.72, so we need to updgrade this before.

How to know the CPAN::version's version

First, go to the /bin/configure script and to the Web server environment page :

web server environment tab

Look at the Perl modules category :

perl modules category

At the bottom of the module list, you can see the version item :

CPAN::version's version

Upgrade CPAN:version

If you need to upgrade it but you don't have root access, here is a hack to install a new version only used by Foswiki :

tar -xvf version-0.9902.tar.gz
cd version-0.9902/
  • Create Makefile for perl only and call make
perl Makefile.PL --perl_only
  • Copy new files to your LIB directory.

The LIB directory is the lib/ directory in your foswiki root, do not copy to Foswiki/lib/CPAN/lib, it doesn't work. To be sure, open the bin/configure in your browser, go in the Web server environment page and search for the @INC library path : this is the first listed directory.

  • Go back to configure to check for the CPAN:version's version, this should be 0.9902.

Upgrading Foswiki

Install the upgrade patch

Go and download the upgrade package : http://sourceforge.net/projects/foswiki/files/foswiki/1.1.8/Foswiki-upgrade-1.1.8.tgz

Verify you're not running perl 5.16.x, if you are running it, please see http://foswiki.org/Tasks/Item12413 for a patch.

Put the upgrade patch in the Foswiki root directory and issue the following command :

tar --strip-components=1 -xvzpf Foswiki-upgrade-1.1.8.tgz=

Fix configure script warnings and refresh cache

Go to your bin/configure script and fix for files/directories permissions, I personnaly had to :
chmod 0775 -R pub/
chmod 0775 -R data/
chmod 0775 -R working/

To refresh the foswiki cache, I open the homepage with the ?refresh=all URL parameter.


You can see foswiki version in System. Now it should be 1.1.8. All is working just fine out of the box so I don't have to write a troubleshooting section.

Now you should test your installation : search for a string, test sending a mail through the configure script.

-- RainbruUser - 12 Mar 2013
Topic attachments
I Attachment Action Size Date Who Comment
foswiki_configure_perlmodules.pngpng foswiki_configure_perlmodules.png manage 14.4 K 11 Mar 2013 - 19:11 RainbruUser Foswiki configure script perl modules category
foswiki_configure_version.pngpng foswiki_configure_version.png manage 6.4 K 11 Mar 2013 - 19:12 RainbruUser Foswiki configure script CPAN::version's installed version
foswiki_configure_webserverenvtab.pngpng foswiki_configure_webserverenvtab.png manage 18.4 K 11 Mar 2013 - 19:08 RainbruUser Foswiki configure script web server environment tab
Topic revision: r4 - 06 Feb 2014, RainbruUser


HotScripts.comGet RainbruRPG at SourceForge.net. Fast, secure and Free Open Source software downloadsThis site is powered by Foswiki
Active Search Results
Viesearch - Life powered search
Copyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Here are my personnal Google+ profile and the related Google+ page.
Ideas, requests, problems regarding RainbruRPG? Send feedback