Followed by 300 lines of obscure config commands and server configuration. Great...
My solution: I connect my iPhone once or twice a year and import my photos to a folder on my hard drive. Then I delete the old photos from the phone. That has worked fine for a couple of decades now.
Or you can use iCloud or Google Photos, which is about one dollar per month.