Laravel permissions for storage and bootstrap/cache (Apache or Nginx)

preview_player
Показать описание
Setting server write permissions on Laravel directories "storage" and "bootstrap/cache". Within these directories, the server will write application-specific files such as cache info, session data, error logs, etc.

=== CHAPTERS ===
00:00 Introduction
00:19 Identify user the web server is running as
01:51 Setting permissions
02:37 Confirming it worked

=== RELATED VIDEOS ==
Common Laravel Installation Issues (500 Server Error)

Deploy Laravel on Ubuntu Nginx server

Deploy Laravel on Ubuntu Apache server

=== PRODUCTS I USE ===
(paid links)
Рекомендации по теме
Комментарии
Автор

just the video I needed, kinda surprise it doesnt have more views

mro
Автор

Why are you the only person explaining this properly?! Thank you so much!!

helloitsjury
Автор

I just discovered your channel and your website notes, it's full of awesome simple explanations, Thank you so much

AhmedBWDR
Автор

Hi Susan, thanks for the video, I am using Linux mint and trying to install laravel 11 in my latest linux mint, the filesystem in my Linux machine shows only read permission, I am getting issues like php.ini has commented out extentions: curl, XML etc. Which is not even in the php.ini file .

I have successfully installed laravel with clean installation of php 8.3 and the latest version of composer .

When I try to create laravel from the local drive, with the global composer installed . It throws some db connection errors also .
Thank you for your time much appreciated.

dharma.vibrates
Автор

Very nicely explained. ❤❤

I have one question. What if I'm also running a queue worker, for example, Laravel Horizon, which runs either as a system user or under a different user than the web server? How should I set the permissions for the storage and bootstrap/cache directories to allow both the web server and workers to have proper access?

codewithsub
visit shbcf.ru