Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Oct 07, 2012 4:54 am 
Offline
Newbie

Joined: Sun Oct 07, 2012 4:41 am
Posts: 4
Hello all :)

I've run my own site for close to a decade on shared hosting, but I'm new to VPS's and don't quite understand some of the stuff I've got to do. I've been trying to set up a LEMP and have been peicing together bits and bobs from the various Linode Library tutorials - one part is following the http://library.linode.com/hosting-website guide and I've hit a stumbling block that I can't work out:

The reverse DNS:

1) I don't know what it's for, what it does, why I need it
2) It seems to set the reverse DNS for one domain on my entire Linode? What do I do if I'm hosting two different domains on my Linode? Will sub-domains also need a reverse DNS?

The other part I'm struggling with is getting the right permissions/owners for my site. I've followed http://library.linode.com/lemp-guides/u ... 10-oneiric to try and get LEMP up and running (the most recent Ubuntu guide, though I am actually using 12.04LTS...) - and while it appears to work, I can't actually upload anything over SFTP because the server doesn't seem to have the right permissions? If you take a look at http://adaptive-images.com you'll see it's returning a 403 error too.

It'd be great if you could point me in a direction for some answers, thanks!

-Matt


Top
   
PostPosted: Sun Oct 07, 2012 6:03 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Reverse DNS is mainly useful for servers that send email, if a receiving mail server doesn't see a reverse DNS entry for the IP that's sending the email that matches the name the mail server claims it has then it'll most likely regard it as spam.

You only have one reverse DNS entry which should be the hostname of your Linode, run
Code:
hostname -f
on your linode to find your FQDN.

The 403 error could be either
1) Nginx can't access the directory/files or
2) There's no index file for the domain and Nginx can't supply a list of files for the directory.

It depends on what your trying to achieve but in general you'll want the www-data user to have read access to your files which you can achieve by making all the directories 0755 and all the fils 0644, running
Code:
chmod -R u+wrX,go+rX /path/to/your/webfiles
will do that.

The files should be owned by whoever you're uploading as which you can set by running
Code:
chown -R youruser /path/to/your/web/files


If that doesn't work, details of your Nginx config and what software you're running would be helpful.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Sun Oct 07, 2012 7:26 am 
Offline
Newbie

Joined: Sun Oct 07, 2012 4:41 am
Posts: 4
Brilliant, i can now upload files and see the website! Thanks very much :)

I'm not using my Linode for email, so I'm assuming I can just ignore the reverse DNS. I did try what you said but it didn't work...

hostname -f gives me "mrserver.example.com" which only sounds half right. Putting that into the Linode Manager gave a "No match was found for 'mrserver.example.com'. Reverse DNS must have a matching forward entry that points to one of your IPs."

Unfortunately I don't understand DNS terms well enough to know what that error means (beyond there's got to be a forward 'thing' matching the reverse 'thing').


Top
   
PostPosted: Sun Oct 07, 2012 8:47 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You need an A record pointing to your linode's IP for whatever your FQDN is I assume you substituted mrserver.example.com for what your FQDN really is. If you have any scripts that send out emails then it's a good idea to setup rDNS

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Sun Oct 07, 2012 9:54 am 
Offline
Newbie

Joined: Sun Oct 07, 2012 4:41 am
Posts: 4
Thanks :) Hmm, nope - that was literally it.

I've run through the first tutorial again and come across this in the FQDN part:
"...edit your /etc/hosts file to resemble the following example, replacing plato with your chosen hostname, example.com with your system's domain name...".

I replaced plato with mrserver - but what is my systems domain name? I don't have a domain name specifically for my system, and the tutorial seems to say it can be anything (i.e., unrelated to the domains I want to host)? Am I supposed to just make a nonsense Domain Zone in the DNS Manager as well and use that?

Thanks again!


Top
   
PostPosted: Sun Oct 07, 2012 11:21 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
It needs to be a real registered domain. In my case I use something.rwky.net the something tends to be a greek god because I'm a nerd. So just pick a domain you own (perhaps one your email is attached to) and create a subdomain for it and use that.

If you really can't think of anything then set it to the default Linode one which you can get from running
Code:
host yourlinodeip

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Sun Oct 07, 2012 1:47 pm 
Offline
Newbie

Joined: Sun Oct 07, 2012 4:41 am
Posts: 4
Great, thanks for all the help :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group