Forums / Installing on a Linux/Unix Server / Moved to new server (GoDaddy), now I'm lost

Moved to new server (GoDaddy), now I'm lost

Started by toylady on 3 Mar 2011, 2:00 AM · Views: 15,044

Results 1 to 20 of 30
3 Mar 2011, 2:00 AM
#1
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Moved to new server (GoDaddy), now I'm lost

I've been using Zen Cart for over 5 years now and I consider myself zc savvy up until now. I need help, here's my issue.

My host went oob. I am moving my websites to GoDaddy.
I decided to freshly install the newest version of ZC and to my dismay, my db wasn't compatible, DUH!
So, I came hear to grab an older version of ZC, I believe I had 1.3.6, installed that and now I can't complete the install because I get an error:
"Error encountered while writing /includes/configure.php"

Also, (this sounds terrible) I made backups before my previoud host went belly up, but I don't know what to do with .tar files.

any help is appreciated

3 Mar 2011, 3:31 AM
#2
pdxdoug avatar

pdxdoug

Zen Follower

Join Date:
Jan 2008
Location:
Portland, Oregon USA
Posts:
356
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

Old files can be found here: http://sourceforge.net/projects/zencart/files/CURRENT_%20Zen%20Cart%201.3.x%20Series/

I would recommend two things:

  • Upgrade to the lastest version 1.3.9H
  • and find another host other than GoDaddy

http://www.zen-cart.com/index.php?main_page=infopages&pages_id=10

Search the forum for both recommendations and you'll find a multitude of reasons to hopefully make some changes sooner than later.

Cheers,

Doug

3 Mar 2011, 1:06 PM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

As the "Upgrade Database Only" option doesn't need to write anything to the configure.php files I have never been able to fathom why it wants those two files to be writeable - but it does.

After you have installed your new Zen Cart site with its new 1.3.9h database you need to "Drop" all those shiny new tables using phpMyAdmin, and then import your old db backup into that new db.

Then you upload the new 1.3.9h zc_install folder to the root of your website and go to it in your browser and choose the "Upgrade Database Only" option. This will upgrade your old database to 1.3.9+ level, which along with your new 1.3.9h fileset gives you a new website with all your old customer and product data.

Vger

3 Mar 2011, 1:10 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Moved to new server (GoDaddy), now I'm lost

Vger, they're not talking about upgrading specifically. They're trying to install and getting that "cannot write" message when the installer is trying to create the config files for their new server.

And, the "Upgrade Database Only" option does not need to write to configure.php files, and does not require them to be writeable. Maybe it did a long time ago, but it doesn't now, unless going from 1.2 to 1.3 where it needs to add new content to the files.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Mar 2011, 2:48 PM
#5
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

So if I do a fresh install of the newest version, I should be able to upgrade my database during install?

3 Mar 2011, 3:00 PM
#6
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

Is there a file that states what version zc is in use?

3 Mar 2011, 5:26 PM
#7
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

Does anyone accept donations/payment for fixing zencart websites? I have ran out of time and I need help. Anyone?

3 Mar 2011, 5:27 PM
#8
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

I decided to freshly install the newest version of ZC and to my dismay, my db wasn't compatible

  1. Install 1.3.9h as normal, but leave the zc_install folder in place for now, and then

  2. Access the new 1.3.9h database via phpMyAdmin and "Drop" all of the tables in it, then

  3. Using phpMyAdmin again, use the Import tab to import a backup of your old database into the new (and now empty) database.

  4. Assuming you installed Zen Cart 1.3.9h at an address called http://www.yourdomain.com then go back to http://www.yourdomain.com/zc_install and when you get to the first proper page of the install you'll see (at the bottom of the page) an option to "Upgrade database only". Click on this button.

  5. It doesn't much matter which version you are upgrading from because the Database Upgrade will amend your old database in increments through the various versions up to the current version.

  6. You then delete the zc_install folder.

  7. You then rename the 'admin' folder using FTP or your web hosting control panel to something unique and you edit the website's admin/includes/configure.php file and change /admin/ in 3 places to read /new-admin-name/ - you will have to reset permissions on this file to 644 (to be able to edit it) and then reset them later back to 444 or 400.

