RadarURL

조회 수 1578 추천 수 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 947528
2535 유닉스/리눅스 [Rocky Linux 9] /home 용량 줄이고 /root 용량 늘리기 JaeSoo 2026.04.03 7
2534 유닉스/리눅스 [Rocky Linux] LVM 환경에서 /root 파티션 공간 부족 해결 JaeSoo 2026.04.03 4
2533 웹서버,WAS 일반적인 Htaccess 301 리디렉션 규칙 JaeSoo 2026.04.01 9
2532 유닉스/리눅스 [Linux/Rocky] SSH Root 로그인하는 방법 (root 접속 허용) JaeSoo 2026.04.01 11
2531 데이터베이스 MariaDB my.cnf 설정 파일 JaeSoo 2026.03.03 50
2530 데이터베이스 MariaDB 설정 파일 개요와 구조 JaeSoo 2026.03.03 41
2529 논문 EMR을 기반으로 DW를 구축한 병원의 CRM 활용 방안 연구 = The Study on a Plan to Activate Customer Relationship Management through Data Warehouse based on Electronic Medical Record of Hospitals JaeSoo 2026.02.06 121
2528 인터넷 호스팅케이알(hosting.kr) 도메인 가격 2배 인상으로 인한 도메인 기관 이전 file JaeSoo 2026.01.16 115
2527 건강 올바른 자위습관을 가져야 하는 이유 file JaeSoo 2026.01.12 246
2526 연애 대한민국 결정사 직업 등급표 file JaeSoo 2026.01.09 232
2525 생활 알아두면 유용한 향수 향 종류 모음 JaeSoo 2026.01.09 169
2524 업무 로그인 구글 드라이브 안 쓰고 시놀로지 드라이브 쓰는 이유, 설정 방법 & 활용팁 JaeSoo 2026.01.08 205
2523 네트워크 SMB 다중 채널 관리 JaeSoo 2026.01.08 194
2522 네트워크 Synology NAS SMB 3.0 Multichannel 이용하기 JaeSoo 2026.01.08 202
2521 네트워크 어떻게 SSH를 통해 root 권한으로 DSM/SRM에 로그인할 수 있습니까? JaeSoo 2026.01.08 183
2520 네트워크 시놀로지 나스 SMB 3.0 멀티채널 구성하는법 JaeSoo 2026.01.08 166
2519 경제 RWA(Real-World Assets): 실물자산 토큰화 이해 JaeSoo 2026.01.05 219
2518 생활 그루밍성범죄와 가스라이팅 차이점, 처벌 수위 알아보기 JaeSoo 2025.12.23 264
2517 건강 전문의가 추천하는 자위 횟수 file JaeSoo 2025.12.23 289
2516 모바일 일상에 쉽게 적용할 수 있는 수면 관리 앱 5가지 JaeSoo 2025.12.18 286
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 127 Next
/ 127


즐겨찾기 (가족)

JAESOO's HOMEPAGE


YOUNGAE's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

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

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

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

JServer.kr

제이서버 메타블로그

재수 티스토리


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

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너