#!/bin/bash # # Set the proper filesystem permissions for regular wordpress operation. # Run from wordpress directory USER=www-data GROUP=www-data chown -R root:root . chown $USER:$GROUP .htaccess chown $USER:$GROUP wp-config.php chown -R $USER:$GROUP wp-content