Change gallery2 directory after installation

gcu

Joined: 2004-06-13
Posts: 14
Posted: Wed, 2005-04-06 08:11

I've installed gallery 2 on my website in a directory "gallery2" ...
I would like to rename this directory to "gallery".

Is this possible without reinstalling? I've manually renamed that directory, but then there are a lot of PHP errors when I go to www.domain.be/gallery...

Could someone help me?

----

Gallery URL (optional):
Gallery version: 0.9.0 0.9.0 Gallery 2 Core Module
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: linux
Web browser/version: FF 1.0.2
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-04-06 09:15

if you have your g2data directory within the gallery2 directory, then you have to change the appropriate setting in config.php.
if you have url_rewrite module installed. deactivate it before you move the folder, then activate it again.
else, you can just move the directory without problems.

 
gcu

Joined: 2004-06-13
Posts: 14
Posted: Wed, 2005-04-06 09:31

mm, someone deleted his post?

Anyway, I'm trying to install g2 in the "gallery" directory, and I'll "import" (somehow) that g2data in the new installation ...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-04-06 09:41

same host -> just move the gallery2 -> gallery directory. and read my instructions from my previous post.

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Wed, 2005-04-06 13:35

Yes, I deleted my post because valiants method was better. (I couldn't check my method so it was a bit too much)

 
gcu

Joined: 2004-06-13
Posts: 14
Posted: Wed, 2005-04-06 15:27

I reinstalled g2 in the gallery directory, but I have the same 'problem' on another domain ... I'll let you know if editing config.php works!

(and thanks for the replies, much appreciated!)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-04-06 15:43

reinstalling = ? what steps did you take? what did you move, delete (g2data, db), install, overwrite?
you only need to describe the steps if you have problems.

 
gcu

Joined: 2004-06-13
Posts: 14
Posted: Wed, 2005-04-06 16:03

Hehe, don't worry ...

On my first domain I had installed G1 in /gallery and G2 in /gallery2. I deleted G1 and renamed /gallery2 to /gallery, but that didn't work (lots of PHP error messages)

I took a backup of the G2/G2data/albums directory and placed it somewhere else.
Then I've uploaded G2 in /gallery, and reconfigured G2 from scratch, and it's working now, Just need to add the photos manually ...

But on my second domain I have the same initial situation (G1 in /gallery and G2 in /gallery2) So, I'll try the steps you gave to have the G2 in /gallery :)

 
bzsolt

Joined: 2007-04-01
Posts: 43
Posted: Sat, 2008-06-07 17:34
 
rileycentral

Joined: 2010-02-13
Posts: 2
Posted: Sat, 2010-02-13 20:10

These are great helps thanks. If I might sum up what I did: I was moving my gallery from the root folder where it was causing redirect problems to it's own directory twice removed from the root: /public_html/gallery/ >>> /public_html/new/gallery/

To migrate the old gallery to the new seamlessly I simply followed two steps:

1) Install new gallery in new directory with database info transferred from congig.php to the new config.php file

2) transfer contents of gallery/g2data/albums to new/gallery/g2data/albums folder NOTE: You only need to transfer that subfolder, nothing else. Unless you have addons of course.