简体   繁体   中英

I have a Laravel file permission error on an app deploy on cpanel

I have deployed laravel app on a cpanel but I get this error when I try to access the app The stream or file "/home2/../public_html/../../storage/logs/laravel.log" could not be opened: failed to open stream: Read-only file system.

Am unable to set the file permission on the cpanel.

Please does any one have a way I can go around this? Thanks

You need to grant read access to storage folder.

chmod -R 775 storage

you can use this command, its work for me!

sudo chmod -R ugo+rw storage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM