I think migration to a new server can be quite a bit simpler. Here are the
notes I made in November 2021 on migration from Gallery2 on one server to
Gallery3 on another.
Good luck!
Harold
Thanks for keeping Gallery 3 alive! I have been using Gallery 2 for a LONG
time. As I move to a more current server (running AlmaLinux), I find that
it would be very difficult to move Gallery 2 over. So, time for Gallery3.
The Gallery3 installation is MUCH simpler than I remember for Gallery2.
It's really nice! I did run a multisite version of Gallery2, but
individual copies of Gallery3 are fine.
At first, I tried using ssfs to reach the gallery2 installation on the old
server for import to Gallery3 on the new server. But, Gallery3 could not
find the Gallery2 installation through sshfs. So, I did a Gallery3
installation on the old server and imported there.
On the old server, I was running CentOs 6.1 with PHP 5.3.3. Installing
Gallery3 on it, I found that I had to modify
/modules/gallery/config/session.php . The error is Parse error: syntax
error, unexpected '[' in ... gallery3/modules/gallery/config/session.php
on line 71
I changed the end of session.php to the following:
/** * Session server parameter, used by Redis driver. */
// $config['server'] = [
// 'host' => 'redis',
// 'port' => 6379,
// 'persistent' => false,
// ];
$config['server']['host'] = 'redis';
$config['server']['port'] = 6379;
$config['server']['persistent'] = false;
I did not have to make this change on the AlmaLinux system I am migrating
to. The server migration instructions at
http://codex.galleryproject.org/Gallery3:User_guide:Gallery3:Installing_and_upgrading.html#Moving_your_installation_to_a_different_server
are GREAT!
I think there is a typo in step 2 of copying over the database to the new
server. It currently says: scp gallery.sql user...@new.server.here.com:~/
I believe it should be: scp gallery3.sql user...@new.server.here.com:~/
since that's what we named the file in the previous step.
On the new server with Gallery3, I get this message on Edit Permissions:
Oh no! Your server needs a configuration change in order for you to hide
photos! Ask your server administrator to enable mod_rewrite and set
AllowOverride FileInfo Options to fix this.
I've seen comments that this should be in .htaccess or perhaps in the
httpd config. Are further details available? For example, can someone
supply specific text to add to gallery3/.htaccess ?
THANKS!
Harold
Regarding the Oh no! error message, this occurs if there are albums that
are restricted to certain users. Here are notes on the fix:
THANKS! That fixed it. I added the following to the section of vhosts.conf
for the host.
<Directory /home/kcpr/public_html/gallery3/>
AllowOverride FileInfo Options
</Directory>