Upgrading
From Site Foundry
This is reasonably hard process, and shouldn't really be undertaken unless you're ok with changing permissions, uploading files etc. We recommend keeping a backup of files so that you can roll things back if you require.
Before you proceed with this process, make sure that you have the right version of PHP and MySQL installed on your server.
Step one - download and extract the zip archive
Download the latest zip archive of the Site Foundry software, and unzip the file into a location that you can easily upload to your live server from. This will indicate the version number on the unzipped folder, which you can compare to your site list in the account manager on the Site Foundry website.
Step two - upload new management folder
We find it best to delete the management folder on the server first, then upload the latest management folder from the download zip archive. There is nothing configurable in here, so there's no fear of overwriting anything.
You will then want to make sure that the following folders have 0777 permissions:
/management/templates_c /management/install/reports
Step three - run the install update
Navigate to the normal management login for your site, but add on install at the tail of the URI, like:
www.domain.com/management/install
This will make sure that any table additions are carried out. Any errors will be fed back to you above the normal Site Foundry login area. If you notice a bunch of chmod warnings - this is to do with legacy image checks, and helps us debug some odd errors that have shown up in the past. As long as you can log in as normal with no errors, all is well.
Step four - run app function updates
Log into the management section of the app as normal, and navigate to each section in turn (template manager, manage media, manage menus, manage pages, manage admins and site features) using the top menu. This will make sure that any updates are made to databases and file structures.
Step five - upload frontEnd class and image process files
Upload all files over the top of the files contained in:
/classes /images/process
The quantity of files in here has changed over time, so just make sure it's the same as the latest version.
Step six - upload core modules
This is a bit trickier, as there are specific folders and files to do, but nothing too drastic. Upload the following:
/modules/menus/* /modules/pages/backend.class.php /modules/pages/frontend.class.php /modules/pages/templates/backend.tpl
There's nothing else to do regarding modules now.
Step seven - upload config, and index files
Upload the following files:
/non_public/configuration.inc.php index.php
Step eight - Possible changes
The other place to check are the the files contained in:
/templates
These have changed over time, but as long as you are upgrading from at least version 2.3 - then it's not too bad. The biggest change will be to the staging template (stage.tpl) and the header template (header.tpl). Just copy the staging template over what's on your server. Regarding the header template, just make sure that all the SEO meta lines are at the top of the file, as this is a customisable file, it's best to make the changes by hand.
Sometimes the XML templates will be missing. It's important to copy these over too.
For Site Features to work, access is required to the dumps folder in:
/non_public
If you change the permissions to 0777, and refresh the Site Features page, this will create the dumps folder. It's then ok to set the non_public folder back to something better like 0755. If the dumps folder is already there, delete it, and refresh the Site Features page - this will recreate the folder with permissions PHP can write too.
If Site Features still doesn't work, check to see that the following folder exists:
/extras/phpmailer
If it doesn't, copy it to your sever from the installation files.
In later version an FLV player was added - so it's good to check that this is in place at:
/images/flash_player
This will mean that you can link an FLV file to content and it will be played automatically.
Step nine - QED
If everything is working, the process above will have upgraded your installation. Congratulations.

