2016-08-18 3 views
0

내가 가진 :아파치 [errno를 13] 내 가상 호스트 아파치 설정 파일 내에서 권한 거부 오류

<Directory /var/www/antiques/media> 
    Require all granted 
</Directory> 

그럼에도 불구하고 나는 다음과 같은 오류를 받고 있어요 이미지를로드하기 위해 노력하고있어 : [errno를 (13) ] 권한이 거부되었습니다 : '/ var/www/antiques/media/categories'

무엇이 누락 되었습니까?

+0

해당 디렉토리의 파일 권한은 무엇입니까? – user2393256

+0

''모든 권한이 필요합니다'는 파일 권한을 설정하지 않습니까? – HenryM

+1

아니요, Apache 실행중인 사용자는 적어도 해당 디렉토리에 대한 읽기 권한이 있어야합니다./var/www/antiques/media 디렉토리에서 ls -al을 실행하여 사용 권한을 확인할 수 있습니다. – user2393256

답변

0

파일 또는 폴더에 권한을 부여하는 방법을 잘 모르는 경우 FileZilla를 설치하고 서버에 연결하십시오. 그런 다음 파일/폴더를 마우스 오른쪽 버튼으로 클릭하고 파일 사용 권한 옵션을 찾습니다. 여기서 파일/폴더 권한을 훨씬 쉽게 변경할 수 있습니다.

는 요구 사항

Developers need read/write access to files so they can update the website 
Developers need read/write/execute on directories so they can browse around 
Apache needs read access to files and interpreted scripts 
Apache needs read/execute access to serveable directories 
Apache needs read/write/execute access to directories for uploaded content 

체크 아웃 werbserver 권한에 대한 자세한 정보를 원하시면,이 link을 정의합니다.

+0

나는 chmod를 사용하는 방법을 알고 있지만 프로그램을 (사용자와 상관없이) 액세스 할 수 있도록 설정하는 방법을 모르지만 아무도 내가 알지 못하는 다른 백도어 경로를 통해 들어올 수 없습니다. – HenryM

+0

@HenryM 지금 내 대답을 확인하십시오. – DakaMadafaka