thejungle Posted April 9, 2005 Posted April 9, 2005 Hi! I have changed hosting providers and need to change servers. I know the easiest would be a clean install and reinstall the backup database but I have about 40 addons on my store (and I can't remember them all!) How can I `move' my current install to the new server? Will this work: 1) Backup Database! 2) Download the complete /store/ directory 3) `Install' new version (clean) 4) Upload my /store/ directory (to overwrite the files) (in effect uploading all the changes the 40 addons have made!) 5) Restore the Database! Should this work? Ernie I'll test whatever first but I want to see if it should work as it'll take most of the day to do the above!
Guest Posted April 9, 2005 Posted April 9, 2005 Minor suggestion: Replace step 3 with "Create database and database user" and add step 6: update store/includes/configure.php and store/admin/includes/configure.php with the correct path data and database server / name / password data. Other than that, you're spot on. -jared
thejungle Posted April 9, 2005 Author Posted April 9, 2005 Minor suggestion: Replace step 3 with "Create database and database user" and add step 6: update store/includes/configure.php and store/admin/includes/configure.php with the correct path data and database server / name / password data. Other than that, you're spot on. -jared <{POST_SNAPBACK}> Thanks for that Jared: I was going to install the `clean' version mainly so it would create the database. If I manually create an `empty' database etc will the `restore' create tables etc the same as an install? ANd if so, I'd do your Step 6, before my Step 5 (ie: change configure.php's and then restore! Sorry for asking the obvious, but knowing my luck it'll stuff up somewhere :'(
Guest Posted April 9, 2005 Posted April 9, 2005 Having just moved my reasonable high traffic site, here's what I did. Copied the entire site to my local pc and then re-uploaded to the new server. Amended the config files to reflect the changes. Created a new database and then restored the old one to it. I then pointed the old site at the new database to ensure integrity. The problem that I had was the size of the database. I was unable to back it up through the store or restore it. I ended up having to back-up a few tables at a time and then import them to the new database with phpmyadmin. Bit of a nightmare but now it's on a nice dedicated server it was worth it. To be honest, I would suggest you do a fresh install on the new server just to make sure you have the database setup correctly AND the config files have all the right paths etc.
Guest Posted April 9, 2005 Posted April 9, 2005 I forgot to mention, as this is a new server the ABSOLUTE paths in your config files may well be different. That is why I suggest doing the install to make sure these are correct. I just spent 2 hrs trying to figure out why I had no product images in my admin section but I did on the site? Turns out it was an error in my absolute path!!
Guest Posted April 9, 2005 Posted April 9, 2005 if you have cpanel on both sites, ask your host to move your site, takes a few minutes. then create a user with an external access via mysql, change the original site sql access to the new site ip address, make the path changes in the new site for the configure.php. this way the sit eis still live for sales while the migration is taking place.
thejungle Posted April 10, 2005 Author Posted April 10, 2005 Hi! Thanks for all the info! My current host doesn't do cPanel, has it's own `Panel' - which works well anyways. (Except when you want to do cPanel -> cPanel stuff) I pretty much did what freerap did and jcall suggested. I didn't think of pointing the current site (old server) to the new database. Good idea though. It works now running as a test store though except ..... 1) When I have SE friendly URLs `on' it comes up unable to determine page link at the bottom of the main page and then cannot find any other page (I turned it off and it works OK, but it worked OK with it on before) [not that I care but....] 2) I get a pink strip saying that my download directory doesn't exist - but it does. I don't have downloads so I disabled them in ADMIN and now it's gone, but it's a bit of a worry since I want to know why it says I don't have a download directory when I do! Finally: my current host has an one click install thing for OSCommerce so I installed a dummy install and then basically copied the configure values it had... The one thing I did notice is it changed the cook path to /cgi/ (and also mentioned in the one click that php would be run as cgi!) Is this OK, is there any downfalls to this happening? THanks heaps Ernie
Recommended Posts
Archived
This topic is now archived and is closed to further replies.