Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Migrating from Gallery and vice versa

Olivier Paroz edited this page Dec 6, 2015 · 2 revisions

Web server

If you're migrating from one Gallery/Pictures app to another, your shared links will stop working, unless you tell your web server where to redirect the user.

Apache

Add one of the following rules to the .htaccess file located in your ownCloud web root. Kudos to Éric Seigne.

From Pictures to Gallery+

For ownCloud 6-8.1

RewriteRule ^index.php/apps/gallery/public/(.*) https://YOURDOMAIN/index.php/apps/galleryplus/s/$1

From Gallery to Gallery+

For owncloud 8.2+

RewriteRule ^index.php/apps/gallery/s/(.*) https://YOURDOMAIN/index.php/apps/galleryplus/s/$1

From Gallery+ to Gallery

For owncloud 8.2+

RewriteRule ^index.php/apps/galleryplus/s/(.*) https://YOURDOMAIN/index.php/apps/gallery/s/$1

Nginx

Contribution welcome

Database

In case you've deleted the original Gallery app without disabling it, you can run a command from the cli to fix the problem.

sqlite

# sqlite3 /var/www/html/owncloud/data/owncloud.db

sqlite> UPDATE oc_appconfig SET configvalue = 'no' WHERE appid = 'gallery' and configkey = 'enabled';

mysql

UPDATE oc_appconfig SET configvalue = 'no' WHERE appid = 'gallery' and configkey = 'enabled';