Table of Contents

Upgrade

Upgrade is a process of upgrading Instant Update to latest available version. It is very similar as installation of Instant Update, but with upgrading we are trying to save old contents of website without need to convert website again and recreate your web pages, etc.

To upgrade your Instant Update version to latest version, you need to extract new Instant Update and upload it to your website as described here, overwriting all old files with new files, EXCEPT files connection.php and license.php. It is very important that you save these two files because first file holds MySQL information needed for Upgrade wizard to connect to database and upgrade MySQL database structure (if needed) and second file holds your license data. In case you lose your license data file, you'll need to contact us so we can renew it for you.

After that navigate to yourwebsite.com/manage and you will be redirected to installation wizard which will automatically detect your current version and start upgrade process.

From 2.0

To upgrade your Instant Update version from version 2.0 to latest version, you need to extract new Instant Update and upload it to your website as described here, overwriting all old files with new files, EXCEPT file connection.php. It is VERY important that you save your old connection.php file because this file holds MySQL information needed for Upgrade wizard to connect to database and upgrade MySQL database structure (if needed).

In case you've lost your old connection.php file, create blank new text file, name it connection.php and place it in your manage/ folder. Then copy and paste following code in it:

<?php
error_reporting(E_ERROR);
session_start();
 
$backpath = $_SERVER['DOCUMENT_ROOT'] . '/';
$db = "YOUR_DATABASE_NAME";
$db_users = "YOUR_DATABASE_USERS_TABLE_NAME";
$db_table = "YOUR_DATABASE_CONTENT_TABLE_NAME";
$host = "YOUR_DATABASE_HOST";
$user_name_on_host = "YOUR_DATABASE_USER_NAME";
$password_on_host = "YOUR_DATABASE_USER_PASSWORD";
 
# DON'T TOUCH BELOW! #
$dbcnx = @mysql_connect($host, $user_name_on_host, $password_on_host);
if (!$dbcnx) {
echo( "Critical error: Could not connect to MySQL server!" );
exit();
}
if (! @mysql_select_db($db, $dbcnx) ) {
echo( "Critical error: Could not select database $db!" );
exit();
}
 
mysql_query("SET NAMES utf8", $dbcnx);
mysql_query("SET CHARACTER SET utf8", $dbcnx);
mysql_query("SET COLLATION_CONNECTION='utf8_general_ci'", $dbcnx);
 
header("Content-Type: text/html; charset=UTF-8");
 
?>

Now, replace following strings with your MySQL data and save changes. In case you don't have required data, please contact your web host provider and ask them to give you MySQL data.

name meaning
YOUR_DATABASE_NAME Name of your database
YOUR_DATABASE_USERS_TABLE_NAME Name of table which holds users' data
YOUR_DATABASE_CONTENT_TABLE_NAME Name of table which holds website contents
YOUR_DATABASE_HOST MySQL host, usually localhost
YOUR_DATABASE_USER_NAME User name of your MySQL user
YOUR_DATABASE_USER_PASSWORD Password of your MySQL user

After that navigate to yourwebsite.com/manage and you will be redirected to installation wizard which will automatically detect your current version and start upgrade process.

:!: Note
There is a video tutorial available on this topic. You can view it here, if you want.

From 3.x

Data is not available because latest version of Instant Update is 3.0

 
install/upgrade.txt · Last modified: 2009/06/20 09:22 by avram
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki