Existing Gallery installation integrated into New GeekLog

TeleRiddler
TeleRiddler's picture

Joined: 2004-05-23
Posts: 1
Posted: Sat, 2005-01-29 19:39

OK,

I searched high and low on the forums and google and came up dry. So I am going to state what I did and pose some questions for others who are more well versed at the workings of Gallery and GeekLog in tandem.

Original Configuration:

Gallery 1.4.4-pl4
Location: /var/www/html/gallery
Public Webserver location: /var/www/html/
Albums location: /var/www/html/albums

GeekLog:
Private location: /opt/geeklog
Public location: /var/www/html/geeklog

Goal: Integrate existing Gallery install and permissions into GeekLog but still be able to access gallery outside of GeekLog (AKA, without wrappers).

Step 1: I first setup a simple link in GeekLog to point to my already running Gallery installation. This worked but displayed the Gallery site in full and did not embed it.

Step 2: Run the configs
a) First I ran the Gallery setup again and enabled the GeekLog feature and enter my path to geeklog, the public one from above.

b) after saviing the config. I loaded gallery and it gave me a blank white page. Then loaded it from the link in GeekLog I setup and the same result.

Step 3: After doing a lot of searching I went to the IRC channel where Ectropian helped me try a bunch of things.
a) I moved the existing gallery directory into my geeklog directory, to this I had to do it in the following order.
i) Edit my httpd.conf file and change my Gallery path from /var/www/html/gallery to /var/www/html/geeklog/gallery
ii) Then I ran the config wizard in gallery from its existing directory before I moved it. http://www.yoursite.com/gallery/setup
iii) I updated the paths and URLS to reflect the move:
/var/www/html/gallery changed to /var/www/html/geeklog/gallery
http://www.yoursite.com/gallery changed to http://www.yoursite.com/geeklog/gallery
iv) Then I selected "GeekLog" and gave the path /var/www/html/geeklog for the Embedded section of the Gallery config wizard.
v) I saved the config file at the end of the wizard.
vi) I then moved gallery directory to /var/www/html/geeklog/gallery
vii) I restarted the webserver
viii) I accessed the page again from GeekLog link and direct access
Result: only displayed a white blank page
iix) I chmod'd the gallery directory to 755 using chmod -R 755 /var/www/html/geeklog/gallery
ix) Still did not work
b) After checking on serveral mundane details I decided to go for a fresh install since my albums directory was already separate

Step 3) Fresh install
i) I downloaded Gallery 1.4.4-pl5 and extracted it to /var/www/html/geeklog/gallery, removing the other directory first of course
ii) I then ran went to http://www.yoursite.com/geeklog/gallery/setup
iii) setup Gallery with alll the new paths for gallery to be in the geeklog directory
iv) I then setup the "Embedded Section" of Gallery for "GeekLog" and path /var/www/html/geeklog
v) Remember my httpd.conf code is still set to gallery directory of /var/www/html/geeklog/gallery
vi) I finished the setup and saved the config,
vii) I ran the secure.sh script
viii) I went to the location http://www.yoursite.com/geeklog/gallery
iix) IT WORKED!!!!!!!!!!

So here are my questions

1) How are permissions handled when Gallery is embedded and will I still have the same control/functionality from an admin point of view as I did when gallery was standalone?

PS. I know that when I login to GeekLog as admin and got to the gallery link that I see all the advanced options but a few are missing.

2) I can only show gallery inside GeekLog now and I did like it as a standalone site for some applications Can I run gallery in GeekLog and Standalone at the same time?
- Proposition: Install Gallery at webroot and in Geeklog using the same external albums directory.
- Concerns: Would this cause permissions errors if gallery was run from 2 different points to the same albums directory?
-Proposition 2: used gallery embedded but use same pics on a mirror and rysnc the 2 ablums directories to keep them up to date

Those were my questions. Hopefully someone can provide me with insight.

Sincerely,

TeleRiddler