Skip to content

Instantly share code, notes, and snippets.

@jnpkr
Created February 20, 2013 13:54

Revisions

  1. jnpkr created this gist Feb 20, 2013.
    12 changes: 12 additions & 0 deletions wp-permissions.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash
    #
    # Run within WordPress directory
    # - Changes file permissions but not ownership

    find . -type d -exec chmod 755 {} \;
    find . -type f -exec chmod 644 {} \;

    chmod 660 ./wp-config.php

    find ./wp-content -type d -exec chmod 775 {} \;
    find ./wp-content -type f -exec chmod 664 {} \;