For learning and practical purpose, I create a repo for a complete Joomla folder on a remote linux server, then I push it to github. Then I tried two ways to get the files to my local Mac.
Firstly, I download .zip file of the repo from github and unzip them to local dir, then I edit configuration.php to connect to the remote database. The site has no problem opening.
Secondly, I use "github desktop" to clone the repo to local dir, then edit configuration.php. But when I open the website, I get this "Failed to load 'rt_photon' template: mkdir(): Permission denied" error. I know this is related with file owner/permission, but I can't identify what exactly it is. I just do
chown -R root:root and
chmod -R 0777 and the website can be open now.
I use Rockettheme's "rt_photon" template, but I think that is probably irrelevant. Can anyone explain to me how file owner/permission affect joomla site and why the cloned repo and the unzipped folder have different file owner/permission setting(suppose this is the reason of the error)?