I have come across problems many times and still have not found a solution.
I have websites running php joomla on one linux VPS with centos. Now as I install new extensions, there are some files and folders created within the website. These files or folders have permissions of either apache or whatever.
I make a tar ball using the -p
flag so that permissions stay there, but the problem is that the owner of the files in the original Linux does not exist in the new Linux, so the same cipts now can't edit its own settings because now the owner is changed.
I have to manually change the permission of every folder to 777 to make them work.
How can I fix this problem?