후니의 블로그

Centos 7 / Apache / PHP - mkdir(): Permission denied 본문

웹프로그래밍/PHP

Centos 7 / Apache / PHP - mkdir(): Permission denied

Huzy Huzy 2016.01.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

0 Comments
댓글쓰기 폼