Author Topic: Moving whole website including 4images gallery-need advice  (Read 9281 times)

0 Members and 1 Guest are viewing this topic.

Offline seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
Moving whole website including 4images gallery-need advice
« on: October 17, 2002, 12:02:36 AM »
I'm hoping for some words of wisdom here...

I have decided to change hosts (since the one I currently have is always having downtime) and I am faced with moving the entire website with over 700 photos in the database.

I need to know what you would recommend before I do this.

I want to move it hopefully without losing any setup or photos.  I have extensively modified the look of my site's gallery with 4images and I'd have to have to start over.  Please advise! Thanks...

I also need to rename the database and change the password when I move it.  I can't for the life of me remember where to go do this...

Thank you in advance for any advice and or help.

Becky
webmaster@image-cafe.net


PS... please forgive me if this question has already been answered in language other than English.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Moving whole website including 4images gallery-need advice
« Reply #1 on: October 17, 2002, 12:05:46 AM »
Just copy all files (scripts and images) to your new host. Create a database dump (i recommend phpmyadmin) and import it to the new databse.

Change the database name, username and password in config.php.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
database dumP?
« Reply #2 on: October 17, 2002, 12:10:19 AM »
Jan,

Thanks for the speedy answer.  

About creating the database dump. Would that be the same as a database backup from within the 4images admin panel or not?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Yes
« Reply #3 on: October 17, 2002, 01:31:04 AM »
Yep.  It's the same thing.  phpMyAdmin would be useful if you happen to also be using any other databases which don't hold 4images tables.  You should be safe, in moving 4images db info, by just selecting all the tables in the database backup under the Admin Control Panel.  You can also use it to restore your backup after you've installed 4images on your new host.

Offline seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
:)
« Reply #4 on: October 17, 2002, 01:57:14 AM »
Thank you Chris and Jan for the speedy answers. I'll be trying to move this site and database tomorrow so you may see me back here then with some emergency questions! However I'd love to log back in and say it went off without a hitch! That would be super! FINGERS CROSSED EVERYONE!

Becky

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
One word of caution
« Reply #5 on: October 17, 2002, 02:41:57 AM »
Remember, my suggestion is to do a fresh install of 4images on your new host and then restore your database.

Offline seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
Failing horribly I guess
« Reply #6 on: October 18, 2002, 03:35:40 PM »
Chris / Jan... what do you think.

I have gone to the new site, performed the install and it's told me it was successful.  But when I try to access the admin/index.php page it takes me to the install.php page (which is no longer there because I deleted it as I was supposed to after install.)  

WHAT AM I DOING WRONG?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
Another question
« Reply #8 on: October 18, 2002, 07:16:42 PM »
Okay, I've done everything you've said and now I get a message that says:

Warning: Failed opening './../includes/db_localhost.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/image/www/icgallery/global.php on line 119

Fatal error: Cannot instantiate non-existent class: db in /home/image/www/icgallery/global.php on line 120


I"m wondering. My host says I have to use $db_servertype = "localhost"; in my setup instead of the mysql there.  Is that going to work? Is that the problem?  It's looking for a db_localhost.php file and there is no such file...  

Here's what I have in the config file:

$db_servertype = "localhost";
$db_host = "image-cafe.therapids.net";
$db_name = "xxxxx";
$db_user = "xxxxx";
$db_password = "xxxx";

$table_prefix = "ic_";

define('4IMAGES_ACTIVE', 1);;


(I've replace the name/usr/password with xx's so not to list them publically here.)

I'm about at my wits end with this. I've tried everything I can think of.

So Chris & Jan, what do you think?

Thank you SO MUCH in advance for any and all help!  I'd really like to get this set up this weekend but it's looking gloomy so far.

Becky

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Moving whole website including 4images gallery-need advice
« Reply #9 on: October 18, 2002, 07:27:05 PM »
No, use "mysql" for $db_servertype.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline seastorm42

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://www.seastorm42.com/photography
Thank you
« Reply #10 on: October 19, 2002, 03:17:37 AM »
Well I'm finally making progress... I've got a new install working at the new site and attempting now to import the last backup from the old database.

Slow, but getting there....