/
워드프레스에서 파일 업로그 실패
워드프레스에서 파일 업로그 실패
증상
wordpress 에서 파일을 업로드하면 아래 에러 메시지 발생
Unable to create directory wp-content/uploads/2016/02. Is its parent directory writable by the server?
원인
- 워드프레스의 컨텐츠 저장 디렉터리(wp-content/uploads)에 대해 웹 서버가 쓰기 권한이 없음
- wp-content 의 SELinux content 가 적절하지 않음
처리
upload 폴더의 소유자 변경
chown -R nginx:nginx wp-content/uploads/
아파치 웹 서버 사용시 nginx 대신 httpd 로 변경
context 수정
CentOS 7chcon -R -t httpd_sys_rw_content_t wp-content ## 또는 selinux boolean 변경 setsebool -P httpd_unified on
CentOS 6chcon -R -t httpd_sys_content_t wp-content
- 다시 시도하여 정상 동작하는지 확인
같이 보기
, multiple selections available,
Related content
폴더와 파일에 적절한 권한 부여
폴더와 파일에 적절한 권한 부여
More like this
linux command line 에서 HTTP 로 파일 받기 - wget 사용법
linux command line 에서 HTTP 로 파일 받기 - wget 사용법
More like this
apache httpd 와 weblogic 연동
apache httpd 와 weblogic 연동
More like this
RHEL/CentOS 7 httpd SELinux policy 변경
RHEL/CentOS 7 httpd SELinux policy 변경
More like this
PHPStorm 에서 WSL 2 내에 구성한 PHP 프로젝트 설정하기
PHPStorm 에서 WSL 2 내에 구성한 PHP 프로젝트 설정하기
More like this
Command line HTTP Client util
Command line HTTP Client util
More like this