Drupal and Windows?!

Events happening in the community are now at Drupal community events on www.drupal.org.
littlecoding's picture

Have been handed the task of doing some work on a Drupal site that is bing hosted on a Windows box and I can see that the temp directory in the Drupal install is setup with a Linux system in mind. What is the best practice for the temp directory when using IIS? All the Durpal.org documentation says is to not have it web accessible.

Comments

That's really about it.

dalin's picture

That's really about it. Drupal will clean-up its temporary files, depending on the type either instantaneously, or on cron. If you want to put the temp files in the same place as everything else does, I think you can set it to %TEMP%

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

How about location? I keep

littlecoding's picture

How about location?

I keep seeing tutorials for this type of setup with the temp directory as "sites/default/files/tmp", but that is in a web accessible area and would not follow Drupal's best practices.

Yikes, even shared hosting

dalin's picture

Yikes, even shared hosting environments that I've seen give you a tmp folder outside of the web root.
echo %TEMP%
should give you what you need.

You might even be able to set it directly to
%TEMP%

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Niagara and Hamilton Region

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week