You now have a 1.3.9h website with the data from your old website.

Vger

3 Mar 2011, 5:40 PM
#9
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

Thank you! I followed these instructions, but encountered a new problem.
After dropping the database and uploading my old database, not all of the tables are uploading. Every table after "orders" won't upload in addition to that, the "orders" table is 0 and it should be 2,000+

3 Mar 2011, 5:46 PM
#10
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

This probably means that the database backup file is too large (in file size) for phpMyAdmin to handle.

You can either create two new .txt documents and copy/paste the first half of the db into one and the second half into the other, and then import them one at a time using phpMyAdmin or else you'll need to get someone experienced with using SSH (Secure Shell Access) to import the whole db for you. SSH is not restricted by file size the way that phpMyAdmin is.

If you split the db into separate files you will need to drop the tables that did Import the first time around before you try again with the separate files.

Vger

3 Mar 2011, 5:55 PM
#11
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

Ok, I will try the split method you explained.

3 Mar 2011, 7:28 PM
#12
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

I had to split my database 3 ways. The first part uploaded fine. All the rest won't load. I can't believe all this has to be so difficult. I just need the cart to function with my old database... it sounds like it should be way easier than this and I've already spent 2.5 days.

4 Mar 2011, 6:42 AM
#13
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Moved to new server (GoDaddy), now I'm lost

toylady:

I had to split my database 3 ways. The first part uploaded fine. All the rest won't load. I can't believe all this has to be so difficult. I just need the cart to function with my old database... it sounds like it should be way easier than this and I've already spent 2.5 days.
Try using Big Dump from
http://www.ozerov.de/bigdump.php

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

4 Mar 2011, 10:44 AM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moved to new server (GoDaddy), now I'm lost

it sounds like it should be way easier than this and I've already spent 2.5 days
Much of this issue is your poor choice of a host

Zen-Venom Get Bitten

4 Mar 2011, 12:56 PM
#15
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

You can "try" to get GoDaddy support to run the database backup in for you via SSH. Upload the complete backup file to the root of your Zen Cart site, "Drop" all the tables which did import, raise a support ticket with GoDaddy giving them the name and location of the database backup, the name of the new database plus its User Name and Password - and ask them to use SSH to import it for you. Explain that it is too large to be imported using phpMyAdmin.

Vger

7 Mar 2011, 11:10 PM
#16
jetx avatar

jetx

Zen Follower

Join Date:
Apr 2006
Posts:
425
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

Another thing which might work for you is to import the database in gzip format using something like 7-zip.

12 Mar 2011, 10:22 PM
#17
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

My database still wont upload completely.
It stops at "orders"

I left godaddy and moved to a new server.

Might this be because my database is from an older version of zc?

13 Mar 2011, 1:56 AM
#18
usr50 avatar

usr50

Zen Follower

Join Date:
Mar 2009
Location:
Niagara Ontario
Posts:
136
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

ToyLady,
I share your frustration ,
sounds like a job for Navicat? I've had 100% success importing databases using Navicat . where is the database now? on disc? or is it still on a GoDaddy box?
and how large is it in terms of MB's?

13 Mar 2011, 3:19 AM
#19
toylady avatar

toylady

New Zenner

Join Date:
Sep 2006
Posts:
21
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

I have the db file as a tar.gz
compressed its 1,129 kb

13 Mar 2011, 4:12 AM
#20
usr50 avatar

usr50

Zen Follower

Join Date:
Mar 2009
Location:
Niagara Ontario
Posts:
136
Plugin Contributions:
0

Re: Moved to new server (GoDaddy), now I'm lost

ok, for starters uncompress it and see what size it is and how many tables are in it.