Change gallery2 directory after installation
gcu
Joined: 2004-06-13
Posts: 14 |
![]() |
I've installed gallery 2 on my website in a directory "gallery2" ... 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? ---- |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
if you have your g2data directory within the gallery2 directory, then you have to change the appropriate setting in config.php. |
|
gcu
Joined: 2004-06-13
Posts: 14 |
![]() |
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 |
![]() |
same host -> just move the gallery2 -> gallery directory. and read my instructions from my previous post. |
|
RwD
![]()
Joined: 2005-01-09
Posts: 383 |
![]() |
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 |
![]() |
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 |
![]() |
reinstalling = ? what steps did you take? what did you move, delete (g2data, db), install, overwrite? |
|
gcu
Joined: 2004-06-13
Posts: 14 |
![]() |
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. 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 |
![]() |
rileycentral
Joined: 2010-02-13
Posts: 2 |
![]() |
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. |
|