Move WBB or WCF folder

Warning: This page is a part of an archive now and will be removed in the future.

Sometimes, you install your forum (WBB) into the root folder and your framework (WCF) into the subfolder /wcf. That' the general setting.
However, it may be possible that you want to install another standard application into the root folder and thus you have to move the folder of your forum.

If you want to do so, you have to do something before so that it will work:
  1. Delete the content of the following folders:
    /cache/
    /wcf/cache
    /wcf/language
    /wcf/templates/compiled

    If there is any .htaccess file into the folders, don't delete them.
  2. Open the file config.inc.php in the folder of your forum, e.g. /config.inc.php, with any editor (suggestion: Notepad++). You will see some code like that:

    PHP Source Code

    1. <?php
    2. // com.wcfsolutions.wsip vars
    3. // wsip
    4. if (!defined('WSIP_DIR')) define('WSIP_DIR', dirname(__FILE__).'/');
    5. if (!defined('RELATIVE_WSIP_DIR')) define('RELATIVE_WSIP_DIR', '');
    6. if (!defined('WSIP_N')) define('WSIP_N', '1_1');
    7. $packageDirs[] = WSIP_DIR;
    8. // general info
    9. if (!defined('RELATIVE_WCF_DIR')) define('RELATIVE_WCF_DIR', RELATIVE_WBB_DIR.'wcf/');
    10. if (!defined('PACKAGE_ID')) define('PACKAGE_ID', 64);
    11. if (!defined('PACKAGE_NAME')) define('PACKAGE_NAME', 'WCF Solutions Infinite Portal');
    12. if (!defined('PACKAGE_VERSION')) define('PACKAGE_VERSION', '1.1.0 Beta 2');
    13. ?>
    Display All
    You have to edit one line. It's the line in which the variable RELATIVE_WCF_DIR will be assigned. Here, it's line 10. Edit it to:

    Source Code

    1. if (!defined('RELATIVE_WCF_DIR')) define('RELATIVE_WCF_DIR', RELATIVE_WBB_DIR.'../wcf/');
  3. Move all files and folders except the folder called "wcf" to a new subfolder, e.g. /forum.
  4. You have to edit some values in the database, e.g. with phpMyAdmin. Login and open the table wcf1_packages in the database of your forum. Sort it descendent according to packageDir.
    You will get a result, which shows the value ../. It's the value of the forum. Change it to ../forum/.
  5. Still in the database, go to the table wcf1_option and look for the optionName "packageURL" (without ""). You can find a value like that: example.com. Change it to example.com/forum.
Attention: If you have multiple standard applications, it's a bit more complexity, above all if you want to move more than one application at once. E.g. there are more values in the table wcf1_option, wherefore you should know the IDs of your applications.
About the Author
Ich bin Webentwickler in Stuttgart und administriere Server seit vielen Jahren. In diesem Blog erstelle ich hauptsächlich Tutorials für andere Webentwickler, Webdesigner und Serveradministratoren.
-------------------------------------------------------------------------------------------------------------------------------------
I’m a web developer in Stuttgart, Germany, and server administrator since many years. This blog mainly contains a tutorial set for other web developer, web designer and server administrators.

821 times read

Comments 0

There are not any items at the moment.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.