Zen Cart Logo
Forums / General Questions / Moving from one server to another

Moving from one server to another

Locked

Views: 6,055

Results 1 to 20 of 25
This thread is locked. New replies are disabled.
7 Feb 2007, 8:22 PM
#1
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Moving from one server to another

I have a dedicated Linux server with OLM using the Ensim control panel. After 8+ years, I have decided to move to a new company, Hostway using the Plesk control panel on a Linux box. I have read some of the problems with Plesk, but so far this newer version (8.1) seems to be working great.

I had 25+ domains to move over some without stores and some with. Some were Zen and some were OSC. Surprisingly enough, the one site I was the most concerned about https://www.zimmernutrition.com has moved over very easily. (Knock on wood) The only problem I am seeing with this domain (so far) is the emails that are sent out to my shoppers. In the past, they always received a very nice html based email with our banner at the top and the content below. I think this was a default design, but we liked it so much we decided to keep it. Unfortunately, since we moved over to the new server, our customers are receiving a non-html looking email that is basically one long line of text. Does anyone have any idea why this would no longer work the way it used to?

Also, I have another domain, scrappinhearts.com that for some reason cannot connect to the database. I have checked and rechecked the database name, user name and password in the config file. I am able to access the ADMIN section, but when you go to the main page, all I see is the what looks like the down for maintenance page, but it says the site cannot connect to the database to try back later.

I have searched the forums and found several things but nothing that seems to either make sense or fix my problem. Here is what I have done thus far.

  1. I created the domain on the new server with plesk.
  2. I TAR'd the files on the old server and SCP'd them to the new server
  3. I unTAR'd the files on the new server, changed the permissions to match the new server and put them in the appropriate place.
  4. I created a new database (different name) from within Plesk and assigned a new user name and password.
  5. Changed the configure.php files for Store and Admin section to reflect the new info.
  6. I went to the old server and EXPORTED the database and then IMPORTED it in the new one.
  7. I received a successful import message.

I have done this with other sites and so far, this domain is the only one I have had problems with.

It is probably important to mention a few key points.

  1. I do see the following warning message at the top of the ADMIN page.

WARNING: The Admin Activity Log table has records over 2 months old and should be cleaned ... 12-02-2006

  1. The old server was running: MySQL 3.23.58 and phpMyAdmin 2.5.6

  2. The new server is running: MySQL 4.1.20 and phpMyAdmin 2.8.2.4

  3. The old server was running PHP4 the new is running PHP5

  4. Zen-Cart version is Zen Cart 1.3.6 with Database Patch Level: 1.3.6

Question: Is it possible this is a permissions thing? When you install Zen Cart, there is a checklist of things that need to be fixed (register globals, etc). Is there a way to view this again without reinstalling the store? Finally, in reading the forum, I found someone talked about a fix_cache_key.php file, is that something I need to do?

Thank you in advance for your time.

7 Feb 2007, 8:31 PM
#2
tvadpro avatar

tvadpro

Zen Follower

Join Date:
Aug 2005
Location:
Cincinnati
Posts:
323
Plugin Contributions:
0

Re: Moving from one server to another

Have you set Use MIME HTML When Sending Emails to TRUE in Admin/Configuration/E-Mail Options? :smile:

kimhuff:

Unfortunately, since we moved over to the new server, our customers are receiving a non-html looking email that is basically one long line of text. Does anyone have any idea why this would no longer work the way it used to?

7 Feb 2007, 8:37 PM
#3
tvadpro avatar

tvadpro

Zen Follower

Join Date:
Aug 2005
Location:
Cincinnati
Posts:
323
Plugin Contributions:
0

Re: Moving from one server to another

Regarding scrappinhearts.com, Kim, did you assign permissions for the database user on that domain? If you'd run the ZC installer on the new domain, it would have stopped at the point where it realized the db user lacked sufficient permissions. But if you circumvented the installer, perhaps not assigning permissions to the db user is the hitch?

7 Feb 2007, 8:38 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Moving from one server to another

Check around on the forums for discussions about PHP5 and see if that might be the problem.

7 Feb 2007, 9:31 PM
#5
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

tvadpro,

I double checked the MIME setting under the configuration menu. It is set to true for that particular option. I had a feeling it was set properly since I didnt change it, but it was a good try.

