Fix permissions in Apache
Apache in macOS Server runs as the _www user. Try granting this user write access to the directory with an ACL entry.

chmod +a "_www allow list,search,add_file,add_subdirectory,delete_child,write,append,file_inherit,directory_inherit" "/Users/&lt;user&gt;/Sites"