How to fix Dreamhost default G2 install of ./gallery/

padeen

Joined: 2007-12-28
Posts: 2
Posted: Sat, 2007-12-29 00:45

I used Dreamhost's one-click install of Gallery2 and it is up and running properly. I'm happy with it. It automatically has installed to host/gallery/.

I have installed Drupal and really like it, better than Joomla for my needs. I find Joomla too confusing on how to manage it and add content to a new site (and I admin webservers myself!), either I'm missing a basic point in the docs or the newbies are better than me.

So, I would like to continue with Drupal, but would prefer not to change my /gallery/ install that Dreamhost defaults to. I can either go through G2 and change everything to a /gallery2/ , or I can grep through all the Drupal code and change any reference to '/gallery2/' to '/'gallery/' and also rename the gallery.php module to something else. Grepping is pretty straightforward as long as the database doesn't also contain hard-coded references to '/gallery2/'. To fix that, I'd need to write some SQL to update the tables from /gallery2/ to /gallery/, etc, and it's now getting pretty complicated.

What's the best/easiest way to proceed?

In my opinion, as programmers we all know hard-coded references aren't the best, and that includes hard-coded references to prohibited locations. Is there any plans for Drupal integration to remove this requirement and make it a configurable option? Isn't it as simple as renaming gallery.php and changing any call functions during the install?

 
padeen

Joined: 2007-12-28
Posts: 2
Posted: Sat, 2007-12-29 09:09

Never mind. Search the Gallery docs for 'backup' and there is a section on how to copy a gallery instal to a different directory. It's very easy.