mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 11:10:08 +01:00
fix: bypass /tmp tmpfs for file uploads by redirecting PHP upload_tmp_dir to storage partition
This commit is contained in:
1 parent
1293b1be6c
commit
c1a05efcda
5 files changed
+35
-4
No files matched your search
@@ -83,6 +83,12 @@ chown -R www-data:xamxam /var/www/xamxam/storage/cache
|
||||
chmod -R 2775 /var/www/xamxam/storage/cache
|
||||
ok "Cache dirs: created and owned by www-data:xamxam"
|
||||
|
||||
# Ensure PHP upload temp dir exists on storage partition (not /tmp tmpfs)
|
||||
mkdir -p /var/www/xamxam/storage/tmp/php-uploads
|
||||
chown www-data:xamxam /var/www/xamxam/storage/tmp/php-uploads
|
||||
chmod 2775 /var/www/xamxam/storage/tmp/php-uploads
|
||||
ok "PHP upload temp dir: /var/www/xamxam/storage/tmp/php-uploads"
|
||||
|
||||
# ── Step 2: Nginx config ──────────────────────────────────────────────────────
|
||||
printf "\n📋 Step 2: Deploying nginx configuration...\n"
|
||||
echo "--------------------------------------------"
|
||||
|
||||
Reference in new issue
Block a user