Website not loading

I have an Ubuntu 18.04 LTS node, with LEMP.

I created a dev user but they couldn't upload files to the server. I did the following:

adduser dev
adduser dev sudo

I then did the following as they couldn't upload files:

sudo chmod a+rwx /var/www/html
addgroup dev
chgrp -R dev /var/www/html
chmod -R 770 /var/www/html
adduser dev dev

now they can upload files but the site is not loading when access from a browser, I get the nginx 404

I am new to linode and ubuntu but I believe the issue is to do with the permission changes I made!

before this it was working fine!

how do I fix it!

2 Replies

i fixed it!

sudo chown -R dev:www-data /var/www/html

Usually you create a public_html folder and all website files go in there.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct