Roundcube Community Forum

Release Support => Release Discussion => Topic started by: toddr123 on August 16, 2007, 02:53:10 AM

Title: Identify RC Version for upgrade
Post by: toddr123 on August 16, 2007, 02:53:10 AM
I am running a way old Alpha version of RC I think..

How do I identify exactly what version I am running so I know the procedure to upgrade?

I installed the new version RC1 in a different directory and it works great, I now want to replace my old version with the new one by doing an upgrade. I want to upgrade so all user settings and address books will be intact.

Any advice would be appreciated.
Title: Re: Identify RC Version for upgrade
Post by: SKaero on August 16, 2007, 03:10:01 AM
Do you remember when you instated it? If not can you post the /program/include/main.inc file?
Title: Re: Identify RC Version for upgrade
Post by: toddr123 on August 16, 2007, 11:53:46 AM
I don't know when I installed it but here is the main.inc you requested.
Title: Re: Identify RC Version for upgrade
Post by: SKaero on August 16, 2007, 03:56:39 PM
You have version: 1.40 2006/02/05. Its between 0.1-20051021 and 0.1-beta your 2 versions before 0.1-beta.
Title: Re: Identify RC Version for upgrade
Post by: toddr123 on August 16, 2007, 04:23:05 PM
OK, thanks!

The instructions in the UPGRADING file are for specific versions, since mine isn't listed, which one should I follow?

Here is what the UPRADING file says:

######################
form version 0.1-beta
----------------------------------------
* replace index.php
* replace all files in folder /program/
* replace all files in folder /skins/default/
* run all commands in SQL/*.update.sql or re-initalize database with *.initial.sql
* add these line to /config/db.inc.php
 $rcmail_config['db_persistent'] = TRUE;
* add these lines to /config/main.inc.php
 $rcmail_config['drafts_mbox'] = 'Drafts';
 $rcmail_config['junk_mbox'] = 'Junk';
 $rcmail_config['product_name'] = 'RoundCube Webmail';
 $rcmail_config['read_when_deleted'] = TRUE;
 $rcmail_config['enable_spellcheck'] = TRUE;
 $rcmail_config['protect_default_folders'] = TRUE;
 $rcmail_config['draft_autosave'] = 300;
 $rcmail_config['date_today'] = 'H:i';
* replace the following line from /config/main.inc.php
  @include($_SERVER['HTTP_HOST'].'.inc.php');
 with
  $rcmail_config['include_host_config'] = TRUE;


from version 0.1-20051021
----------------------------------------
* replace index.php
* replace all files in folder /program/
* replace all files in folder /skins/default/
* run all commands in SQL/*.update-0.1a.sql or re-initalize database with *.initial.sql
* add these lines to /config/main.inc.php
 $rcmail_config['skip_deleted'] = FALSE;
 $rcmail_config['message_sort_col'] = 'date';
 $rcmail_config['message_sort_order'] = 'DESC';
 $rcmail_config['log_dir'] = 'logs/';
 $rcmail_config['temp_dir'] = 'temp/';
 $rcmail_config['message_cache_lifetime'] = '10d';
 $rcmail_config['drafts_mbox'] = 'Drafts';
 $rcmail_config['product_name'] = 'RoundCube Webmail';
 $rcmail_config['read_when_deleted'] = TRUE;
 $rcmail_config['enable_spellcheck'] = TRUE;
* add these lines to /config/db.inc.php
 $rcmail_config['db_max_length'] = 512000;
 $rcmail_config['db_sequence_user_ids'] = 'user_ids';
 $rcmail_config['db_sequence_identity_ids'] = 'identity_ids';
 $rcmail_config['db_sequence_contact_ids'] = 'contact_ids';
 $rcmail_config['db_sequence_cache_ids'] = 'cache_ids';
 $rcmail_config['db_sequence_message_ids'] = 'message_ids';
 $rcmail_config['db_persistent'] = TRUE;
Title: Re: Identify RC Version for upgrade
Post by: SKaero on August 16, 2007, 09:04:36 PM
Try and Follow the instruction from from version 0.1-beta, if something doesn't work then we will try to figure out what else needs to be changed. Remember to make a back up before updating.
Title: Re: Identify RC Version for upgrade
Post by: toddr123 on August 21, 2007, 03:02:35 AM
Didn't work so well, the SQL commands didn't work.. I worked through them but when I was done, there were tons of errors trying to us RC.

I just did a full install, then replaced the address book which appeared to have the same structure.

So, for the most part it's clean and they have not lost their address books.

I guess users may need to reset their time zone but other than that, all should be fine I think.
Title: Re: Identify RC Version for upgrade
Post by: SKaero on August 21, 2007, 05:36:21 AM
Do you have the error log it'd be great to try any see what when wrong, with the upgrade.
Title: Re: Identify RC Version for upgrade
Post by: toddr123 on August 21, 2007, 11:23:42 AM
Sorry, I guess I should have kept it all. I don't have anything from that attempt, I renamed the entire directory to _broke but deleted it later.

I can tell you that the SQL script for MySQL update didn't work, I kept getting index or unique errors with my data. I resolved the SQL issues by emptying my messages table which was not ideal of course. I just figured it was cached and would hurt anything.

I will try to keep better track next time.
Title: Re: Identify RC Version for upgrade
Post by: hardwired on October 26, 2007, 10:25:16 AM
Hi there,

I'm also one of the very early user thinking of upgrading, but don't think it is even beta version that I have, here is the line from main.irc :
 $Id: main.inc,v 1.16 2005/10/21 14:01:14 sparc Exp $

can this be upgraded?

Thanks!

Hardwired
Title: Re: Identify RC Version for upgrade
Post by: SKaero on October 26, 2007, 09:32:55 PM
Ok you have roundcube version: 0.1-20051021. Because of how old your version is what you will need to do is update to beta1 and then to RC2. If you need and help in doing this just post.
Title: Re: Identify RC Version for upgrade
Post by: hardwired on October 30, 2007, 12:53:46 AM
danke... works like a charm...
Title: Re: Identify RC Version for upgrade
Post by: Sergio on January 11, 2008, 11:41:33 AM
Hi,
first of all hello to all, I am new here and want your help with upgrading my installation of RC, if you don´t mind.

My main.inc shows the following:

 $Id: main.inc 429 2006-12-22 22:26:24Z thomasb $


So, what upgrade procedure do I need to do?

Thanks in advance.
Title: Re: Identify RC Version for upgrade
Post by: Sergio on January 12, 2008, 06:43:25 PM
I did the upgrade, I updated from rc1beta to rc2 and it worked.

Thanks.