Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
465 views
in Technique[技术] by (71.8m points)

oauth 2.0 - Cache unable to write to cache codeigniter4 restapi

I'm currently setting my aws centos 7 server using codeigniter4 restapi with OAuth 2.0 and php7.2. My problem is the writing permission for cache folder. I've tried this answers but nothing works.

https://forum.codeigniter.com/thread-73000.html

https://blog.lysender.com/2015/07/centos-7-selinux-php-apache-cannot-writeaccess-file-no-matter-what/

My current user is centos. I've also tried to chmod 777 -R for all the /var/www/html/ folders but the same error occurs.enter image description here

EDIT: Upon posting this question. sudo chcon -t httpd_sys_rw_content_t /data/www/html/sites/mysite/logs -R did fix the problem. I know I've been testing this all day yesterday but it didn't work. Don't know why its working now. Sorry

question from:https://stackoverflow.com/questions/65930681/cache-unable-to-write-to-cache-codeigniter4-restapi

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...