"sudo: unable to resolve host ghost" + Directory Permissions 403 Error
Okay, well, I sort of went down the rabbit hole of errors, beginning by attempting to change my newly-made directory ownerships (/var/www/documents and /var/www/projects) to the point where I’m at in the question title above. For reference, I have read the related question, but all seemed fine on that front.
Changing Directory Permissions
First, I visited this piece on GitHub and followed their instructions to
chmod 701 user_home. Files I placed in my newly-made directories above would produced a 403 error—I couldn’t read them. If I do resolve the below, this problem still remains.
Unable to Resolve Host
Since that, upon trying to
sudo service nginx restart, I’ve been getting the above host resolution error. I’m running Ghost. Now, I have an ERRCONNECTIONREFUSED, and nothing is loading.
Server + Site Information
My /etc/hosts and /etc/hostname contents are below respectively. My droplet’s name is Dizaztrous.
127.0.0.1 Dizaztrous Dizaztrous
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost4.localdomain4 localhost4
::1 Dizaztrous Dizaztrous
::1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
My site is www.fromthehiptoss.com. The realm of server-side maintenance is something I’ve been barely scraping by with, and it’s finally hit me now. I’ll be happy to answer any questions you may have, as I’m at a bit of a loss with my site down. Thank you!
Sorry, I’m a bit lengthy—tried to change directory permissions and ended up downing my entire website.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×