Published 7 months ago
I just installed Laravel on a centos server and it doesn't work due the permissions.
I was wondering how to solve this?
chmod 777 /storage/logs/laravel.log
I was reading that 777 isn't safe so that is why I came here to ask you guys about that... and also reading the docs it says that I need permision on storage folder and bootstrap or something like that.
check this thread https://laracasts.com/discuss/channels/general-discussion/laravel-framework-file-permission-security
and don't use 777
I saw that thread and tried to run the commands but most of them the server says invalid user for chown and invalid group for chgrp.
I think CentOS uses 'apache' for group ownership, not 'www-data'
chgrp: invalid group: 'apache'
you should not need to change ownership of anything, just concentrate on permissions.
Delete any Log file that already exists in case it is not owned by the webserver
The only permission that works is setting 0777 to storage, other than that doesn't work.
Please sign in or create an account to participate in this conversation.