nodebb.conf is blank
thanks for the help, how do i create a file in ssh. i am using digitalocean ubuntu server?
nano, you've already created the file (or you will create it, when you add stuff to it and save)
Don't forget to test your new config (
sudo nginx -t) and reload nginx (
sudo service nginx reload) when you're done!
I am getting this error while trying to save the file
"error writing permission denied". I might have made some silly mistake somewhere
I think the whole nginx folder is owned by a daemon user, so before you start creating the file, you'd want to
sudo su <nginx user>
after logging into ssh i typed "sudo su username" and tried to create the file. still same issue pops up. I have configured for "superuser". Should i try it from "root user"
Should i change any chmod permission to that folder
Can you paste the output of an
ls -lafrom the folder where you're trying to create the file? you shouldn't need to chmod anything, in fact that's probably a bad idea.
Yes here it is. the first screenshot is the error i get
Oh ok, so just save your changes (somewhere else), close your nano editor, then do a
sudo nano nodebb.confand start editing.
I don't use nano so I don't know if there's a way to switch users before writing... like in vim
Done.... a million thanks....i've been fighting with this for the past 4 hours. Finally asked for help