Recent Changes - Search:

Site

Perl?

System?

Legacy Notes?

edit SideBar

Upgrading

< Upgrading | Initial Setup | Administration | Usage notes >

Contents(:toc:)


(:num:)

Initial steps

  • First download and untar the latest version :
    cd /srv/www
    wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz
    tar xzf pmwiki-latest.tgz
    rm pmwiki-latest.tgz
  • From now on we will use the following :
    export OLD=/srv/www/pmwiki-2.2.35
    export NEW=/srv/www/pmwiki-2.2.58
  • Configuration migration :
    rsync -a $OLD/local $NEW
    rsync -a $OLD/pub/css $NEW/pub
    cp -a $OLD/pub/favicon.ico $NEW/pub
  • Cookbook migration :
    rsync -a $OLD/cookbook $NEW
    rsync -a $OLD/pub/google-code-prettify $NEW/pub
    rsync -a $OLD/pub/syntaxlove $NEW/pub
    rsync -a $OLD/pub/edittoolbar $NEW/pub
  • Google analytics :
    cp -a $OLD/google*.html $NEW/
    cp -a $OLD/robots.txt $NEW/
  • skins :
    rsync -a $OLD/pub/skins/blog $NEW/pub/skins
    rsync -a $OLD/pub/skins/maguila $NEW/pub/skins

Migrating the wiki data

  • Pages : rsync -a $OLD/wiki.d $NEW
  • uploads : rsync -a $OLD/uploads $NEW
  • Fixing permissions :
    chown -R root:nginx $NEW
    chmod -R ug+rX $NEW
    chmod -R g-w,o-rwx $NEW
    chmod -R g+w $NEW/{uploads,wiki.d}

VirtualHost update

  • Just substitute the version numbers in the vhost file (/etc/nginx/vhost.d/wiki.inc)

Cleanup

  • Cleanup the older version of the wiki
  • Update the backup script /usr/local/sbin/run_backup.sh
  • Edit $NEW/pmwiki.php and change error reporting to error_reporting(E_ALL & ~E_DEPRECATED ^ E_NOTICE);

(:nonum:)

References

< Upgrading | Initial Setup | Administration | Usage notes >

Edit - History - Print - Recent Changes - Search
Page last modified on October 10, 2015, at 09:02 AM