I have a working installation of RC v0.2.2 on my Linux server. I would love to upgrade to the latest v0.3-stable however I would like to know how I can perform the upgrade without and loss of data. If I do a fresh install, I would think that the installer would wipe all my MySQL database tables and data...which would be bad. Can someone please explain to me the process of upgrading from my current version to the latest version on my server? I searched the Wiki and only found "fresh install" instructions.
Thanks for any help!
To upgrade:
1. Replace index.php and all files in
- ./bin/
- ./SQL/
- ./program/
- ./installer/
- ./skins/default/
- ./plugins/
2. Run ./bin/update.sh from the commandline OR
open http://url-to-roundcube/installer/ in a browser. To enable
the latter one, you have to temporary set 'enable_installer' to true
in your local config/main.inc.php file.
3. Let the update script/installer check your configuration and
update your config files as suggested by the updater.
4. If suggested by the update script, run all commands in
./SQL/[yourdbtype].update.sql that are superscribed with the
currently installed version number.
5. Make sure 'enable_installer' is set to false again.
6. Check .htaccess settings (some php settings could become required)
I am on step 2.
ham:/var/www/webmail/bin# sh update.sh
update.sh: line 2: ?php: No such file or directory
update.sh: line 3: syntax error near unexpected token `!='
update.sh: line 3: `if (php_sapi_name() != 'cli') {'
I don't know what is wrong but should I simply just use the alternate method?
update.sh should be in your
QuoteRC root/bin/
folder, check that its there and that you have the right path. If that doesn't work use the alternate method.
Yes - the update.sh file is there however the error I posted was the error I got when I ran the script.
Odd place for a error, I will look into it, in the mean time try the alternate method.