Steps to upgrade
The upgrade process consists of the following steps:
Take GFI HelpDesk Offline
To prevent new data from being generated while you are upgrading, disable your helpdesk. You can create a temporary page to inform visitors.
To set up your placeholder page:
- Create a simple
.html
page calledindex.html
with a message explaining that your support site is temporarily unavailable. - Save your customized
index.html
file, and any image files it uses on your local machine. - Log onto your server and navigate to your GFI HelpDesk root directory.
- Upload your
index.html
file + images. - In the same folder, find the
index.php
file, which is your current support site homepage. - Rename
index.php
toindex_down.php
. This ensures that no one can access your helpdesk while you are updating. - Open up a browser window and navigate to your support site. The new index.html page is now seen.
Renaming the cron Folder
It is also recommend to rename your cron folder temporarily so that if you have a manual cron job set up, it does not ping your helpdesk during the upgrade.
To change the name of your cron folder:
- Navigate to your GFI HelpDesk root directory, and find a folder called cron.
- Rename this folder to cron_disabled. This prevents any manual cron jobs you have set up from firing while you run your backups.
Disable Your Email Queues
Disable your email queues, so you do not miss any incoming requests while GFI HelpDesk is offline.
- Log into the GFI HelpDesk admin control panel.
- On the menu sidebar, click Email Parser followed by Email Queues.
For queues using POP3Post Office Protocol 3 - A protocol used by local email clients to retrieve emails from mailboxes over a TCP/IP connection. or IMAPInternet Message Access Protocol - One of the two most commonly used Internet standard protocols for e-mail retrieval, the other being POP3.:
- Click the email address on the list.
- Under 'Email Queue Settings', next to Email Queue is Enabled select 'No'.
- Click Update.
- Any emails sent to these email addresses now simply accumulates in the email inboxes while GFI HelpDesk is offline.
For email queues using the Pipe method:
- Log into the mail server for the address being used to forward emails and disable mail forwarding while GFI HelpDesk is offline.
- You can then follow the instructions above to disable the queue within GFI HelpDesk.
Back up your templates
Next, yCreate a backup of any templates you've modified in GFI HelpDesk so you can import them into your updated helpdesk.
To back up your templates:
- Go back to the GFI HelpDesk administrative control panel.
- On the menu sidebar, go to Templates > Import/Export.
- Next to Export Type, make sure Export all templates is selected.
- Click Export XML and save your backup to your ‘[GFI HelpDesk_backup]’ folder.
Back up any language support files that is modified.
If you haven’t customized any language packs, you can skip this section.
To create backups of your language packs:
- Go back to the GFI HelpDesk administrative control panel.
- On the menu sidebar, go to Languages > Import/Export.
- Next to Language to Export, select a language you have made modifications to, and click the Export XML button in the top menu.
- Save the XML file to your ‘[GFI HelpDesk_backup]’ folder.
- If you’ve modified other language packs, repeat the same procedure for each additional language.
Back up your file attachments and GeoIP folder
Next, make a copy of two folders that store important information for your helpdesk:
- Using a file manager or the command line, log into your server and navigate to the GFI HelpDesk root directory.
- Open the '
__swift
' directory, and find the 'files' and the 'geoip
' directories. - Make a compressed archive of each of them and name them 'files_backup' and 'geoip_backup' respectively.
- Save the archives to your ‘[GFI HelpDesk_backup]’ folder.
Make a complete database backup
You can make a complete backup of your GFI HelpDesk database, just in case something goes wrong during the upgrade process.
- We recommend you use the command line to make your database backup, so pull up a terminal window and log into your server.
- Run the following command, filling in your details for each [placeholder], to save a local backup of your GFI HelpDesk database:
- On Windows Environments: mysqldump --databases [your database name] --user=root --password=[your password] > [filepath for your [GFI HelpDesk_backup] directory] \dump.sqlNOTE:
If you try to run this command and it tells you the program cannot be found, you’ll need to navigate to the directory where the MySQL dump tool has been installed and run it again, usually ‘C:\”Program Files"\MySQL\"MySQL Server 5.5"\bin\mysqldump’.
- On Linux Environments: mysqldump -u [your username] -p[your password] [your database name] > [filepath for your [GFI HelpDesk_backup] directory] /dump.sqlNOTE:
If you try to run this command and it tells you the program cannot be found, you’ll need to navigate to the directory where the MySQL dump tool has been installed and run it again. You can get there by typing ‘which mysqldump’ and then navigating to the path the command returns.
- Go to the target directory you specified, and check to make sure the
dump.sql
file has been created successfully.
For information on downgrading, see Downgrading from Fusion to Case.
Your next task is to get the new product files up and configured on your web server, and then run the upgrade script.
Downloading, unpacking, and uploading the product files
Your next step is to download the product files, extract them on your local machine, and upload them from there to your server:
- Log into my.GFI HelpDesk.com and click on the arrow under 'My Orders' to see your product details:
- Here you can see all of the details of your license including a link to the product files:
- Click the link to the product and save the file to your machine.
- Extract the package locally.
- The extracted folder contains a sub-folder named 'upload', which contains all your helpdesk files.
- Using either the command line or an FTP client of your choice, upload all of the files from the 'upload' folder into the folder on your web server that you use to store your helpdesk.
If you are using an FTP client, make sure upload is done using binary mode.
Uploading your file attachments and GeoIP directories
The product files you uploaded come with empty directories for your 'files' and 'geoip' folders. Add your backed up data to those folders.
- Upload the archives of the 'files' and 'geoip' directories from your '[GFI HelpDesk_backup]' folder into the '__swift' directory on your server.
- Extract the archives.
- Copy the contents of 'files_backup' into 'files' and 'geoip_backup' into 'geoip'.
- Delete the archives and the empty '_backup' folders from your server.
Reconfiguring your helpdesk files
There are a few configuration steps for your product files before you run the upgrade script.
Rename 'config.php.new'
To avoid accidental overwriting of any existing 'config.php' files, the '__swift/config/' directory comes default with a files called 'config.php.new'. Provided you do not have any conflicting 'config.php' files, you must rename this file to 'config.php' before continuing.
Edit 'config.php'
The 'config.php' file must be manually edited to match the configuration of your helpdesk's database connection.
The following variables in this file need to be edited:
- $_DB["hostname"] – Needs to be set to the hostname of your GFI HelpDesk database.
- $_DB["username"] – Needs to be set to the username of your GFI HelpDesk database admin user.
- $_DB["password"] – Needs to be set to your database user's password.
- $_DB["name"] - Needs to be set to the name of your GFI HelpDesk database.
Here's an example of what the database details in your 'config.php' file should look like:
/**
* DATABASE HOSTNAME
*/
define('DB_HOSTNAME','localhost');
/**
* DATABASE USERNAME
*/
define('DB_USERNAME','gfihelpdesk_user');
/**
* DATABASE PASSWORD
*/
define('DB_PASSWORD','enter password of your choice');
/**
* DATABASE NAME
*/
define('DB_NAME','gfihelpdesk');
The rest of the settings in config.php should be left unchanged unless you are very familiar with the system.
After editing config.php
, save it.
Upload 'key.php'
In order to activate the product, download the key.php file corresponding to your registered domain from https://accounts.gfi.com/ and upload it to the root folder in which the rest of the helpdesk files have been uploaded.
Set file permissions
GFI HelpDesk needs write permissions, recursively, for five directories:
__swift/*.*
__swift/cache
__swift/geoip
__swift/logs
__apps
Please choose the section below that corresponds to your operating system if you are unfamiliar with changing permissions on directories.
It is usually possible to change directory permissions using an FTP client, but that is out of the scope of this document. Please consult your FTP client's documentation to learn how to change a directory's permissions using that tool.
Unix-based servers:
On a Unix-based system, use the 'chmod' command to set permissions to '777' on the aforementioned directories:
- Run the command from within the
__swift
directory:chmod -Rf 777 files cache geoip logs
- Run the command from within the GFI HelpDesk root directory:
chmod -Rf 777 __apps
Windows-based servers:
You have to make two adjustments if you are running GFI HelpDesk on a Windows-based server:
- First, in the 'php.ini' file, set the
upload_tmp_dir
to 'C:\Windows\TEMP'. - Open up your 'php.ini' file, search for
upload_tmp_dir
and make sure it looks like this: - Second, set some specific folder permissions for Microsoft's IIS. For the user account of the application pool being used for GFI HelpDesk, grant full permissions to the following folders:
upload_tmp_dir = C:\Windows\TEMP
- files
- cache
- geoip
- logs
- __apps
- C:\Windows\TEMP
Mostly, the user account to be assigned is 'IUSR', unless your application pool accounts are modified. For details, refer to the IIS documentation.
Running the upgrade script
Whether you are upgrading your existing instance or downgrading from Fusion, run GFI HelpDesk's upgrade script to make sure you are using the latest version of the product.
To run the upgrade script:
- Open up your browser and go to your GFI HelpDesk checklist.php. For example https://www.yourdomain.com/support/checklist.php.
- Ensure that there are no errors / warnings prior to proceeding with the installation (by clicking Install GFI HelpDesk).
- Review the license terms, and click Agree.
- The setup utility checks to make sure your server meets all the requirements.
- When it is done, click Next to start the upgrade. NOTE:
The automated portion of the setup script may take quite some time. Do not interrupt it for any reason else your installation can be corrupted and you have to start over.
Once the upgrade is complete, a success screen is displayed, and you are ready to start reactivating your helpdesk.
Re-enabling your email queues
The first thing to do, once the upgrade process is complete, is to capture any emails that came in while your helpdesk was unavailable. From there, you can re-enable all your queues so everything starts flowing again.
To re-enable your email queues:
- Collect any emails from while you were away. Log in to the Admin Control Panel.
- On the menu sidebar, click Email Parser followed by Email Queues.
- Make a list of the queues you have set up to use the Pipe method. NOTE:
You are going to use POP3 to go collect any missed emails, but then you can set your queues back to using the Pipe method if you prefer.
- For all of your queues, regardless of mailbox type:
- Click the email address on the list.
- Next to Mailbox Type select POP3.
- Next to Email Queue is Enabled select Yes.
- Click the Update button.
- Repeat the steps above for all of your queues.
- Next, we’re going to schedule a custom task to force GFI HelpDesk to fetch your emails:
- Over on the menu sidebar, click Scheduled Tasks followed by Manage.
- Scroll down and find Fetch emails (POP3/IMAP) on the list and click the checkbox.
- At the top of the page, click the Execute button to run the task.
- Now that you have pulled in any messages you missed, you can reset your Pipe queues:
- Log into the mail server of the address you are using to forward emails and re-enable mail forwarding to your support address.
- Come back to the admin control panel and select the address from the list.
- Next to Mailbox Type select Pipe.
- Click the Update button.
- Repeat the steps above for any other Pipe queues.
Restoring your templates
Your next step is to restore any templates that you'd modified prior to the update.
If you did not modify or back up any of your templates, skip this section.
Restoring your template modifications from your backups takes a few steps. Follow the instructions in the article: Managing Your Template Modifications to reimplement your template modifications.
Importing your language packs
If you created backups for your modified language packs, they’re next on the import list.
If you did not modify or back up any of your language packs, skip this section.
To import your customized language packs:
- Still in the admin control panel, from the menu sidebar, click Languages followed by Import/Export.
- Select Import at the top of the page.
- Next to Template Group XML File, click the Choose File button.
- Navigate to your [GFI HelpDesk_backup] folder, select the language backup you created, and click the Open button.
- Click the Import button at the top of the page to finish the import.
- If you’ve modified other language packs, repeat the same procedure for each additional language.
Remove your placeholder page and 'cron_disabled' directory
Now that everything's up and running again in the background, it's time to take down the placeholder page you put up to divert people away from your Support Center. You can also remove the 'cron_disabled' folder, as a new 'cron' folder is created when uploading the product files.
To take down the placeholder page:
- Go to your GFI HelpDesk root directory.
- Delete the 'index.html' page you put up at the beginning of this process.
- Rename 'index_down.php' back to 'index.php'.
- Delete the 'cron_disabled' folder.
- Visit your support URLUniform Resource Locator is the address of a web page on the world wide web. – you should see your GFI HelpDesk Support Center.
Last step! Rebuild support desk cache
Rebuild your cache to make sure your desk is not hanging onto any outdated data that could interfere with things. There are two steps for this:
- On your web server, go to the
__swift/cache/
directory and delete everything.NOTE:These are temp files and are replaced as soon as you complete step 2, below.
- In the GFI HelpDesk admin control panel, click Diagnostics and then Rebuild Cache in the sidebar.