This question about Configuration: Answered

System temporary directory


at the Configuration page under "Web Server Environment" Foswiki tells me the following error:

Error : No writable system temporary directory.

Which directory is meant by the error message above?

Best Regards, Mo

What OS are you running your server on?

Are you really running 1.1.1? You should consider an upgrade to 1.1.2 ASAP. There were some very important security fixes in 1.1.2.

Other than the error in configure, is your site working okay?

-- GeorgeClark - 12 Jan 2011

The server runs on openSuse 11.2

I will upgrade Foswiki before going live, at the moment we're on a testing stage.

The site is working okay, except installation of plugins. This fails, because he can't unpack the tar files from the temporary location.

-- MoSchu - 12 Jan 2011

Foswiki generally uses the perl function File::Temp for creating and locating temporary files. Configure verifies that File::Spec->tmpdir(); points to a valid writable location, and if it's not available also tries the "current directory". I'm not sure why these locations might not be writable. Check to make sure that your web server user can write to the system /tmp directory, or wherever File::Spec->tmpdir(); points to on your system. You can run the following to check:

perl -e 'use File::Spec; print "TEMPDIR ". File::Spec->tmpdir() ."\n";'
-- GeorgeClark - 12 Jan 2011

Your command pointed to /tmp.

I changed the owner of temp to wwwrun, now things look okay. Before, root was owner.

Thank you.

-- MoSchu - 13 Jan 2011

QuestionForm edit

Subject Configuration
Version Foswiki 1.1.1
Status Answered
Topic revision: r5 - 13 Jan 2011, MoSchu - This page was cached on 12 Jan 2018 - 19:00.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License