fix: bypass /tmp tmpfs for file uploads by redirecting PHP upload_tmp_dir to storage partition

This commit is contained in:
Pontoporeia
2026-07-10 15:42:07 +02:00
parent 1293b1be6c
commit c1a05efcda
5 changed files with 35 additions and 4 deletions
@@ -0,0 +1,12 @@
; Bypass /tmp tmpfs (987MB) for large video/audio uploads.
; /tmp defaults to a small tmpfs; this points PHP's upload temp
; directory to the storage partition which has 20GB free.
upload_tmp_dir = /var/www/xamxam/storage/tmp/php-uploads
; These mirror the nginx fastcgi_param PHP_VALUE overrides
; as a belt-and-suspenders safety net.
upload_max_filesize = 8192M
post_max_size = 8192M
memory_limit = 256M
max_execution_time = 600
max_input_time = 600
@@ -0,0 +1,12 @@
; Bypass /tmp tmpfs (987MB) for large video/audio uploads.
; /tmp defaults to a small tmpfs; this points PHP's upload temp
; directory to the storage partition which has 20GB free.
upload_tmp_dir = /var/www/xamxam/storage/tmp/php-uploads
; These mirror the nginx fastcgi_param PHP_VALUE overrides
; as a belt-and-suspenders safety net.
upload_max_filesize = 8192M
post_max_size = 8192M
memory_limit = 256M
max_execution_time = 600
max_input_time = 600