I’m preparing a move from my current hosting to DigitalOcean and it’s promising so far, with most of the stuff working already. However I noticed some pretty odd problems with permissions when clearing cache. Do I have to execute the various composer and PHP commands in SSH with the same user that the Apache server runs on, i.e. www-data? Because I used my own user which belongs to www-data but apparently the reverse is not true and then after I tried to clean the cache from the Flarum Admin web page I got permission errors again. Which all leads me to believe I should always be under su - www-data
or otherwise things will get messed up.
Furthermore, seems like I should recursively chmod 775 and chown to www-data all files in all sub-folders of storage and assets, correct? Anything wrong with that?
Any other general advices?
P.S. can you rename the title from “flaring” to “Flarum”, an auto-correct typo 🤦🏻♂️