1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Moving SB 2.1.3 to a new server, to SB 4.0

Discussion in 'Sitebuilder 4.0 for Linux' started by zooming, Aug 19, 2007.

  1. zooming

    zooming Regular Pleskian

    25
    57%
    Joined:
    Jul 12, 2006
    Messages:
    112
    Likes Received:
    0
    Hello,

    I'm moving to a new server.

    My server is currently running RHEL 3. The new server will run RHEL 5.

    I'll migrate all plesk configuration to the new server using Plesk's Migration.

    I'm also planing to upgrade SB from version 2.1.3 to version 4.0

    I have noticed that there are instrutions on how to upgrade the installed SB version, but is there a way to migrate the SB content without the upgrade process?

    A simple restore of proper files and database (version 2.1.3) in the new server (with SB 4.0), followed by some upgrade command, will do the trick?

    I have made some tests, and I couldn't managed to install SB 2.1.3 on RHEL5 (rpm issues), so I'm looking for an alterative method.

    Thank you!

    Alexandre
     
  2. SibProgrammer

    SibProgrammer Regular Pleskian Staff Member

    29
     
    Joined:
    Nov 21, 2004
    Messages:
    342
    Likes Received:
    15
    You have already found the thread http://forum.swsoft.com/showthread.php?s=&threadid=40704 :)
    That can be applied to SB 4.0.0 with minor changes.

    * perform clean install of SB 3.0.2 (don't forget to drop sitebuilder3 database before if exists)
    * copy from SB 2.x server the following:
    * directory <sb-root>/htdocs/users into htdocs/users on new server
    * directory <sb-root>/htdocs/repository/templates
    * file <sb-root>/include/config.php
    * make a dump of SB 2.x database and restore it on new server
    * perform full backup of new server (this saves your time in the case of broken migration)
    * echo -n "2.1.3" > <sb-root>/migrate
    * run PHP CLI (for example /opt/php52/bin/php5) on migration script - /opt/php52/bin/php5 <sb-root>/utils/migration.php
    * run sb_config --migrate_all
    * remove <sb-root>/migrate if present
     
  3. zooming

    zooming Regular Pleskian

    25
    57%
    Joined:
    Jul 12, 2006
    Messages:
    112
    Likes Received:
    0
    Migration error

    Hello SibProgrammer,

    I'm having problems with the migration procedure:

    [root@rhel5 ~]# sb_config --migrate_all
    ...
    ...
    [2007-08-20T01:04:43-03:00 - #5 - info] Site locale have id 1.
    [2007-08-20T01:04:43-03:00 - #6 - info] Migration of flash intro module was started.
    PHP Notice: Undefined offset: 4096 in /usr/local/sitebuilder/include/Base/SyntaxException.php on line 49

    Notice: Undefined offset: 4096 in /usr/local/sitebuilder/include/Base/SyntaxException.php on line 49
    [2007-08-20T01:04:43-03:00 - #7 - error] Exception : PHP : Argument 1 passed to SB_Modules_Configuration::__construct() must be an instance of SB_Site, null given, called in /usr/local/sitebuilder/include/SB/Modules.php on line 48 and defined; file: /usr/local/sitebuilder/include/SB/Modules/Configuration.php; line: 41; code: 4096

    All the PHP files mentioned are Ioncube encoded, so I couldn't figure out what is wrong.

    Can you help me with this problem?

    Thank you!
    Alexandre
     
  4. SibProgrammer

    SibProgrammer Regular Pleskian Staff Member

    29
     
    Joined:
    Nov 21, 2004
    Messages:
    342
    Likes Received:
    15
    Access to your server is needed to resolve such problems. So contact support and provide credentials. If this site isn't so important, you can run sb_config --migrate_all again.
     
  5. zooming

    zooming Regular Pleskian

    25
    57%
    Joined:
    Jul 12, 2006
    Messages:
    112
    Likes Received:
    0
    It worked

    Hello SibProgrammer,

    I have repeated this procedure in a brand new server, and it worked!

    Thank you a lot!

    Alexandre
     
  6. zooming

    zooming Regular Pleskian

    25
    57%
    Joined:
    Jul 12, 2006
    Messages:
    112
    Likes Received:
    0
    Custom Buttons

    Hello,

    And how about the Custom Buttons?

    They were not updated during the migration process.

    In the Plesk 8.2 for Linux/Unix Sitebuilder Administration Module Guide (http://download1.swsoft.com/Plesk/P...ilder-4-administration-module-guide/index.htm) I have found some instructions, but I couldn't find the "Click here to transfer all data from earlier version of the module" link:

    "
    If you previously used the Sitebuilder Administration Module version 2 with Plesk, do the following to transfer all user accounts and settings to the newly installed module:

    1. Log in over SSH to the server where the upgraded Sitebuilder system is located and run the following command to transfer Web sites to the new Sitebuilder version: sb_config --migrate_all.
    2. Log in to Plesk as administrator (user name "admin"), then go to Modules > Remote Administration of Sitebuilder.
    3. Click the link Click here to transfer all data from earlier version of the module. All user accounts are transferred to the new module. Reseller accounts corresponding to Plesk client accounts are created in Sitebuilder.
    4. After the data transfer is finished, click Close.
    "

    How to upgrade the Custom Buttons too?

    Thank you.

    Alexandre
     
  7. Dmitry Frantsev

    Dmitry Frantsev Golden Pleskian

    28
    57%
    Joined:
    Sep 19, 2005
    Messages:
    1,911
    Likes Received:
    0
    Was SBM module upgraded itself on the server? Try to check it:

    # rpm -qa psa-sbm3

    Latest module which goes with Plesk 8.2 is psa-sbm3-4.0-46 - module for Sitebuilder v.4.
     
  8. zooming

    zooming Regular Pleskian

    25
    57%
    Joined:
    Jul 12, 2006
    Messages:
    112
    Likes Received:
    0
    Yes, this module is installed:

    [root@rhel5 ~]# rpm -qa psa-sbm3
    psa-sbm3-4.0-46

    It was installed by Plesk's autoinstaller.
     
Loading...