I cant think of what else would cause the email to not work the same since I mainly just transferred the entire domain from one server to the next and imported the current database. Any other ideas?

7 Feb 2007, 9:32 PM
#6
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

As for scrappinhearts, I do think it might be a permissions thing but I dont know where or how to set these permissions. Do I do this is Plesk or in SSH?

7 Feb 2007, 9:34 PM
#7
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

Mary Ellen,

Thanks for the idea, when I get home from work, I will do a search on PHP5. I thought that might be it, but I had talked to someone else before signing the contract for the server and I was told my version worked with PHP5.

7 Feb 2007, 9:44 PM
#8
tvadpro avatar

tvadpro

Zen Follower

Join Date:
Aug 2005
Location:
Cincinnati
Posts:
323
Plugin Contributions:
0

Re: Moving from one server to another

Beyond the admin setting for MIME email enabling, I'm out of my depth. Perhaps something to do with the individual customers' preferences for plain text versus html emails? Could this column have been altered somehow?

I think you can assign database user permissions in Plesk. I'm more of a cPanel guy myself, but on a brief trek through a Plesk interface a couple years back, I seem to recall this control. If all else fails, your hosting tech support rep should be able to point you to it, assuming you're buying third-party hosting as opposed to hosting on your own server.

kimhuff:

As for scrappinhearts, I do think it might be a permissions thing but I dont know where or how to set these permissions. Do I do this is Plesk or in SSH?

7 Feb 2007, 11:28 PM
#9
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

I have a dedicated server with Hostway. I have those guys looking at it but they dont see it either. And this site has been down and we cant get it up and running.

7 Feb 2007, 11:32 PM
#10
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

AND, at this point the client is ready to drop me for hosting. I knew this move was going to be a pain, but I really had no choice. The only thing I can think of is permissions

8 Feb 2007, 12:05 AM
#11
kobra avatar

kobra

Black Belt

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

Re: Moving from one server to another

For mail - double check the mail app you were running and the mail app that you are currently running and of course if different then what the diff's are.

For the down site - you have the cart files(template & override things) and the DB backup.....since it is not functioning - do a fresh install of Zen Cart - apply your template & overrides - In the DB - drop the tables import to backup - rerun the zc_install for any up grades required. Total of about 30-60 min.

8 Feb 2007, 5:17 AM
#12
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

Thanks for all the info everyone. Here is what I have found so far. The problem is fixed and it seems to be due to permissions on the database side. The guys at Hostway figured it out. I havent talked to him yet so I dont know exactly how he fixed it... I will find out and post here just in case it helps someone else.

Finally, regarding the email problem. I am getting the emails so at least I know that the service is working, but I also know that the old server used sendmail and the new one uses something called qmail. It has to be something with the move because everything else works great, its just this aspect.

Thanks,

8 Feb 2007, 6:07 AM
#13
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

I was just thinking... could the email issue be a permissions thing too? Maybe it is sending itin TEXT format, because it doesnt have access to the html file. I dont know, I am grasping at staws here.

8 Feb 2007, 2:02 PM
#14
kobra avatar

kobra

Black Belt

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

Re: Moving from one server to another

If you have not you might look at this Setting up qmail

10 Feb 2007, 12:57 AM
#15
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

Does anyone know what the chmod should be on the email files?

10 Feb 2007, 1:24 AM
#16
kobra avatar

kobra

Black Belt

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

Re: Moving from one server to another

We run ours at 750 but we are also configured to have public_htl at 750 also, by tricking Apache.

If that does not work for you start at 777 and back down increment at a time

10 Feb 2007, 2:20 AM
#17
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

Does anyone know what the installation default is? I dont think I made any changes on ours.

10 Feb 2007, 2:23 AM
#18
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Moving from one server to another

755 is the default

10 Feb 2007, 2:24 AM
#19
kobra avatar

kobra

Black Belt

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

Re: Moving from one server to another

Does anyone know what the installation default is? I dont think I made any changes on ours.
Are you experiencing an issue??

10 Feb 2007, 2:40 AM
#20
kimhuff avatar

kimhuff

Zen Follower

Join Date:
Nov 2005
Posts:
88
Plugin Contributions:
0

Re: Moving from one server to another

All of the files in store/email are set to 644. Could this be the reason all of my email communication being sent out has no formating to it what so ever and is just one long continuous line of text?