A bash script to configure correct permissions into a Wordpress installation.
cd /tmp
git clone [email protected]:DevNIX/wp-permissions.git && cd wp-permissions
make install
Just invoke the command with the webserver owner, group, and the folder you want to configure.
wp-permissions [owner] [group] [folder]
For example:
wp-permissions www-data www-data /var/www