Fix: chown storage and bootstrap/cache to www-data for php-fpm

This commit is contained in:
root
2026-04-05 20:30:23 +02:00
parent bd145607b0
commit a5f7caf2ed

View File

@@ -16,11 +16,12 @@ else
fi
# -----------------------------------------------
# 0b. Create required directories
# 0b. Create required directories & fix permissions
# -----------------------------------------------
mkdir -p storage/framework/{cache,sessions,views}
mkdir -p storage/logs
mkdir -p bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
# -----------------------------------------------
# 1. .env file (must exist before composer/artisan)