[SOLVED] Galerry2 move to another server and now paths are different

DerrickG3

Joined: 2009-03-24
Posts: 33
Posted: Wed, 2011-07-27 19:48

I installed gallery2 on my new server but the path names dont reflect the actual website address.

it should be: vaul.schylling.com but now it comes up as http://elite825.inmotionhosting.com/~schyll5/vault/main.php?

How can I fix this? Do I have to reinstall it to make it work right?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-07-27 21:04

check all your settings in gallery2/config.php
You may also have to uninstall/re-install rewrite
FAQ: How can I move my Gallery installation from one server to another?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
DerrickG3

Joined: 2009-03-24
Posts: 33
Posted: Thu, 2011-07-28 13:11

What about using the base URL:
$gallery->setConfig('galleryBaseUrl', '');

/*
* This setting can be used to override Gallery's auto-detection of the domain-name,
* protocol (http/https), URL path, and of the file & query string.
* Most users can leave this empty. If the server is misconfigured or for very special
* setups, this setting can be quite handy.
* Examples (the positions of the slashes ('/') are important):
* override the path: $gallery->setConfig('baseUri', '/another/path/');
* override the host + path: $gallery->setConfig('baseUri', 'example.com/gallery2/');
* override the protocol + host + path + file:
* $gallery->setConfig('baseUri', 'https://example.com:8080/gallery2/index.php');
*/
$gallery->setConfig('baseUri', 'http://elite825.inmotionhosting.com/~schyll5/vault/main.php');
?>

Could I just change this line:$gallery->setConfig('baseUri', 'http://elite825.inmotionhosting.com/~schyll5/vault/main.php');

To: $gallery->setConfig('baseUri', 'http://vault.schylling.net/main.php');

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-07-28 13:17

yes, that is why I said

Quote:
check all your settings in gallery2/config.php

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
DerrickG3

Joined: 2009-03-24
Posts: 33
Posted: Thu, 2011-07-28 13:23

Ok, so if I make that change on the config php so that it looks just like this:

$gallery->setConfig('baseUri', 'http://vault.schylling.net/main.php');

Will there be any other changes I would have to make? I ask because I noticed that there was another line that has this:

$gallery->setConfig('data.gallery.base', '/home/schyll5/public_html/vault/g2data/');

I am assuming that this line wouldnt have to be changed?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-07-28 13:31

that line is the system path to your g2data storage directory.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
DerrickG3

Joined: 2009-03-24
Posts: 33
Posted: Thu, 2011-07-28 14:59

Thank you so much for your help!