Linux遇到資料夾權限問題
Linux 遇到資料夾權限問題
問題:laravel - The stream or file "/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied
解法:sudo chown apache:apache -R dir
sudo chmod u+w,g+w -R dir
或是
sudo -u root bash -l
chown -R apache apache dir
don’t do that
評論
ValineDisqus