Maintenance:Upgrading to Newer Versions of Cerb5

From Cerberus Helpdesk Wiki

(Redirected from Upgrading to Newer Versions of Cerb5)
Jump to: navigation, search

Contents

  • 1 Introduction
  • 2 Preparation
    • 2.1 On Unix-based Servers
      • 2.1.1 Changing between stable and development (optional)
        • 2.1.1.1 To switch your files to the latest stable version
        • 2.1.1.2 To switch your files to a specific version
        • 2.1.1.3 To switch your files to the latest development version
      • 2.1.2 Viewing the ChangeLog
    • 2.2 On Windows-based Servers
  • 3 Finishing the Upgrade
    • 3.1 Permissions
      • 3.1.1 Unix-based servers:
      • 3.1.2 Windows-based servers:
    • 3.2 Database Patches
    • 3.3 Community Tools
    • 3.4 Install Directory
    • 3.5 Troubleshooting
      • 3.5.1 Linux Errors Caused by PHP File Permissions

Introduction

As of 5.6 the recommend upgrade path is using Git. Instructions are here

The officially supported way of upgrading Cerb5 is by using Subversion. Subversion is a version control system which will automatically update your helpdesk files to the latest version.

The major advantage of Subversion is that it will attempt to automatically merge official code changes with any customization you have done. It also gives you the ability to list all your local changes to any project files, and to revert to an official version when desirable.

On Unix-based servers you can check if Subversion is installed by typing:

svn --version

On Windows-based servers TortoiseSVN is your best option.

If SVN is not an option you can fall back on using the zipped build of Cerb5. How do you upgrade Cerb5 without SVN?

Preparation

On Unix-based Servers

Change to your cerb5/ directory and type:

svn update

Changing between stable and development (optional)

Note: You should not run the development builds in production. If you run a database patch from a development version it's possible you'll no longer be able to run the stable files until the next update.

To switch your files to the latest stable version
svn switch svn.webgroupmedia.com/cerb5/branches/stable/cerb5
To switch your files to a specific version
svn switch svn.webgroupmedia.com/cerb5/tags/5_5_2/
To switch your files to the latest development version
svn switch svn.webgroupmedia.com/cerb5/trunk/cerb5

Viewing the ChangeLog

svn log | more

On Windows-based Servers

spacer
spacer
Using TortoiseSVN to update Cerberus Helpdesk

TortoiseSVN integrates with your Windows GUI. To update Cerberus Helpdesk:

You should be shown a list of updated files and the new build versions for the project. Press the "OK" button when finished reading.


Finishing the Upgrade

Permissions

You should set file ownership and permissions again after updating your files using Subversion.

Unix-based servers:

From your cerb5/ directory at the console (replace www-data with your appropriate Apache user and group):

chown -R www-data:www-data .
chmod -R 0774 storage/

Permissions, especially on php files are a common upgrade issue. See Troubleshooting (below) for more details.

Windows-based servers:

Use Windows Explorer to set the appropriate write permissions on the /cerb5/storage directory for your IIS user.

Database Patches

Some Cerberus Helpdesk updates contain database changes which require a helpdesk administrator to finalize. This will prohibit all helpdesk activity (e.g., logins, scheduled tasks, mail parsing) to prevent any database corruption while you're between versions.

After your files are updated, attempt to log into your Cerb5 helpdesk instance as you normally would. If a database update is required Cerberus will automatically prompt you. Upon finalizing you should be able to log in and continue working.

Community Tools

Very rarely, the index.php file which drives your Community Tools may change during an upgrade.

How to tell if you need to update your Community Tool file:

define('SCRIPT_LAST_MODIFY', 2009070901); // last change

We're working on a way to make this check happen automatically.

Install Directory

A Subversion update will recover your cerb5/install directory. You need to delete this directory again, since it poses a security risk if left available.

Troubleshooting

If you opted for a "safe" upgrade by making a backup and moving your install to a different location, you may see a blank page or cache-related error in your browser when loading the Helpdesk. Try clearing the cache to fix this.

Occasionally you may want to force your plugins to reload after a simple update that doesn't patch the database and clear out the cache. Click 'Helpdesk Setup' and select the plugins tab to automatically reload them.

Linux Errors Caused by PHP File Permissions

When upgrading, SVN can change file permissions. When this happens, you may see several symptoms

If you are receiving the Internal Server Error page, check the permissions on index.php in your main Cerberus directory.

If you are receiving the Internal Server Error page or Cerberus fails to execute when links or buttons are clicked, check the file permissions on the php files (index.php in a Cerberus sub-directory, or other php file which starts the function).

PHP Permissions

File permissions are dependent on server setup and vary widely. Before proceding, if you have any questions about correct php file permissions, check the permissions on other browser accessible php files that are currently working or check with a server admin.

If PHP permissions are causing these errors, the permissions may be set to allow group or public writing to these files. Disallow writing to public and group. Then test your installation.

You can use CHMOD or an FTP client to set the permissions. With the exceptions noted in the upgrade procedure, all files within the Cerberus directory and sub-directories usually have the same permissions.

Retrieved from "wiki.cerb5.com/wiki/Maintenance:Upgrading_to_Newer_Versions_of_Cerb5"
Personal tools
Namespaces
  • Maintenance
  • Discussion
Variants
Views
  • Read
  • View source
  • View history
Actions
Navigation
  • Main Page
  • Recent changes
  • Random page
  • Help
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.