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:
/upload (this is a symlink 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):
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.
The internet has arrived. I’ve been haggling for two months to get connected, but at last (and two days before scheduled) I’m actually at home and online and not going over my mobile data limit. Even better, I’m getting 6.2 Mb/s. (Which is good, for Fremantle.)
I shall now resume my various web-scraping and archiving activities…. :-)
Trello can be quite a useful task-tracker, but it’s got the usual pitfall of being a cloud service that might change at any time and become unusable (expensive or stupid or whatever).
Luckily, it’s a simple matter to set up a daily cronjob to run Matthieu Aubry’s trello-backup script. It produces a single JSON file for each board.
Now, restoring from that file might be a different matter…
When the sun gets over the yardarm here (when it’s about level with the top of the Port Authority building), it gets into my eyes and I have to close the blind. So, does that mean it’s beer o’clock? Probably not, but it must surely be time to skive off on some nice code that makes sense and feels calmer and more testable? I reckon so.
I can’t believe I’m going to miss this by two days! I’m going to be in San Francisco for the first time since 1997 for the week before. What are the odds.
“For 20 years, the Internet Archive has been capturing the Web– that amazing universe of images, audio, text and software that forms our shared digital culture. Now it’s time to celebrate and we’re throwing a party! Please join us for our 20th Anniversary celebration on Wednesday, October 26th, 2016, from 5-9:30 pm.”
So I’ve started a new job: I’m now working for the Wikimedia Foundation in the Community Tech team. It’s really quite amazing, actually: I go to “work” and do things that I really quite like doing and would be attempting to find time to do anyway if I were employed elsewhere. Not that I’m really into the swing of things yet—only two weeks in—but so far it’s pretty great.
I’m really excited about being part of an organisation that actually means something.
Imagine a world in which every single human being can freely share in the sum of all knowledge. That’s our commitment.
It’s a bit cheesy to quote that I know, but still: how nice it is to think that there’s something higher up the orgchart than an ever-increasing concentration of money.
This place is playing a Kinks LP, on a turntable wedged between the toasted sandwitch maker and a number of saging shelves full of records. I’m now happy.
The coffee is lovely also.
Nearly time to leave Puerto Pollensa, heading to Palma (via Lluc). Heading into the grey day, that is. So much sun and warmth the last few days, and now it’s looking to be a bit drizzly. Actually, I’m quite happy; it’s much nicer walking in this sort of weather.
[osm_map_v3 map_center=”39.899,3.065″ zoom=”12″ width=”100%” height=”300″ ]