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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • templates_c/en_US directory has been chown'ed to apache apache
Pages: [1]

Author Topic: templates_c/en_US directory has been chown'ed to apache apache  (Read 2358 times)

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
templates_c/en_US directory has been chown'ed to apache apache
November 18, 2007, 05:05:41 pm
Hi all,

I could use some advice regarding errors that have recently cropped up in a CiviCRM installation. I'm having a devil of a time letting CiviCRM write to the templates_c directories.

I get the expected errors like:

user warning: Smarty error: problem writing temporary file '/home/mbadiversity/public_html/application/files/civicrm/templates_c/en_US/wrt4740de38eb45b'

which usually mean I have templates_c mis-configured. So, I recursively chmod 775 /home/mbadiversity/public_html/application/files/civicrm/templates_c/en_US

That works for one operation, then the write errors return. When I check to see what happened, the /home/mbadiversity/public_html/application/files/civicrm/templates_c/en_US directory has been chown'ed to apache. I've never noticed that before, so it seemed odd. Anyway, it seems to be the reason CiviCRM can no longer create any new directories under /home/mbadiversity/public_html/application/files/civicrm/templates_c/en_US

Has anyone else seen something similar?

TIA

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
Re: templates_c/en_US directory has been chown'ed to apache apache
November 19, 2007, 07:15:58 am
I guess chown is a poor characterization of the issue. It now appears that CiviCRM (as apache) is deleting, then re-creating /home/mbadiversity/public_html /application /files /civicrm /templates_c /en_us. After it does, though. It can no longer write to it.

Can I control this in civicrm.settings.php?

This just popped up a few days ago for an installation that had been fine for months. Could something have changed in the file system that would affect this behavior?

TIA

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: templates_c/en_US directory has been chown'ed to apache apache
November 19, 2007, 10:00:22 am

civicrm does not delete directories EXCEPT when sent in the "directoryCleanup=1" option (and this was introduced so users would not have to struggle with web server permissioned files etc)

i would just give "777" permissions to the directory: /home/mbadiversity/public_html/application /files and then let civicrm take care of creating the sub dirs with the right permission etc. you might also want to check that the permission apache writes the files is good enough for it to read it also

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

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
Re: templates_c/en_US directory has been chown'ed to apache apache
November 19, 2007, 10:13:49 am
I should have mentioned that I've tried that. Even with everything below the files directory set to 777, templates_c gets reset to 755 with apache owner.

Where should I look for the directoryCleanup option?

TIA

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: templates_c/en_US directory has been chown'ed to apache apache
November 19, 2007, 10:25:11 am

http://wiki.civicrm.org/confluence/display/CRMDOC/Debug+Tools

If i had to guess the below is due to your apache umask settings. You might want to do a web search to figure out how to fix it

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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • templates_c/en_US directory has been chown'ed to apache apache

This forum was archived on 2017-11-26.