study/server

php fopen permission

땅콩잉 2021. 10. 1. 15:44
728x90

권한 거부 당해서 파일을 열지 못함.

chmod 777해도 안될 때.

selinux 로 권한부여 하면 됨.

 

chcon -t httpd_sys_rw_content_t /home/centos/data -R