jpablobr.com

→ movable type tempdir

More on: movable type, Mon Oct 07 23:40:17 -0600 2008

The default value for TempDir configuration directive is /tmp/, which is the default temporary directory on a Linux server. The presence of this error indicates that Movable Type is not able to locate or write to the /tmp/ directory on your server.  Most Windows servers do not actually have a \tmp directory (which would actually be C:\tmp or D:\tmp), so any script that tries to create or access a file in such a directory would fail with an error.

So, there are a couple of things you will need to check - first, see if you *do* have a /tmp/ directory, and if so, determine its location, and ensure it is writable (and accessible to you), CHMOD 777 (or 755 if running under suexec or cgiwrap), or the equivalent if on Windows[2]. Once you have done this, you may need to add (or update) the TempDir configuration[1] directive to your mt-config.cgi configuration file to point to the correct location of the directory, using the full server path, for

example:

TempDir D:\Inetpub\www\tmp (if on a windows server)

If no directory exists (or you wish to create a new one within your Movable Type installation directory, for example), you will need to create a directory, and ensure that it is writable, and set TempDir accordingly with the path to that directory (the directory can be named anything, as long as the TempDir directive points to the correct location and name).

blog comments powered by Disqus