Skip to content

Cannot relocate storage directory. #5855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arevoly opened this issue Apr 8, 2025 · 1 comment
Open

Cannot relocate storage directory. #5855

arevoly opened this issue Apr 8, 2025 · 1 comment

Comments

@arevoly
Copy link

arevoly commented Apr 8, 2025

I tried to relocate the storage directory to a different location.

In .env file (if you're using environment variables), defined the new storage path:
STORAGE_PATH=/var/www/html/shared_data/storage

Modified bootstrap/app.php, which now includes:
$app->useStoragePath(env('STORAGE_PATH', base_path('storage')));

moved /var/www/html/web/storage to /var/www/html/shared_data/storage

Cleared config:
php artisan config:clear
php artisan cache:clear

I have still the error:

The /var/www/html/web/storage/framework directory must be present and writable.

@arevoly arevoly closed this as completed Apr 8, 2025
@arevoly arevoly reopened this Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant