Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 11:06:07 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155449 Posts in 21704 Topics by 7731 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1] 2   Go Down
Print
Author Topic: Moving from server A to B - and updating  (Read 2801 times)
babsy

Offline Offline

Posts: 322


« on: November 05, 2008, 01:45:24 PM »

Hi... Im am just about to move a website from server A to B - and i will follow the guide about this... but before i do, i have one question:

my old website is with wb 2.6.2 - but i want to use 2.7 for the new one.... can i just install the newest version and then follow the guide to move from server A to B Huh please any answers appreciatet Smiley
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #1 on: November 05, 2008, 01:54:36 PM »

Nope ... you will have to move first and the upgrade, since there are changes in the Database structure.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #2 on: November 05, 2008, 01:56:33 PM »

The moving includes also the complete core of WB.

Assuming Server A is your local server, I would first upgrade that one and check if everything is still working as expected. Then start thinking about moving.

If server A is also a remote server, I would move first. Keeping your server A as full backup in case things go wrong.

What you cannot do is installing WB2.7 on server B and next try to move A to B.

Ruud
Logged

Professional WebsiteBaker Solutions
babsy

Offline Offline

Posts: 322


« Reply #3 on: November 05, 2008, 02:01:03 PM »

OK, thank you very much for you fast answers - i just wanted to check before making something stupid..

my problem is actually that i can´t upgrade on the server where i keep my website now? - it just won´t work - (settings and preferences og "change settings) just give me blank pages after upgrading, and i have tried everything, so i guess that there must be something wrong at the host...they say it´s something in the code going wrong.. so im lost there..

so i will just installl the 2.6.7 on the new server (i´m actually moving to a new host) - and then follow the "from server A to B)

then i can try to upgrade... embarassed
Logged
babsy

Offline Offline

Posts: 322


« Reply #4 on: November 05, 2008, 04:33:00 PM »

hmm, kan jeg stadig downloade 2.6.7 et eller andet sted fra?
Logged
Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #5 on: November 05, 2008, 04:39:41 PM »

hmm, kan jeg stadig downloade 2.6.7 et eller andet sted fra?
Needed google translator for that message  rolleyes

WB 2.7 is located on the WB frontpage.
http://start.websitebaker2.org/en/introduction.php

Ruud
Logged

Professional WebsiteBaker Solutions
babsy

Offline Offline

Posts: 322


« Reply #6 on: November 05, 2008, 04:59:34 PM »

hehe sorry i forgot where i was - sorry, i was actuallly looking for the older version.. 2.6.7 Smiley
since i can´t move from one server to another and upgrade!
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #7 on: November 05, 2008, 05:03:51 PM »

Hi,

A client of me wanted to move his WB from server A to server B.

I checked: http://help.websitebaker.org/pages/en/knowledge-base/moving-from-server-a-to-b.php
but that totally screwed up everything.

The errors that came up were:

- no way to download the data from ftp that was created/changed with WB. Therefore step 3 is not possible
- it is not possible to overwrite the existing db on the new server with the old. 1st you have to delete the entire db from the new install before you can import the old DB. So step 6 does not work either
- when loggin in after all these steps (at least what was possible) the pages on the frontend doesn't work. it will end up in blank pages. So in the admin it looks ok, but when checking the website you only see "cannot find page".

Because this client has his business online there is a HUGH priority to get this thing done.

Any step by step help would be highly appriciated.

Thnq
Boudi.
Logged

...:: Bake the Unbakable ::...
Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #8 on: November 05, 2008, 05:07:51 PM »

@babsy

http://download.websitebaker2.org/websitebaker2/
Logged

Professional WebsiteBaker Solutions
babsy

Offline Offline

Posts: 322


« Reply #9 on: November 05, 2008, 05:08:35 PM »

thanks - wish me luck  wink
Logged
Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #10 on: November 05, 2008, 05:13:28 PM »

Good luck  cool
Logged

Professional WebsiteBaker Solutions
Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #11 on: November 05, 2008, 05:25:51 PM »

- no way to download the data from ftp that was created/changed with WB. Therefore step 3 is not possible
When setting up a new WB installation you are asked what permissions should be used for new pages.
Normally you set this to a value where you can at least read the files also with your FTP client. (755 or 777)
If that is not the case, you cannot get them through the FTP user. Now there are two options.
If your host has an admin panel, that panel will probably have a file browser that will allow you to change the permissions. (set everything to 777)
If not you could try the WebAdmin module (http://www.websitebakers.com/pages/admin/admin-tools/webbase-edit.php). That one allows you to set permissions too.
It is a lot of work, but when all permissions are set correctly, you should be able to download all files by FTP.

- it is not possible to overwrite the existing db on the new server with the old. 1st you have to delete the entire db from the new install before you can import the old DB. So step 6 does not work either
I think this is wrong in the help pages. phpMyAdmin wants to create tables (not the database) on import.
There are also different ways to export. (with or without a CREATE DATABASE line in the exported file)

I understand this worked for you (after deleting the database first), so no problem there.

- when loggin in after all these steps (at least what was possible) the pages on the frontend doesn't work. it will end up in blank pages. So in the admin it looks ok, but when checking the website you only see "cannot find page".
This is because the pages are not copied through FTP. Good chance they might work as soon as the first of your problems (FTP permissions) are solved.

Good luck

Ruud
Logged

Professional WebsiteBaker Solutions
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #12 on: November 05, 2008, 05:28:24 PM »

Thnq Ruud for the quick reaction. I will read & act right away. I keep you posted.

Boudi
Logged

...:: Bake the Unbakable ::...
erpe

Offline Offline

Posts: 2077


WWW
« Reply #13 on: November 05, 2008, 05:29:50 PM »

@Boudi

1. iif you have no ftp access, how would you try to move?
2. you don't have to delete your db if you choose the function delete table/ create if not exists

So  my tip is:
create a new wb installation on the new server. See, if there were any errors during install and have a look at the permission and owner of the files (wwwrun or ftp user). And if there is no problem, it will be very easy to move the wb insatllation, if you have ftp access on both servers.
And if not, you just must not even try.

rgds

erpe

Edit: @Ruud: you answered quicker than me, but my post points in the same direction.
« Last Edit: November 05, 2008, 05:39:02 PM by erpe » Logged

Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #14 on: November 05, 2008, 05:37:44 PM »

@Erpe

I do have FTP and server access. So no problems there.  smiley But you were right; I already sent an e-mail to the hoster because it would be nice if they gave me more rights so I can download the by WB created files too. Saves me LOTS of work (manually set new persmissions on every file)

The main issue is (I think right now) are the permissions.

I'll keep you posted. Thnq for your quick reactions.
« Last Edit: November 05, 2008, 05:40:34 PM by Boudi » Logged

...:: Bake the Unbakable ::...
erpe

Offline Offline

Posts: 2077


WWW
« Reply #15 on: November 05, 2008, 05:39:28 PM »

@Boudi

you can try to get youir hoster set the rights to ftp user so you are able to download them by ftp. But there is a good chance, that the wb-installation is not working right from the moment when rights were changed.

Good luck.

erpe
Logged

babsy

Offline Offline

Posts: 322


« Reply #16 on: November 06, 2008, 06:52:42 PM »

hi.... im back..... but it didn´t go that well, everything worked smoth...... until i got to the database?
i don´t know what went wrong, i tryed boty possibility 1 and 2, but no luck -

if i look at both databases at the same time, i can see that there is a difference event after i import???
don´t know what do to - to make it work???
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #17 on: November 06, 2008, 07:08:35 PM »

So what went wrong?
Logged

babsy

Offline Offline

Posts: 322


« Reply #18 on: November 06, 2008, 07:25:56 PM »

the import in phpMyAdmin  - i think?
because everything worked until i set import!

now backend looks like it works, and if i f.ex. make new page,,... everything is just white??? and i see no pages ind the "pages" - but in FTP i see them all and i have tried to give dem "777" but no luck.....

i think im doing wrong when i import... or export..... ? (i attached the way i exported and imported..??)


____ update: i just read this all over again... should i maybe try to delete all the database before import??


:::::: UPDATE AGAIN:

it works Smiley i deleted the database and put one table in at the time, and the biggest table (10mb) i imported ind little bits.. and it worked Smiley

but.. on my new host.. it looks like... this does not work:
<?php include (WB_URL."/pages/blocks/lysingar2.php"); ?>

everything else simse to work?
« Last Edit: November 06, 2008, 10:26:15 PM by babsy » Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #19 on: November 07, 2008, 10:04:59 AM »

So I don't really know yet:
Does your site work on the new host or not?

rgds

erpe
Logged

Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #20 on: November 07, 2008, 10:20:42 AM »

it works Smiley i deleted the database and put one table in at the time, and the biggest table (10mb) i imported ind little bits.. and it worked Smiley
Thats a big site. wink I can imagine it doesn't upload. Was it zipped? That should be much much smaller.
(if it is all there and working, don't try again to test my assumption above!)

but.. on my new host.. it looks like... this does not work:
<?php include (WB_URL."/pages/blocks/lysingar2.php"); ?>
Did you set all the /pages/ permissions ok? "<?php include ();?>" will work. This is very basic php.
So it must be either the file that is not there or it is not visible for the apache user.

Ruud
Logged

Professional WebsiteBaker Solutions
babsy

Offline Offline

Posts: 322


« Reply #21 on: November 07, 2008, 09:52:13 PM »

Hi...

Yes my site works: please look here:
http://vagaportalcom.tina.device.dk/


this is the page i´m trying to include: (it should be just above where the text is "bilur til sølu")
http://vagaportalcom.tina.device.dk/pages/blocks/lysingar2.php

with this code:

    <?php include(WB_URL."pages/blocks/lysingar2.php"); ?>

but it just doesn´t seem to show up?? and i can´t figure out why, especialy because i haven´t change anything in the code when moving?

i set the rights to "777" on pages and on the page that should be shown...
« Last Edit: November 07, 2008, 10:00:40 PM by babsy » Logged
Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #22 on: November 07, 2008, 10:47:52 PM »

Did you try setting the php error level in WB to the value so it will display all errors (E_ALL)?
It might give a message on whats wrong.

I assume the last include example has a typing error..
 <?php include(WB_URL."/pages/blocks/lysingar2.php"); ?>

Ruud
Logged

Professional WebsiteBaker Solutions
babsy

Offline Offline

Posts: 322


« Reply #23 on: November 07, 2008, 10:54:26 PM »

hi again and thanks for helping Smiley

but i just try changing it to E_ALL and i put the missing "/" infront... but still no luck  sad


this is the old page where it works: www.vagaportal.com
and this it the same new page: http://vagaportalcom.tina.device.dk/

im a bit lost here...
Logged
Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #24 on: November 07, 2008, 10:55:25 PM »

Just got it..

You probably cannot include with WB_URL (WB_URL = http://etc..). There is a php ini-setting that controls including "remote" files.
Change WB_URL to WB_PATH and it will probably work.

Ruud
Logged

Professional WebsiteBaker Solutions
Pages: [1] 2   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!