
갑자기 MacOS Yosemite에 설치된 Apache 2.4의 로컬 설치가 작동을 멈췄습니다. 문제는 권한과 관련된 것 같은데 해결 방법을 찾을 수 없습니다.
몇 시간 동안 여러 게시물을 읽은 후 현재 상황은 다음과 같습니다.
오류:
[authz_core:debug] [pid 35232] mod_authz_core.c(799): [client 127.0.0.1:55992] AH01626: authorization result of Require valid-user : denied (no authenticated user yet)
[core:crit] (24)Too many open files: [client ::1:53498] AH00529: /Users/username/Sites/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/Users/username/Sites/' is executable
(그런 .htaccess 파일이 없습니다). 어쨌든 나는 모든 곳에서 잔인하게 777 권한을 시행했습니다.
$ chmod -R a+rwx /Users/username
$ ls -l /Users/username
drwxrwxrwx 187 username staff 6358 Dec 13 16:05 Sites
$ ls -l /Users/
drwxrwxrwx+ 174 username staff 5916 Dec 13 16:39 username
httpd.conf의 내 지시문은 다음과 같습니다.
<Directory "/Users/username/Sites/">
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
#Require all granted - tried, doesn't matter
</Directory>
나는 없앨 수 있다재정의 허용, 하지만 정말 .htaccess가 필요하고 어쨌든 내 가상 호스트의 많은 이미지와 리소스에 대한 권한 문제가 여전히 존재합니다.
누군가가 제안한 대로 httpd.conf에서 Apache 사용자를 변경했습니다.
#User _www
#Group _www
User username
Group staff
여전히 동일합니다.
답변1
귀하의 일일 조회수는 얼마입니까? 높으면 캐싱 설정을 변경해 볼 수 있습니다. 응답 시간을 개선하기 위해 파일을 열어두었을 수도 있습니다. 몇 개의 가상 도메인을 호스팅하고 있나요? 가상 호스트의 총 파일 수는 대략 얼마입니까? 성능 튜닝 문제일 수도 있을 것 같은데...