I just tried installing Flarum beta 5 on Nginx for the first time. When I accessed the IP of my site to continue with the install gui, Flarum prompted to modify the following directory permissions:
The /usr/share/nginx/html directory is not writable.
Please chmod this directory to 0775.
The /usr/share/nginx/html/assets directory is not writable.
Please chmod this directory and its contents to 0775.
The /usr/share/nginx/html/storage directory is not writable.
Please chmod this directory and its contents to 0775.
So, I ran the following commands:
chmod 775 /usr/share/nginx/html
chmod -R 775 /usr/share/nginx/html/assets
chmod -R 775 /usr/share/nginx/html/storage
However, the directory issues still persisted. Did I do something wrong?
The only way for me to get to the next step was to add the following commands even though the Flarum installer did not suggest to do so:
chgrp www-data /usr/share/nginx/html
chgrp -R www-data /usr/share/nginx/html/assets
chgrp -R www-data /usr/share/nginx/html/storage
Thoughts? Should the installer have prompted to run the chgrp commands, or is that something that is simply expected?