#!/bin/sh
# make sure all files and folders are accessible by Apache
-sudo find $(dirname $(pwd)) -type d -exec chmod 755 {} \;
+sudo find /home -type d -exec chmod 755 {} \;
sudo find . -type f -name "*.php" -exec chmod 644 {} \;
# set up Apache for php-fpm