There’s a new version of Piwigo out, and so I must upgrade. However, I’ve got things installed so that the web server doesn’t have write-access to the application files (as a security measure), and so I can’t use the built-in automatic upgrader.
I decided to switch to using Git to update the files, to make future upgrades much easier and without having to make anything writable by the server (even for some short amount of time).
First lock the site, via Tools > Maintenance -> Lock gallery, then get the new code:
$ git clone https://github.com/Piwigo/Piwigo.git photos.samwilson.id.au $ cd photos.samwilson.id.au $ git checkout 2.8.3
Copy the following files:
/galleries (these are symlinks on my system)
The following directories must be writable by the web server:
/upload/buffer; I was getting an “error during buffer directory creation” error).
Then browse to
/upgrade.php to run any required database changes.
I’ve installed these plugins using Git as well: Piwigo-BatchDownloader, Flickr2Piwigo, and piwigo-openstreetmap. The OSM plugin also requires
/osmmap.php to be created with the following (the plugin would have created it if it was allowed):
<?php define( 'PHPWG_ROOT_PATH', './' ); include_once( PHPWG_ROOT_PATH . 'plugins/piwigo-openstreetmap/osmmap.php' ); ?>
That’s about. Maybe these notes will help me remember next time.