-
-
Notifications
You must be signed in to change notification settings - Fork 969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install instructions are outdated #1208
Comments
Re file permissions: This is also reported in #1128, and a docs fix (with stricter dir access mode than yours) has been proposed and is linked there. Makes me wonder which OS/flavor you are using. I'm looking at the user creation template, |
I've used Hetzner cloud servers with Ubuntu 22.04 each time. I don't remember what were the default permissions. I just changed it to |
The certbot instructions have been fixed with #1036 |
Recently I had to set up like three different Mastodon instances on different servers. Every time I've followed the "Installing from source" guide to the letter and each time I have run into the same issues:
The first issue is at the "Setting up nginx" and "Acquiring a SSL certificate" part. When you try to set up certbot using the command from the guide it modifies your Nginx configuration that you've already set up in the previous step and causes it to fail. In order to avoid this you have to run
certbot
incertonly
mode by using this command:certbot certonly --nginx -d example.com
and only then copy the configuration template for nginx per the instructions, then uncomment thessl_certificate
andssl_certificate_key
lines in/etc/nginx/sites-enabled/mastodon
and then restart nginx withsystemctl reload nginx
. This might have caused less experienced users to think they did something wrong (even though they followed the guide) and give up. From what I've seen this issue has already been reported last year but the guide is still the same.The second issue I noticed at each install is that after I set everything up the site looks broken. I only see a white page with a black Mastodon logo somewhere and nothing else at all. The way I managed to fix this every time is by modifying the folder permissions of the main Mastodon folder and its subfolders to
775
using theChmod
command. As I've said this has happened at every installation even though I was installing on different computers, so this might also be worth mentioning in the guide.The text was updated successfully, but these errors were encountered: