Reputation: 3579
Generally in ubuntu changing ownership to www-data
and 775
permission solve this problem. But in centos 8 this seems not enough. What I did is-
Nothing is working. What to do solve this problem?
Upvotes: 2
Views: 2841
Reputation: 43
Turns out the issue is with selinux
This worked for me
sudo chcon -R -t httpd_sys_rw_content_t /path/to/log/directory
Upvotes: 3
Reputation: 21
In CentOS I just solved with this: chcon -R -t httpd_sys_rw_content_t storage/
Upvotes: 2
Reputation: 4275
From the projects root folder try:
sudo chmod -R gu+w storage/
sudo chmod -R guo+w storage/
sudo chmod -R gu+w bootstrap/cache/
sudo chmod -R guo+w bootstrap/cache/
Upvotes: 7