Home Features Pricing Support Contact
Search:     Advanced search

Upgrading KBPublisher

Article ID: 170
Last updated: 21 Apr, 2011

Before you start
Please note that upgrading via the wizard is possible only for version 2.0 and above.
If you are currently using an older version of KBPublisher upgrade to version 2.0 first.

Option 1 (retain current installation until you have tested the upgrade)

  1. Make a copy of your previous KBPublisher installation database. This database will be modified during the upgrade.
  2. Unpack the distribution package to a directory with a different name to that of your current knowledgebase directory, for example to "kb_new".  This ensures that the previous installation is not overwritten.
  3. Open your browser and go to http://<your_domain>/<kb_installation_path>/setup/index.php, where <your_domain> is your domain name, and <kb_installation_path> is the path where KBPublisher is installed that you created in step 2. e.g. http://mydomainname.com/kb_new/setup/index.php. The installation wizard comes up.
  4. Follow the installation wizard instructions.
  5. After testing the new installation, rename your current (old) KBPublisher installation directory to something appropriate, for example to "kb_old".
  6. Rename new KBPublisher installation directory to your previous installation directory name.
  7. Update configuration file <kb_installation_path>/admin/config.inc.php by setting new values for $conf['admin_home_dir'] and $conf['client_home_dir'].

Note that this option creates a new database. If you wish to continue to use the original database, then once you have tested that everything is working, backup the old database, rename the new one and change the database name in config.inc.php to match the name of the original.


Option 2 (upgrade directly into the current knowledgebase)

  1. Rename your current KBPublisher installation directory. For example to "kb_old".
  2. Backup your database.
  3. Unpack the distribution package to the directory where the previous version of KBPublisher was installed.
  4. Open your browser and go to http://<your_domain>/<kb_installation_path>/setup/index.php, where <your_domain> is your domain name, and <kb_installation_path> is the path where KBPublisher is installed. e.g. http://mydomainname.com/kb/setup/index.php. The installation wizard comes up.
  5. Follow the installation wizard instructions.


Option 3 (replace modified files only)

With some small KBPublisher upgrades, we supply a quick upgrade option called a "Modified Files Only" package. For example, this package is available to upgrade from v3.0 to v3.0.1 This allows you to simply replace modified files rather than doing a full upgrade. You can download it from your client area in the same way you can download a full upgrade package.

The modified files package contains:

  • A kbp folder that contains all modified files to be copied. The structure of the folder and sub-folders is the same as the KBPublisher directories/files structure
  • A My-SQL script to run, called db_upgrade_from_[version]_to_[version].sql, that updates the version number of your database
  • A file called how_to_upgrade.txt that tells you what you need to do to upgrade
  • A list of updated files in updated_files.txt.

Standard steps to upgrade:

  1. Backup your current KBPublisher installation, directory and database (recommended).
  2. Copy the contents of the kbp folder found in downloaded "Modified Files Only" package to your current KBPublisher installation directory.  We recommend that you copy the files by folder, rather than all at once. 
    (ATTENTION: Mac OS users. You should copy file by file. Do not copy folder by folder. It does not work for you and will replace entire folder(s) and delete non modified files). 
  3. Upgrade your database by running the db_upgrade_from_[version]_to_[version].sql file found in downloaded "Modified Files Only" package. If your KBPublisher tables prefix is not "kbp" then you should update sql file and set you tables prefix.
    For example from:
    UPDATE `kbp_setting` SET `input_id` = '5' WHERE `id` = 46;

    To:
    UPDATE `your_prefix_setting` SET `input_id` = '5' WHERE `id` = 46;


Notes:

  • The original installation will already have kb_file and kb_upload directories. Check where these are, and during the upgrade make sure that your kb_file and kb_upload directory paths are the same as for original installation
  • Here is a recommended directory structure for KBPublisher



    kb_file - is for uploads via 'Files' module
    kb_cache - is for cache files
    kb_upload - is for uploads via the HTML editor

    kb_file, kb_cache and kb_upload directories must be writeable by PHP.
    On a Windows system this generally is not a problem, but on Linux systems you will need to CHMOD these directories to 0777.
  • If you using Remote Authentication please keep your file (kbp_directory/admin/lib/custom/remote_auth.php) and copy it to new installation.
  • If you using language other then en please keep directory (kbp_directory/admin/lang/your_lang) and copy it to new installation.

Article ID: 170
Last updated: 21 Apr, 2011
Revision: 2
Views: 17763
Comments: 2
Print Export to PDF Subscribe Share Add comment
This article was:   Helpful | Not helpful
Comments
2 Comments

Prev   Next
Installing KBPublisher manually     Installing ionCube loader