웹프로그래밍/PHP
Centos 7 / Apache / PHP - mkdir(): Permission denied
jihun202
2016. 1. 20. 14:40
반응형
Could be that although you have 755/777 permissions, SELinux is blocking httpd from writing/creating dirs.
Try:
chcon -R -t httpd_sys_content_t /path/to/www
chcon -R -t httpd_sys_content_rw_t /path/to/www/dir/for/rw
Further info: http://wiki.centos.org/TipsAndTricks/SelinuxBooleans
반응형