Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 27, 2011 12:18 am 
Offline
Newbie

Joined: Sun Mar 27, 2011 12:00 am
Posts: 2
Website: http://danoc.me/
Hey!

I recently figured got LAMP and phpMyAdmin working, so now I've been playing around with hosting configurations.

I came to Linode from shared hosting, and I want to structure the files similar to how they did.

I would like to be able to have a user account ("dan", for example) as I would with shared hosting. That account would only have access to the home folder. Inside the home folder would be the /public_html and /log folders where "dan" has access to all of the folders (read, write, and execute).

I know I can just change the virtual folder to point to /home/dan/public_html/site_name/, but the LAMP installation guide recommends /srv/www/mysite.com/.

How do web hosts normally structure it? Also, how would I deal with permissions so that "dan" can read, write, and execute the files even if they're not actually in his home folder?

Many thanks!


Top
   
 Post subject:
PostPosted: Sun Mar 27, 2011 8:52 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
A lot of the setup is personal preference.

If you're the only one on your server don't worry about making it look like a shared host, if you are going to have others accessing that you don't trust you'll want to check out

http://library.linode.com/security/sftp-jails/

And I'd suggest restricting users to their home folder and setting the virtual hosts to /home/%u/www

_________________
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
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 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