Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 11:06:55 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


« Reply #25 on: November 07, 2008, 10:58:15 PM »

I´ll try that... after putting my son to bed....

i think i have already tried it... but i´ll try it again...  Smiley
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #26 on: November 08, 2008, 09:48:12 AM »

@ Ruud & Erpe

Sorry for the long wait. My wife gave birth to our son so that had a bigger priority Tongue

But anyway... Finally the movement from A to B worked.

What I did:

- Installed a new (same version) WB on server B
- downloaded the config.php to a place on your pc from server B
- downloaded ALL the files from server A **
- export the DB from server A
- delete the DB from server B
- import the DB that you created from server A into server B
- upload all these files to server B
- upload the config.php file to server B again

And your done.

** The problem was that the files created by WB were not downloadable. Therefore I had to CHMOD every single file to 777. That took days because this client had over a thousand pages. And webadmin.php isn't able to CHMOD multiple files at the same time.

So...I searched the Internet for a program that could do this job and...I found one!

Here you can download it and upload it in the root of your server. After that there are lots of options but the biggest one is: the possibility to CHMOD hundreds of files at the same time!!

With this single file this whole operation is peanuts. Good luck and thnq for your input!

Greetz
Boudi

Logged

...:: Bake the Unbakable ::...
babsy

Offline Offline

Posts: 322


« Reply #27 on: November 08, 2008, 01:46:50 PM »

hi again.. i tryed to change it to "path" in stead of URL..
and i have no idea.. what can be wrong...

asked my host.. and php include is no problem.. there ??

so now im actually rellay lost...  Sad

what about this php.ini file?.. could that help me in any way?
Logged
aldus

Offline Offline

Posts: 1238


« Reply #28 on: November 08, 2008, 02:17:21 PM »

hi again.. i tryed to change it to "path" in stead of URL..
and i have no idea.. what can be wrong...

asked my host.. and php include is no problem.. there ??

so now im actually rellay lost...  Sad

what about this php.ini file?.. could that help me in any way?

Hm ... as for a quick look it has to be "WB_PATH" (all uppercase) instead of "path" ...
you can also try to place
Code:
<?php
ini_set
('display_errors'1);
error_reporting(E_ALL);
?>

inside the used template to "force" warnings and messages ...

Regards
Aldus
Logged
babsy

Offline Offline

Posts: 322


« Reply #29 on: November 08, 2008, 08:07:57 PM »

HI AGAIN..
 

changed it all to PATH - still not working..

and another thing... all the "Comments" to the articles are gone... i can see them in the database but not on the page??

« Last Edit: November 08, 2008, 08:39:56 PM by babsy » Logged
Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #30 on: November 08, 2008, 10:13:39 PM »

@ Ruud & Erpe
Sorry for the long wait. My wife gave birth to our son so that had a bigger priority Tongue
Tillukku   grin (took some time to find that)
Congratulations.

With this single file this whole operation is peanuts. Good luck and thnq for your input!

Good tip for all that might get the same problems.
I saw Erpe already added this to the AMASP site too.
A warning to all.. If you are done using this, remove it from your server!
In my server logs I see many many requests for known files like this. (also phpMyAdmin.php is tried a lot)

Ruud
Logged

Professional WebsiteBaker Solutions
Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #31 on: November 08, 2008, 10:21:42 PM »

changed it all to PATH - still not working..

and another thing... all the "Comments" to the articles are gone... i can see them in the database but not on the page??

Did you try the tip Aldus gave?
Add the code in your template/index.php (on top, or even just before the include line to be sure)
If something goes wrong, an error should be displayed.
When trying, look in the page source for anything that looks like Notice/Warning/Error (viewing the page with a browser it might be hidden or not located where you think it is)

The comments that are missing looks a bit like an import (or export) problem.
You could try to import everything (WB files and Database) in a local XAMPP/WAMP installation to see if it imports correctly.

Ruud



Ruud

Logged

Professional WebsiteBaker Solutions
erpe

Offline Offline

Posts: 2077


WWW
« Reply #32 on: November 09, 2008, 12:56:55 AM »

Hi Ruud,

Quote
A warning to all.. If you are done using this, remove it from your server!
In my server logs I see many many requests for known files like this. (also phpMyAdmin.php is tried a lot)
So is this a problem if the directory is secured with a htacess-file?

rgds

erpe
Logged

Ruud
WebsiteBaker Org e.V.

Online Online

Posts: 2294



WWW
« Reply #33 on: November 09, 2008, 02:06:36 PM »

Quote
Here you can download it and upload it in the root of your server. After that there are lots of options but the biggest one is: the possibility to CHMOD hundreds of files at the same time!!

Quote
A warning to all.. If you are done using this, remove it from your server!
In my server logs I see many many requests for known files like this. (also phpMyAdmin.php is tried a lot)
So is this a problem if the directory is secured with a htacess-file?

I don't know about you, I rather don't close my root directory with a .htaccess file  grin

Seriously, I didn't try the tool, don't know if it will work in a (protected) subdirectory.
Typically you use a tool like that to fix things once. You never should need to use it again.
The admintool WebAdmin is good enough for normal small edits and other file operations, and since it is running in the WB backend it does not have this security issue.

Ruud


Ruud
Logged

Professional WebsiteBaker Solutions
erpe

Offline Offline

Posts: 2077


WWW
« Reply #34 on: November 09, 2008, 03:10:58 PM »

Hi Ruud,

thanks for that information regarding the root directory........ grin

I tested this script in a secured subdirectory and it works.
But you are right: You had to use it seriously once and hopefully that was it.

rgds

erpe
« Last Edit: November 09, 2008, 03:45:27 PM by erpe » Logged

Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #35 on: November 09, 2008, 03:29:36 PM »

Hi,

@ Ruud: Thank you!  smiley

Regarding the wbadmin.php file; I would advice users ONLY to use this script when there is really no other way (like ftp clients) tot edit files on your server. Only then this type of scripts can be used temporarily. After use of this script delete it as soon as possible from your server.

In my case: I had to edit over a 1.000 files to chmod 777 in order to enable them to download them from the server. There was no other way to do that.

Greetz
Boudi



Logged

...:: Bake the Unbakable ::...
babsy

Offline Offline

Posts: 322


« Reply #36 on: November 09, 2008, 11:43:12 PM »

Congratulations Boudi Smiley


to Ruud Smiley yes i tried the tip Aldus gave me, and its a bit weird still, because i dont´get any error message,
it looks like the include function works, but the page that suppose to show up does come, it´s just empty, no error ...

so now i just put the ad´s in manually until i get it to werk, tomorrow the domain will be moved to this new server, then i have to see if it changes anything og just try again! some of your advise...
Logged
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #37 on: November 10, 2008, 08:49:58 AM »

@ Babsy

Thank you  smiley
Logged

...:: Bake the Unbakable ::...
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!