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) »
  • temporary folder for automated installer
Pages: [1]

Author Topic: temporary folder for automated installer  (Read 3257 times)

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
temporary folder for automated installer
August 23, 2007, 06:45:07 am
I am attempting to reinstall my CiviCRM system using the automated installer. I've got just about everything set, but I am getting an error saying the "temporary folder isn't writeable." (it's the last line under file permissions on the install page) My Drupal temp folder "tmp" is writeable. Is it looking for another folder? I can just create it and make it writeable if I know the path it is looking for.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: temporary folder for automated installer
August 23, 2007, 08:00:51 am
i think its trying to search files folder in drupal. Is it writable ..

kurund
Found this reply helpful? Support CiviCRM

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: temporary folder for automated installer
August 23, 2007, 08:11:48 am
The files folder is writeable (and is indicated as such a couple lines above in the status check). I'm including a screenshot that should help show what I'm talking




about.(http://www.nonprofitcongress.org/files/images/civi.png).

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: temporary folder for automated installer
August 23, 2007, 02:16:04 pm

From the installer code (which we 'borrowed' from SilverStripe CMS):

Code: [Select]
        if(!is_writeable(dirname(tempnam('adfadsfdas','')))) {
            $this->error(array("File permissions", "Is the temporary folder writeable?", "The temporary folder isn't writeable!"));
        }

I'm pretty sure that the quickform and php upload uses the above for temp storage of upload files. You will have to check with your host and/or the php manual on how to get around this / fix this

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

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: temporary folder for automated installer
August 27, 2007, 05:19:29 am
Would adding the directory paths to the error messages (i.e., which directory, server-wise, needs its permissions fixed) help mitigate problems with permissions?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: temporary folder for automated installer
August 27, 2007, 06:22:36 am
Definitely. For the time being, does this mean I need to create a directory called "adfadsfdas" somewhere with write permissions? If so, where do I create it?

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: temporary folder for automated installer
August 27, 2007, 12:47:30 pm

The code above checks if we can create a directory in the temp directory specified in php.ini

Check: http://au3.php.net/manual/en/function.tempnam.php

for more details. If we cannot, it means we cannot create temp files which might be an issue. hence the warning. You will need to check with your hosting provider how to get this working in your php install

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: temporary folder for automated installer
August 29, 2007, 10:54:22 am
ok, I think we've tracked down the issue. My host has just informed me that they have disabled write access to the server's /tmp folder for security reasons, so that's probably causing some problems. Is there any way that I can tell Civi to use the same /tmp folder that I use for my Drupal installation? If I can "redirect" where Civi tries to write the temp files, I think my problems will be solved.

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: temporary folder for automated installer
August 29, 2007, 12:03:35 pm

CiviCRM does not use that function (tempnam) directly, but a few PEAR packages that we use, call that function. Hence we cannot make the below change. You can do a grep and find the files in the packages directory and fix your install if needed

You can also try removing that check from the installer and see what part of CiviCRM fails. I'm not 100% sure that this part is used , so verifying it would be good

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

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: temporary folder for automated installer
August 30, 2007, 02:28:03 am
You can also ask your host how to adjust PHP settings for your install so that it uses a writable directory (e.g., somewhere in your home dir) instead of /tmp.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • temporary folder for automated installer

This forum was archived on 2017-11-26.