[태그:] 권한설정

  • 워드프레스 플러그인 업데이트 및 권한설정

    플러그인 업데이트를 위해서는 워드 프레스의 권한을 바꿔줘야 한다.

    셋업시 사용자/그룹을 웹서비스 유저로 설정하고…

    chown www-data:www-data  -R * # Let Apache be owner
    find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
    find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--

    설정이 완료되면, 보안을 이유로..아래와 같이 설정한다..

    chown <username>:<username>  -R * # Let your useraccount be owner
    chown www-data:www-data -R wp-content/ # Let apache be owner of wp-content
    #wordpress root에서
    chgrp www-data *

    wp-content는 www-data가 소유자로 그대로 둬야 한다. wp-content의 하부 디렉토리 권한을 안바꾸면 파일 업로드, 수정이 안된다.

    http://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress