For WordPress, Joomla, Drupal, etc.; Set proper ownership and permissions (Joomla and WordPress seem to agree on standard permissions) Special Note: The WordPress Plugin Thumbnail Cleaner deletes .ico and .cur files as no "Thumbnails" are generated. ...so consider making any .cur or .ico files "read only" As of 04.2022, only made the note, about .cur and .ico files, didn't test or implement a solution. chown -R apache:apache DirectoryName find FolderName -type d -exec chmod 755 {} \; find FolderName -type f -exec chmod 644 {} \; ...and if it's a WIKI find images -type d -exec chmod 755 {} \; And for Scribunto : chmod 777 /var/www/html/Wiki.RiseOfTheSaltonSea.com/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua ...and if it's a WIKI and Infoboxes are being used: Wiki.RiseOfTheSaltonSea.com/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic]# chmod a+x lua cp -ax www.BJLindholm.com www.BJLindholm.com_5.9.2 #!/bin/bash chown -R apache:apache $1 find $1 -type d -exec chmod 755 {} \; find $1 -type f -exec chmod 644 {} \; chmod a+x /var/www/html/$1/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua find $1/images -type f -exec chmod 755 {} \; ...to print progress of commands (takes a LOT longer); -v or -c for CHMOD or CHOWN: chown -cR apache:apache $1 OR chown -vR apache:apache $1 -print for find: find $1 -type d -exec chmod 755 {} \; -print