Skip to content

Instantly share code, notes, and snippets.

@jasperf
jasperf / set-permission-wp-site
Last active January 30, 2016 10:41
Make WordPress run properly on local MAMP/Macports setup. It can be adjusted to run on a production server as well. In that case the ROOT path and other variables need to be adjusted. #wordpress #security #bash
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
#Original script https://github.com/shoestrap/shoestrap/wiki/Permissions
#Make sure you name this file whatever.sh and make it chmod 777 before executing it: bash whatever.sh
#