Skip to content

Instantly share code, notes, and snippets.

View fcjurado's full-sized avatar

Francisco Calderón Jurado fcjurado

View GitHub Profile
@fcjurado
fcjurado / wp-permissions-script
Created April 7, 2018 10:59 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro
#
WP_OWNER=changeme # <-- wordpress owner
WP_GROUP=changeme # <-- wordpress group
WP_ROOT=/home/changeme # <-- wordpress root directory
@fcjurado
fcjurado / phpversion.sh
Last active February 24, 2018 10:00 — forked from vjandrea/phpversion.sh
Change php cli version in plesk
#!/bin/sh
printf "Switching php to version 7.1 with symlinks.\n"
printf "Press any key to continue...\n"
read CONTINUE
printf "Creating backups..."
# Backup original binaries
@fcjurado
fcjurado / fix-drupal7-permissions.sh
Last active June 21, 2017 12:40 — forked from GreenSkunk/fix-drupal7-permissions.sh
Drupal - Bash shell script to fix Drupal 7 permissions where the PHP Handler is FastCGI. Forked from https://gist.github.com/mejpark/2294266
#!/bin/bash
path=${1%/}
user=${2}
group=${3}
help="\nHelp: This script is used to fix permissions of a Drupal 7 installation\nwhere the PHP Handler is FastCGI\nyou need to provide the following arguments:\n\t 1) Path to your drupal installation\n\t 2) Username of the user that you want to give files/directories ownership\n\nNote: This script assumes that the group is the same as the username if your PHP is compiled to run as FastCGI. If this is different you need to modify it manually by editing this script or checking out forks on GitHub.\nUsage: bash ${0##*/} drupal_path user_name\n"
echo "Refer to https://www.Drupal.org/node/244924"