Failed to load resource: the server responded with a status of 500 (HTTP/2.0 500)
On my site I am trying to upload images and extract information from the exif, including GPS tag etc.
On laptop, there is no problem.
However on mobile, with the same images, I am getting
"Failed to load resource: the server responded with a status of 500 (HTTP/2.0 500)"
How can I debug this? Or is there something else I can install?
Another one of my problems, probably related to this, is I have a permissions issue. I ran composer update in production and something got messed up somewhere.
This is the only way I have gotten things to work (until now)
Those permissions don't necessarily look problematic. You should be able to run composer commands in production (or any other environment), provided you run them as an appropriate user; that is, the user under whom PHP runs for the host in question (and not "root"!).
I wouldn't change the permissions until you have concrete evidence to suggest that they are problematic as is. If you are seeing "Access denied" or similar in a log, then please post the specific message.
I concur with @lostdreamer_nl in that you should see evidence of the 500 error in your web-server logs. You can tail the log while you hit the site with your iPhone and see what activity is logged for the IP address in question:
Quite frankly, you shouldn't have to do anything in particular to a forge server except add any special modules that your code needs. Forge servers already have what you need installed in 98% of the cases. You should never change permissions unless you know absolutely why they are incorrect. For instance, if you site directory has improper permissions then that tells me that you installed something with incorrect permissions like using root. So, now only the root user can manipulate the package, etc. Composer is already installed and updated with a forge server so permissions should be correct. If they are not, someone installed it again with different permissions. Remember permission inheritance is a problem when something is installed. The package will automatically assume the permissions of the installer in most cases.