I'd suspect a problem with changing the folders/files owner from "www-data" to "Archer", since that seems to be when the problems started. Try changing the owner back to "www-data" and see if that fixes the PHP scripts permissions problems.
THEN, if the new user Archer can't edit some files, I'd add the Archer user to a group that has permission to edit the files, use a command like usermod -a -G groupName userName
(recommended here https://stackoverflow.com/a/7283086/3412074 or you could edit /etc/groups directly )
Adding Archer to the "www-data" group should work (it seems to be a standard group on Ubuntu-based things)
sudo usermod -a -G www-data Archer