coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: JumpNetwork on August 19, 2007, 02:58:52 PM

Title: Moved Gallery to New Server - Help - Changing localhost to an IP
Post by: JumpNetwork on August 19, 2007, 02:58:52 PM
Hello,

I have just changed Web Hosts, and the new server does not use localhost to access the database server.  The Database is held on another server to the web pages.

I have the local IP for the Database, but need to know how to change Coppermine Gallery to use this.

I am using 1.4.12 too.

Thanks in advance.
Title: Re: Moved Gallery to New Server - Help - Changing localhost to an IP
Post by: Sami on August 19, 2007, 03:04:20 PM
{gallery-root}/include/config.inc.php


$CONFIG['dbserver'] =                         'XXX.XXX.XXX.XXX';        // Your database server
Title: Re: Moved Gallery to New Server - Help - Changing localhost to an IP
Post by: JumpNetwork on August 25, 2007, 11:48:14 AM
How would we change what domain the Gallery is on?

I want to change it from the Global Domain over to my .au domain.
Title: Re: Moved Gallery to New Server - Help - Changing localhost to an IP
Post by: JumpNetwork on August 25, 2007, 11:52:34 AM
Also,

When I  type in the full url of

www.jn1.com.au/gallery1/index.php i get the following error

Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'becs1_copp1'@'r11p.nswebhost.com' (using password: YES)
Title: Re: Moved Gallery to New Server - Help - Changing localhost to an IP
Post by: JumpNetwork on August 25, 2007, 11:55:39 AM
Sorry, I tried to edit my post above, but you can't edit them.

I should have stated what the address are;

www.jn1.com.au/gallery1

When you go there it directs you to the Domain where the Gallery is actually installed on which is  www.becscrafts.com.au/gallery1

At this site (which is on a different server) it works.  But I am changing Servers to a different host.  This host is the one that has the Database stored on a different server, so I am using the domain of jn1.com.au as a parked domain for testing purposes.

So, that is why you have to go to jn1.com.au/gallery1/index.php

Thanks for your help

Chris.
Title: Re: Moved Gallery to New Server - Help - Changing localhost to an IP
Post by: Joachim Müller on August 25, 2007, 01:58:12 PM
There's no point in posting your URL. We can not tell you what the mysql data will look like. There is no naming scheme based on the website URL. Ask your webhost for support.