--- tags: Linux, ubuntu --- # 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` `chown apache.apache -R dir` `chmod u+w,g+w -R hl` ## don't do that 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up