{"id":14,"date":"2006-05-19T10:16:48","date_gmt":"2006-05-19T09:16:48","guid":{"rendered":"http:\/\/stuphi.co.uk\/wordpress\/?p=14"},"modified":"2006-07-20T12:35:27","modified_gmt":"2006-07-20T11:35:27","slug":"multisite-gallery","status":"publish","type":"post","link":"https:\/\/stuphi.co.uk\/wordpress\/?p=14","title":{"rendered":"Multisite Gallery"},"content":{"rendered":"<p>I had installed <a href=\"http:\/\/gallery.menalto.com\/\">Gallery v2<\/a> on my <a href=\"http:\/\/www.debian.org\">Debian<\/a> testing server. It works very well. Now I had a problem where I wanted to have some images available publicly, while the majority I wanted to keep for viewing on my internal network only. I know that Gallery has permissions, but I decided that a multisite install would do what I wanted.<\/p>\n<p>I started with Gallery installed from the default Debian testing package. This is a standard single instance installation. On the Gallery website there is some <a href=\"http:\/\/codex.gallery2.org\/index.php\/Gallery2:Multisite\">information<\/a> on setting up a multisite installation. The main thing to remember is to make sure that the database and directories for the new instance are created beforehand. Then it is a simple matter of selecting the <em>multisite<\/em> option during the install. The install is initiated by going to<\/p>\n<pre>http:\/\/sitename\/gallery2\/install<\/pre>\n<p>The only additional thing I had to do was make a copy of the Apache config file for gallery in<\/p>\n<pre>\/etc\/apache2\/conf.d<\/pre>\n<p>I then repeated the operation to make a private gallery.<\/p>\n<p>Once the private gallery was completed, I needed to move the contents of the original gallery yo it. This section was missing from the gallery documentation mentioned above, so I had to wing it on my own. Using <a href=\"http:\/\/www.phpmyadmin.net\/home_page\/index.php\">phpmyadmin<\/a> I created a backup of the original gallery database. Then I imported that into the new private gallery database. All the actual albums are then copied from the file system to the new albums location. I would not try this if there were any pictures already in the destination gallery.<\/p>\n<p>I now have two picture galleries that are totally independent, and I can easily secure one from being publicly viewable. If you want to test that claim then the public gallery is <a href=\"https:\/\/www.stuphi.co.uk\/g2public\">here<\/a> and the private one is <a href=\"https:\/\/www.stuphi.co.uk\/g2private\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had installed Gallery v2 on my Debian testing server. It works very well. Now I had a problem where I wanted to have some images available publicly, while the majority I wanted to keep for viewing on my internal &hellip; <a href=\"https:\/\/stuphi.co.uk\/wordpress\/?p=14\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/14"}],"collection":[{"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14"}],"version-history":[{"count":0,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stuphi.co.uk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}