웹떠돌이

failed to open stream: Permission denied 본문

창고

failed to open stream: Permission denied

njas 2011. 9. 17. 00:26

간혹 Apache + PHP 환경에서 퍼미션(chmod), 유저(chown) 설정이 모두 정상적으로 됐음에도 불구하고 PHP 에서 인클루딩을 할 때 failed to open stream: Permission denied 오류가 나는 경우가 있다.

chcon 이라는 보안문맥을 조정하는 명령어가 있는데 이 명령어로 해결이 가능하다
 
 

chcon -R -t httpd_user_content_t 폴더명


출처 : http://awhile.us/blog/2011/09/failed-to-open-stream-permission-denied/trackback/

'창고' 카테고리의 다른 글

mysql 쿼리 캐쉬  (0) 2012.06.04
rewrite  (0) 2012.05.01
Warning: DocumentRoot [/home/???/public_html] does not exist  (0) 2011.09.16
syntaxhighlighter  (0) 2011.08.29
궁극의 웹2.0 디자인 리소스 다운로드 - Dezinerfolio  (0) 2011.08.07
Comments