[ Reload ]   [ Source ]  [ Top | Page List | Search | Recent | Backup | Help ]

Counter: 27362, today: 3, yesterday: 2

XOOPSCubeLegacy/HowToUpgrade

How to upgrade from XOOPS 2.0.x JP

Try it first at home! Means that it's preferable to try the upgrade in a copy of your site, in your pc and then move it to the real world!

STEP 1 Preparation

STEP1.png SIZE:660x67(14.2KB)
  1. Check your server PHP version. (PHP >= 4.3.11)
  2. You have to upgrade first your XOOPS 2.0.x JP to the latest version --- XOOPS 2.0.16a JP
  3. Check the compatibility of your modules on this page. And download the latest version or patch release.
  4. Check whether your modules require the system module for compatibility. And, if you need it, download the latest system module

STEP 2 Close site

STEP2.png SIZE:660x67(15.1KB)
  1. Select 'default' theme. And, disable selectable themes.
  2. Close your site.
  3. Change the debug mode to : PHP debug mode.
  4. Turn off your custom blocks which use PHP content-type. (If the block depends on X2's global variables, expect that may not work perfectly)
  5. And, for more safety, turn off all of blocks, especially system blocks.
  6. Reset the start-module. If the start module is not compatible, it will break your site.
  7. Remove all your cache-settings, because Legacy provides a different cache concept from X2.

STEP 3 File replace

STEP3.png SIZE:660x67(16.2KB)
  1. Delete all of files, except mainfile.php and the following directories:
    • images
    • themes
    • uploads
    • modules
    • your XOOPS_TRUST_PATH
  2. Overwrite with the package. Do not write the "install" folder. Needed only in fresh installations.
  3. Replace all of your modules with their latest version and, or their patched version which you has gotten at STEP 1.
    1. You don't need to remove files from XOOPS_TRUST_PATH. Just update your D3-type modules to the latest version.
    2. Don't forget to copy the legacy modules to your modules folder!
    3. If you are using d3forum with comment integration don't forget to copy the 3 php files from "html/class/smarty/plugins" folder in the appropriate place.

STEP 4 Upgrade

STEP4.png SIZE:660x67(16.2KB)
  • Patch your mainfile.php.

How to patch your mainfile.php? It's very easy. Modify your mainfile.php with a text editor alike notepad as follow.

From:
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
 include XOOPS_ROOT_PATH."/include/common.php";
}

To:
if (!defined('_LEGACY_PREVENT_LOAD_CORE_') && XOOPS_ROOT_PATH != '') {
 @include_once XOOPS_ROOT_PATH."/include/cubecore_init.php";
 if (!isset($xoopsOption['nocommon']) && !defined('_LEGACY_PREVENT_EXEC_COMMON_')) {
   include XOOPS_ROOT_PATH."/include/common.php";
 }
}

If you use XOOPS Protector, you adjust your mainfile.php more. Read 'About mainfile.php' of this document.

Then chmod of templates_c and cache folder to 777. (uploads is already set)

Click 'Refresh' button of your browser.

  • Install required modules in the 2nd installer.
  • Go to the module management, and update all of your modules.
  • Copy XUpgrade directory in Archive(Package_Legacy/extras/XUpgrade) into your server's modules directory (XOOPS_ROOT_PATH/modules/).
  • Go to the module management and install XUpgrade. By XUpgrade installation, your System module's preferences can be succeeded to legacy base modules.
  • After installation, you may optionally uninstall XUpgrade.

STEP 5 Open site

STEP5.png SIZE:660x67(14.7KB)
  1. Update all of modules, and check their working.
  2. If you don't need the system module, uninstall it. And, delete the directory from your server.
  3. Install your blocks except the custom-block.
  4. Install your custom blocks using two windows. One window is for the homepage to check the custom block. Another window is for the control panel to uninstall trouble custom blocks.
  5. Recover all preferences.
  6. Open your site.
  7. After you have finished checking your site settings, change the debug mode to OFF.

Attach file: fileop1.gif 1250 download [Information] fileSTEP5.png 1595 download [Information] fileSTEP4.png 1540 download [Information] fileSTEP3.png 1569 download [Information] fileSTEP2.png 1572 download [Information] fileSTEP1.png 1592 download [Information]
Reload   Diff Source Attach Attach List   Wiki Top Page List Search Resent Chenges Backup   Help   RSS feed
Page name:XOOPSCubeLegacy/HowToUpgrade/FromX2JP
Author:minahito [dAKzwn0Lw5c.] - 2007/09/14 12:55:13 JST(2564d)
Last edit:Anonymous - 2007/09/14 12:55:13 JST(2564d)
Editers:Registered Users
Back Link:XOOPSCubeLegacy(1170d) HowToUpgrade(2326d)

Comment
The comments are owned by the poster. We aren't responsible for their content.

Activity | Contributions



Who's Online
27 user(s) are online (3 user(s) are browsing Wiki)

Members: 0
Guests: 27

more...

Welcome | News | Overview | Documentation | Forum | Tutorialstop
Brasilian | French | German | Greek | Japanese | Korean | Russian | T-Chinese
Powered by XOOPS Cube 2001-2011 The XOOPS Cube Project