Skip to content

Instantly share code, notes, and snippets.

View kristijandraca's full-sized avatar

Kristijan Draca kristijandraca

View GitHub Profile
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# 1- Add this file in public_html
# 2- give execute permissions by: chmod +x fix-wordpress-permissions.sh
# 3- use this command to execute
# sudo sh ./fix_wordpress_file_permissions.sh /home/yourwebsite-goes-here/public_html
#