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" ... 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? ---- |
|
Posts: 32509
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.
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 ...
Posts: 32509
same host -> just move the gallery2 -> gallery directory. and read my instructions from my previous post.
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)
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!)
Posts: 32509
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.
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.
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
Posts: 43
also: http://netfactory.dk/2006/11/01/gallery2-moving-to-new-url
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.