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) »
  • "Could not create directory: /home/example/public_html/files" error
Pages: [1]

Author Topic: "Could not create directory: /home/example/public_html/files" error  (Read 5216 times)

Wonder95

  • Guest
"Could not create directory: /home/example/public_html/files" error
February 02, 2008, 03:44:42 pm
I had Drupal all set up and working fine at the domain root (i.e. www.example.com), but I need to move the entire thing under a subfolder (i.e. www/example.com/subfolder).  I moved everything and modified civicrm.settings.php:

Code: [Select]
$civicrm_root = '/home/example/public_html/subfolder/sites/all/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/example/public_html/subfolder/files/civicrm/templates_c/' );

define( 'CIVICRM_UF_BASEURL'      , 'http://members.campusfiresafety.org/members/' );

but when I try to go to the site, I get this error:

Code: [Select]
Error: Could not create directory: /home/campfire/public_html/files/
I wasn't sure if it was Drupal or CiviCRM, so I added the files directory to the root, and now I get this error:

Code: [Select]
Error: Could not create directory: /home/example/public_html/files/civicrm
so I know it's CiviCRM trying to create the directory.  Is there another setting that I need to modify somewhere?

Thanks.

Wonder95

  • Guest
Re: "Could not create directory: /home/example/public_html/files" error
February 02, 2008, 04:19:28 pm
Well, I thought I had figured out what I had to do.  I manually created the directories CiviCRM was trying to create (public_html/files/civicrm/upload) so I could at least get in.  Once I got into the CiviCRM admin area, I modified the paths in the Global Settings -> Directories area to include the new subfolder (i.e. /home/example/public_html/subfolder/files/civicrm/upload/), saved the changes, and then went back and deleted public_html/files (and everything under it).  All seemed fine, but in a couple of clicks, I got the same error again.  I re-created the directories, and when I went back in to the Directories page again, my new subfolder was missing from all of the paths.  I added it back in to all three paths, and it seems that I'm working okay now, but I'm leary of deleting public_html/files again.  Any thoughts?

Thanks.

matthewpetty

  • Guest
Re: "Could not create directory: /home/example/public_html/files" error
February 03, 2008, 10:23:06 pm
I need help solving this problem, too. In my case, I'm trying to synchronize data between my local installation and the live site. I've looked all over the database for a table where this data is stored, but I can't find it.

Where is it in the database? Or, is there a way to set these in the civicrm.settings.php file?

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: "Could not create directory: /home/example/public_html/files" error
February 04, 2008, 02:04:15 am

its in the civicrm_domain table under config_backend (which is stored in a serialized manner)

v2.0 has a hidden method to change directory paths for your case. I'll document it sooon (before final release)

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

matthewpetty

  • Guest
Re: "Could not create directory: /home/example/public_html/files" error
February 04, 2008, 09:07:19 am
Thanks, that worked great.

For everyone else: when moving my live database to my local installation, I replaced all of the database contents with the data from the live site, EXCEPT for config_backend in the civicrm_domain table.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • "Could not create directory: /home/example/public_html/files" error

This forum was archived on 2017-11-26.