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) »
  • The temporary folder isn't writeable!
Pages: [1]

Author Topic: The temporary folder isn't writeable!  (Read 6938 times)

volmark

  • I post occasionally
  • **
  • Posts: 81
  • Karma: -6
The temporary folder isn't writeable!
December 10, 2007, 10:01:29 pm
I’m trying to install CiviCRM 1.9 on Drupal using web-based Automated Installer. The only installation error I’ve got is “Is the temporary folder writeable? | The temporary folder isn't writeable!” but I can’t spring it over.  ???

My site placed on hosting provider and I don’t have direct access to system shell.  :-[

Any ideas on how to fix it?

thanks!
« Last Edit: December 10, 2007, 10:03:21 pm by volmark »

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: The temporary folder isn't writeable!
December 11, 2007, 12:40:13 am
Surely you could do this with an FTP client?

volmark

  • I post occasionally
  • **
  • Posts: 81
  • Karma: -6
Re: The temporary folder isn't writeable!
December 11, 2007, 02:50:43 am
Yes, I can, but I would like to install that automatically. If I will not be able to find out with Automated Installer I will need to do it manually, but it’s not the best solution and by the way time consuming. 

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: The temporary folder isn't writeable!
December 11, 2007, 02:53:22 am
sorry, I meant can't you chmod the temp folder via FTP.

volmark

  • I post occasionally
  • **
  • Posts: 81
  • Karma: -6
Re: The temporary folder isn't writeable!
December 11, 2007, 12:24:39 pm
I can easily change file permissions via FTP if you tall me where the wished folder is situated. I’ve used some hours searching different strings throw PHP code, but I couldn’t find out where this magical folder is placed. :o(  I wonder, why developers hold this secretly for them self.
BR

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: The temporary folder isn't writeable!
December 11, 2007, 02:17:36 pm

the temp field is typically a system thing and something that civicrm does not know / control. On Unix systems this is typically /tmp. Not sure what the behavior is if safe mode or other php features are turned on

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

volmark

  • I post occasionally
  • **
  • Posts: 81
  • Karma: -6
Re: The temporary folder isn't writeable!
December 11, 2007, 06:08:03 pm
Thanks for reply. It’s nice to hear, that I don’t have control over installation. My hosting provider surely turned safe mode on (I have checked with phpinfo()) and it’s typical setting for the most of them.
I just wonder why developers couldn’t predict and fix such uncomplicated problem.
I like CiviCRM and would like to enjoy smooth and clean installation and drift.
Is there any idea how to fix the problem???   

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: The temporary folder isn't writeable!
January 16, 2008, 11:38:07 am
So I guess there still isn't a solution for this problem. I want to install it too... but unfortunately I can't get past the tmp error too!!

the message

Warning: is_writeable() [function.is-writeable]: open_basedir restriction in effect. File(/var/tmp) is not within the allowed path(s): (/home/deb7651/:/tmp:/usr/local/lib/php/) in /usr/home/deb7651/domains/davidia.nl/public_html/kyudo/sites/all/modules/civicrm/drupal/install/index.php on line 208

And that's too bad...

volmark

  • I post occasionally
  • **
  • Posts: 81
  • Karma: -6
Re: The temporary folder isn't writeable!
January 16, 2008, 12:49:54 pm
Try Joomla insted of Drupal. I have posted some solutions to Joomla, search after .... I couldn't get to work it on Drupal :o(

cpelham

  • Guest
Re: The temporary folder isn't writeable!
February 03, 2008, 11:44:17 am
I'm trying to install CiviCRM 1.9 over Drupal 5.6 locally on a Mac OS X 10.5.1 machine with MAMP. I have them running fine on Dreamhost but I want a local development install to experiment with. However, I, too, continue to get the temporary folder isn't writeable error. I checked my local php.ini in MAMP and it is not running in safe mode. There is no open_basedir restriction. I have made every folder and file in MAMP chmod 777. I have looked at my machine's /tmp folder and subfolders... I cannot find any permissions deficiency anywhere! MAMP's php.ini lists the tmp folder as MAMP/tmp/php and that folder's permissions are 777.

So...what other tmp folder do I need to check or create? I am stumped.

cpelham

  • Guest
Re: The temporary folder isn't writeable!
February 03, 2008, 06:50:27 pm
Update...I started all over on my local machine, installing clean copies of Drupal and CiviCRM and then importing my databases and it's working fine so I guess I don't have to install with the installer script so problem averted rather than solved I guess...

thomast

  • Guest
Re: The temporary folder isn't writeable!
February 08, 2008, 09:06:41 pm
I am having this same problem.

I do have shell access - how can I discover the actual path of the temporary folder? Can the temp directory be altered with a local php.ini?

This is the code that's checking things out I guess:

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


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: The temporary folder isn't writeable!
February 09, 2008, 12:24:32 pm

the location of the tmp folder is defined in your php.ini file. You should check that file and/or with your hosting provider

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

thomast

  • Guest
Re: The temporary folder isn't writeable!
February 10, 2008, 12:57:28 pm
Is the writeability test of the tmp directory that the install script run done because the install script writes to the tmp directory, or because CivCRM needs to do so on a regular basis once installed?

ie, could I go through the install script and change all the instances of writing to the temp directory to write to a folder within the open_basedir paths, and then expect that CiviCRM would run well once installed?

I'm not even sure that I could easily accomplish that change, though I took a quick look through the /install/install.php and install/civicrm.php files and couldn't immediately see where a writeable temp was required. Is it perhaps a vestigial requirement of the SilverStripe installer upon which the CiviCRM installer is based?

-thomas

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: The temporary folder isn't writeable!
February 10, 2008, 01:28:58 pm

I took another look at the code and it seems to be a vestigeal requirement from the silverstripe installer.

I've eliminated those lines of code from the 2.0 version, and hence we'll no longer perform the check. We always use a directory when we call the php function tempnam.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • The temporary folder isn't writeable!

This forum was archived on 2017-11-26.