CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Quick upgrade guide?
Pages: [1]

Author Topic: Quick upgrade guide?  (Read 2084 times)

rogerco

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 5
Quick upgrade guide?
July 02, 2008, 12:38:18 am
It would be very useful to have a quick upgrade guide for a minor version revision posted here as a sticky topic. (Joomla and Drupal versions)

I guess that in principle there should be no database schema changes involved in revision (2.0.x -> 2.0.y) upgrades, or if there are they can be provided as a .sql script.

As far as I can see you have to download the whole package and reinstall from scratch - is this really correct? Would it not be possible just to make an upgrade package of all the changed and added files and copy those across the top of an existing installation. If necessary making database changes by importing a script into phpMyAdmin or whatever.

Maybe this is how it is done but I can't find any upgrade package files or instructions - can someone point me at an upgrading guide for minor increments. I have read the 'Upgrade Joomla Sites to 2.0' section in the docs but it seems OTT for a minor step. There is a section called 'Upgrading to a new CiviCRM Revision on Drupal' which implies you can simply overwrite the whole civicrm filespace but again it seems OTT to have to upload and unzip 7Mb plus, and what about the files that don't live in the administrator/components/com_civicrm/civicrm folder (the front end component files).

Immediate question - if I simply copy across all of the files with a later date than the previous version should that work?

RogerCO

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Quick upgrade guide?
July 02, 2008, 07:18:15 am
If you are currently on CiviCRM 2.0.0 or 2.0.1 you need to first follow this revision upgrade to 2.0.2: http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Joomla+2.0+Sites+to+2.0.2

Then, to get to the latest you need to follow the general Joomla upgrade to a new revision: http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+to+a+New+Revision+-+Joomla

And no, there is not any other recommended way to do it. You should follow the instructions above to ensure no errors.

After reading your post, it does make sense to have some upgrade info as a sticky on this forum. I've written the post and requested that a mod make it sticky here:http://forum.civicrm.org/index.php/topic,3854.0.html

Thanks for the suggestion!
« Last Edit: July 02, 2008, 07:20:39 am by emilyf »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Quick upgrade guide?
July 02, 2008, 11:52:52 am

hey roger:

yes, it is a bit OTT to upgrade on Joomla. However note the installs are done via the component installer and hence the file permissions / ownerships are on the web server, which makes it a bit difficult for folks to overwrite files.

In drupal all files are under one directory (civicrm) and hence overwriting works quite nicely without any changes. Our svn structure matches how drupal expects things to be laid out (it does not impose any constrains on directory layout)

joomla has files stored across different directory trees and does not match how we store things in svn. so a simple overwrite wont work

we change a fair number of files and just exposing a patch set seems more work to us, so it highly unlikely we'll start doing this. bandwidth is relatively cheap these days :)

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Quick upgrade guide?
July 02, 2008, 07:14:42 pm
Joomla-only ---

See this page: http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Joomla+2.0+Sites+to+2.0.2

Under main item 3 > Option 2: Overwrite Existing Codebase

Most of the time, you really only need to take the "civicrm" subfolder in the package and overwrite the same folder in administrator/components/com_civicrm/

However, if you do this, delete the civicrm.config.php file inside the package. That's the only file inside that directory that is a generated file. You want to retain the version on your existing installation.

No warrantees/guarantees... backup everything first.

On a side note, I seem to recall discussion about taking advantage of the "upgrade" option now available in Joomla 1.5 installations for future releases. It lets you install new component packages on top of existing ones, and control what happens with the db and files.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

windwalker

  • Guest
Re: Quick upgrade guide?
August 14, 2008, 08:55:42 pm
I downlaoded the 2.1 Alpha 3 and deleted the Alpha 2 installation on drupal 6.4
Somehow civicrm changed the ownership and I can not delete civicrm.settings.php

It did the same on the first upgrade, but since I was doing a 6.4 upgrade on Drupal I simple deleted both databases and both installs and started fresh with Drupal 6.4 and civicrm 2.1 Alpha 2. The upgrade to 2.1 Alpha 3 is a different story. I really don't want to install the entire site again.

Any suggesttion?

Is there any to chown these files at domain level or to creat this in the setup files?

Jim

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Quick upgrade guide?
August 15, 2008, 07:51:33 am
hi,

i think it's drupal that tries to change permissions on the settings files. anyway, can't you just do

Code: [Select]
chmod u=rw civicrm.settings.php
from shell? then you should be able to delete it.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Quick upgrade guide?

This forum was archived on 2017-11-26.