Answers.Body: <p>Just don't use WPEng hosting for civicrm.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-20T22:33:02.183Z
Answers.LastActivityDate: 2023-06-20T22:33:02.183Z
Answers.UserDisplayName: Stoycho
Body: <p>Has someone tried it? On a 1st try I've noticed extensions stop working.
  For example if I set define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/tmp/civicrm/templates_c/'); would it work? (instead of ABSPATH.'wp-content/uploads/civicrm/templates_c/)
  I need it for a civicrm install under WPEng hosting where they do not allow php script to write into another php script within wordpress. Hence re-generating the templates_c files is a problem.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-22T01:01:03.057Z
Comments.Text: If they're restrictive they may also have php's open_basedir set that might not allow access to /tmp. In any case the web server (apache or wwwrun or whatever user) would need write access to that folder, so check that too.
Comments.UserDisplayName: Demerit
Tags: <wordpress><templates><cache>
Title: is it possible civicrm templates_c files to be stored under the server /tmp folder?
ThreadText: # is it possible civicrm templates_c files to be stored under the server /tmp folder?
  
  (Asked by: username_0 on 2019-03-22)
  
  Has someone tried it? On a 1st try I've noticed extensions stop working.
  For example if I set define( 'CIVICRM\_TEMPLATE\_COMPILEDIR', '/tmp/civicrm/templates\_c/'); would it work? (instead of ABSPATH.'wp-content/uploads/civicrm/templates\_c/)
  I need it for a civicrm install under WPEng hosting where they do not allow php script to write into another php script within wordpress. Hence re-generating the templates\_c files is a problem.
  
  **Tags:** wordpress, templates, cache
  
  > **Comments:**
  > **username_1**: If they're restrictive they may also have php's open_basedir set that might not allow access to /tmp. In any case the web server (apache or wwwrun or whatever user) would need write access to that folder, so check that too.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-06-20. Score: 1 | Accepted answer
  
  Just don't use WPEng hosting for civicrm.
  
  
  ---
  
  