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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • File Ownership - Best Practices for Code Updates
Pages: [1]

Author Topic: File Ownership - Best Practices for Code Updates  (Read 977 times)

gbear

  • Guest
File Ownership - Best Practices for Code Updates
May 06, 2008, 09:16:28 pm
Hi -

I'm updating just a few things in our CiviCRM install - for instance changing the event dashboard.tpl, and Event.php code.  I'm running in a Drupal environment, and when I installed CiviCRM it made the file ownership user and group "33" 

Is there any issue with using chown on that to make it the user:group the same as my FTP - really just for ease of FTPing code updates.

Thanks
-Greg

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: File Ownership - Best Practices for Code Updates
May 08, 2008, 03:03:23 am

we do not change the file ownership / mode knowingly of any CiviCRM files. There are parts of the 'files' directory (templates_c) that is managed by Smarty. I think it creates files/directories as the http user. the 'files' directory needs to be readable/writable by the web

in 2.0 and prior, you should create and use a custom template directory for all your modifications.

in 2.1 we've also introduced a custom code directory where you can store modified copies of the code files

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • File Ownership - Best Practices for Code Updates

This forum was archived on 2017-11-26.