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) »
  • Problem with template_c directory ownership and permissions
Pages: [1]

Author Topic: Problem with template_c directory ownership and permissions  (Read 940 times)

kcommins

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Problem with template_c directory ownership and permissions
March 14, 2012, 04:22:27 pm
Joomla 1.5.23
CiviCRM 3.3.5

CiviCRM normally created directories in templace_c/EN_US using the Joomla FTP layer with 0751 permissions so these dirs are owned by the site owner.

Recently, it started creating these directories, %%AC, owned by 'apache' and with 0751 permissions. It would appear that CiviCRM then tries to create sub-directories again using the FTP layer but of course that won't work. Then get lots of Smarty errors.

A week ago, I updated 'MobileJoomla'. Since then this strange behavior started.

The @mkdir calls should use 0777 permissions but I get 0751.

No changes have been made to any CiviCRM files.

Anyone got any ideas?

Thanks

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: Problem with template_c directory ownership and permissions
March 14, 2012, 09:16:10 pm

i'm pretty sure civi has not used the joomla ftp layer to create directories. We just use the mkdir system call in PHP and allow the permissions as set by the parent process

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

kcommins

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: Problem with template_c directory ownership and permissions
March 15, 2012, 12:51:46 pm
Thanks :)

That was a vital clue...

Apparently the site was running as CGI and was switched to Apache mode leading to the premission problems.

Kieran


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Problem with template_c directory ownership and permissions

This forum was archived on 2017-11-26.