리눅스는 폴더에 권한을 부여
sudo chmod -R a+rwx /path/to/folder
데비안 쓰기 권한 부여
sudo chmod -R 757 /var/www
적절한 권한 웹 서버 laravel
sudo chmod -R 777 path/to/root
sudo chown -R www-data:www-data /path/to/root
sudo usermod -a -G www-data ubuntu
sudo find /path/to/root -type f -exec chmod 644 {} \;
sudo find /path/to/root -type d -exec chmod 755 {} \;
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
laravel 파일 권한
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache