Skip to content

Instantly share code, notes, and snippets.

@marinhero
Last active August 29, 2015 14:23
Show Gist options
  • Save marinhero/00a498e3baafc895b097 to your computer and use it in GitHub Desktop.
Save marinhero/00a498e3baafc895b097 to your computer and use it in GitHub Desktop.
Wordpress permissons
#!/bin/bash
USER=$1
find /home/$USER/public_html/ -type f -exec chmod 644 {} +
find /home/$USER/public_html/ -type d -exec chmod 775 {} +
chmod 640 /home/$USER/public_html/wp-config.php
chgrp -R www-data /home/$USER/public_html/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment