AnsweredAssumed Answered

Permission problem - files created in limited permissions

Question asked by Asaf Army on Feb 3, 2014
Latest reply on Sep 12, 2014 by gmcdonald gmcdonald

The problem is that after each rebuild, a file is created in the cache folder with limited permissions 660 and makes the whole crm fail.
The file is cache/modules/Emails/language/he_il.lang.php, so although the cache folder has full permission (777), the file is created with limited permissions (660) and i get the error:

 

 

Warning: 
require(/var/www/html/sugarcrmmaintest/cache/modules/Emails/language/he_il.lang.php):
  failed to open stream: Permission denied in 
/var/www/html/sugarcrmmaintest/include/SugarObjects/LanguageManager.php 
on line 253

 

Fatal error: require(): Failed opening required 
'cache/modules/Emails/language/he_il.lang.php' 
(include_path='/var/www/html/sugarcrmmaintest:/var/www/html/sugarcrmmaintest/include/..:.:/usr/share/pear:/usr/share/php')
  in 
/var/www/html/sugarcrmmaintest/include/SugarObjects/LanguageManager.php 
on line 253


is this a SugarCRM bug or a server configuration bug?
who is responsible of automatically creating the new file with its parent folder permissions so there won't be trouble? and how do i fix this?

 

Outcomes