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 »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Folder Permissions Errors During Upgrade
Pages: [1]

Author Topic: Folder Permissions Errors During Upgrade  (Read 813 times)

jobewan

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 0
Folder Permissions Errors During Upgrade
August 04, 2009, 04:39:32 am
Hello,

While running the CiviCRM upgrade script on my 1and1 VPS III hosting account, a number of new folders/directories are [apparently] generated.

Any number of the those folders will have different owners - often times, Apache will be the owner of the folder, which is very strange, while making it impossible to complete the upgrade process as a result of the permissions errors that follow.

Has anyone ever heard of such a thing?

Attempting to upgrade to CiviCRM 2.2.7 from 2.0.6
Drupal has already been upgraded to 6.13 from 5.7
PHP has already been upgraded to 5.2.9 from 5.1.6
MySQL is 5.0.83
Logged into Drupal as "admin" while running the CiviCRM upgrade script

As always, thank you in advance for any insights.

-J

rvanderh

  • Guest
Re: Folder Permissions Errors During Upgrade
August 04, 2009, 07:15:34 am
Hi,

Quote from: jobewan on August 04, 2009, 04:39:32 am
While running the CiviCRM upgrade script on my 1and1 VPS III hosting account, a number of new folders/directories are [apparently] generated.

Any number of the those folders will have different owners - often times, Apache will be the owner of the folder, which is very strange, while making it impossible to complete the upgrade process as a result of the permissions errors that follow.

Has anyone ever heard of such a thing?
Yes, sounds familiar. I used to have providers in which files uploaded via ftp had user 'ftp-user' and files generated by the webprogram had user 'apache'. Very anoying, especially if you want to delete your whole website via ftp. But I don't understand why files with user 'apache' should not be allowed to complete the upgrade process, I expect such behaviour with files of user 'ftp-user'.

Best regards, Rik

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Folder Permissions Errors During Upgrade
August 04, 2009, 10:04:49 am
do you have SSH access and root access with your VPS host?

If so consider prior to the upgrade:

chown -R your_ftp_user civicrm
chgrp -R apache_user civicrm
chmod -R 775 civicrm

This should allow a smooth upgrade.

After the upgrade, run the same 3 commands again
Try CiviTeacher: the online video tutorial CiviCRM learning library.

jobewan

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 0
Re: Folder Permissions Errors During Upgrade
August 04, 2009, 10:26:07 am
MANY thanks to rvanderh and Stoob for the feedback - collectively, it suggests a short term course of action to pursue, and seems on track.  Really 'ppreciate it!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Folder Permissions Errors During Upgrade

This forum was archived on 2017-11-26.