PHP temp file settings for multi-node Moodle

PHP temp file settings for multi-node Moodle

by Pedro Martins Da Torre -
Number of replies: 1

I am running Moodle 3.5 on a two node F5 load balanced Windows Server / IIS environment for 79k users. It uses a Isilon NAS share for Moodledata. I just noticed the upload_tmp_dir and sys_temp_dir settings in the php.ini file and I was wondering how those settings should be configured?

Should they each point to a shared temp folder on the Isilon NAS so that each of the two server nodes writes to the same folder, or should they each point to a local folder (e.g. C:\Temp) on each of the server nodes so that each node has it's own Temp folder?

In other words, do upload_tmp_dir and sys_temp_dir each require a shared folder?

Average of ratings: -
In reply to Pedro Martins Da Torre

Re: PHP temp file settings for multi-node Moodle

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

From memory: these should be per-node, i.e. they're local to the PHP process(es) running on each node. I normally put upload_tmp_dir in C:\inetpub\temp\upload_tmp_dir and ensure the IIS user can delete from this location. IIS doesn't have permission to delete from C:\Windows\Temp (the default) so you end up with an increasing number of php*.tmp files.

Average of ratings: Useful (1)