RadarURL

조회 수 3890 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

가 크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

가 크게 작게 위로 아래로 댓글로 가기 인쇄

질문:

This domain was working this morning, now I get a 403 error and the message above in my error log. I'm not using .htaccess files but I have been doing some copy on the server so may have messed things up but no changes to this domain (unless by accident!). What is this pcfg_openfile thing anyway?

Done lots of googleing but none of the solutions seemed to fit these circumstances. Server is ubuntu Hardy Heron.


답변1:

17down voteaccepted

you've probably changed the permissions on the directory (or one of its parents) that the web server is looking for .htaccess in, so that the web server can no longer check to see if there's a .htaccess file.

first fix the permissions on the directory (needs to be rx by the web server process, so 755 or 775, depending on whether you want the dir to be group-writable or not). Note that you have to make sure that the permissions of every parent directory back up to the filesystem root (i.e /) are rx by the web server.

and then, if you're not actually using .htaccess files and have no intention of using them in future (i.e. you intend to put all your config into httpd.conf/apache.conf) then disable htaccess files in the apache configuration.

there is a small performance penalty for checking for the existence of, reading in, and parsing of .htaccess files in the current dir and in every parent dir back up to the document root. it's very small but it adds up when there are many requests.

share|improve this answer
    
Spot on. I had somehome managed to change permissions on the /home directory and that had messed everything else up. Huge thank you! –  user19196 Sep 2 '09 at 22:29


답변2:

If it isn't obvious that .htaccess cannot be read by the server (either 0755 or .htacess and the rest of the tree is in www-data group), search for a higher directory root only onwer:group which does *not* have world execute access.

In order for apache to find a file, it has to search down the tree. It cannot do this if a directory which is root:root does not have global execute access.

I've tripped over this a few times....:-)

share|improve this answer
    
"It cannot do this if a directory which is root:root does not have global execute access." That is not always true. If you are running suPHP, then PHP is running as the file owner. Theoretically, you should be able to test Apache's access by switching to the file-owning user and see if you can navigate there. –  Buttle Butkus Apr 3 '13 at 1:35



출처 : http://serverfault.com/questions/61726/permission-denied-home-htaccess-pcfg-openfile-unable-to-check-htaccess-file

?

공부 게시판

공부에 도움되는 글을 올려주세요.

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 [공지] 공부 게시판 입니다. 처누 2003.08.18 2008997
706 데이터베이스 강남건전지❤️OlO-8655-OO53❤️친절문의환영 #강남건전지 #강남유니콘 #선릉유니콘 #강남건전지위치 #선릉역건전지#대치동유니콘 #강남바커스 #선릉바커스 #선릉역바커스 #강남룸클럽 #선릉룸클럽 #강남베터리 #강남바데리 new 괴랄한재규어89 2026.10.05 1
705 사무 소프트웨어 용인두피문신 고민? 만족 후기 보려면 new 날카로운꿩11 2026.10.05 6
704 윈도우즈 웨딩누브라, 완벽한 드레스 핏을 위한 선택 new 날카로운감시자22 2026.10.05 3
703 가상화 인천맛집 순위 new 차가운파편97 2026.10.05 2
702 웹서버,WAS 손목터널증후군 치료, 현명한 선택 기준은? new 괴상한두루미52 2026.10.05 1
701 가상화 최근 테헤란로 벤처 밸리의 핵심 리더들 사이에서 ‘클래스가 다른 정통 수질과 프라이빗 무드’로 소문 자자한 '선릉 룸싸롱' 기습 방문, 인공미를 거부하는 무결점 뉴페이스들과 심장을 마비시킨 사심 플러팅에 제대로 저격당하고 온 솔직 후기 희미한홍학99 2026.10.05 4
700 웹서버,WAS 카­톡 gusim8003 급전/내구제 (24시문의) 선불폰 소액결제 일수 급전대출 황금빛섬광82 2026.10.05 2
699 데이터베이스 흥신소 선택 가이드 흔들리는골렘32 2026.10.05 2
698 윈도우즈 양산싱크대막힘 완벽 해결 뚫자하수구 몽환적인태양핵44 2026.10.05 1
697 가상화 양산싱크대막힘 신속 해결의 모든 것 조용한치타58 2026.10.05 4
696 유닉스/리눅스 카카오*톡 gusim8003 내구제대출/상조내구제 [24시문의] 선불유심 대출 폰내구제 가개통 하얀라마72 2026.10.05 5
695 윈도우즈 종로구가라오케 010 2817 0845 종로구 가라오케 예약 및 문의 흐릿한분석가84 2026.10.04 9
694 가상화 성공적인 중고화물차 선택 가이드 붉은불꽃77 2026.10.04 5
693 데이터베이스 센텀르엘, 하이엔드 라이프의 새로운 기준 검은파편81 2026.10.04 6
692 가상화 양산싱크대막힘 완벽 해결 뚫자하수구 매혹적인곰18 2026.10.04 5
691 사무 소프트웨어 동탄 미시보다 자극적 첫사랑보다 그리운 마블 노래클럽 010++8293++0291 광휘의퀘이사47 2026.10.03 3
690 웹서버,WAS 탄현동노래방 탄현동에서 찾는 노래방 010 2817 0845 울리는고래상어65 2026.10.03 13
689 유닉스/리눅스 [Rocky Linux 9] /home 용량 줄이고 /root 용량 늘리기 YooN 2026.04.03 3800
688 유닉스/리눅스 [Rocky Linux] LVM 환경에서 /root 파티션 공간 부족 해결 YooN 2026.04.03 4174
687 웹서버,WAS 일반적인 Htaccess 301 리디렉션 규칙 YooN 2026.04.01 4179
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 36 Next
/ 36


즐겨찾기 (가족)

JAESOO's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

숭실대 컴퓨터 통신연구실 (서창진)

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

아스가르드 좋은사람/나쁜사람

JServer.kr

제이서버 메타블로그

재수 티스토리


즐겨찾기 (강의, 커뮤니티)

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너