Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 28, 2012 12:04 am 
Offline
Senior Newbie

Joined: Thu Apr 26, 2012 6:08 am
Posts: 7
Hello,

I am hosting more than one website on my linode 512 with following linod's instructions about setting up a website.

In Ubuntu 10.04 LTS guide it says put your files under /home/user/public_html/site-name/public but in LAMP guide it says to put your files under /srv/www/site-name/public_html

Whats the difference between those and whats the perfect location to host files for multiple sites?

Thanks,


Top
   
 Post subject:
PostPosted: Sat Apr 28, 2012 7:46 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
It's up to you really, if you're the only one on the server there's no difference.

If you have other users uploading files then /home tends to be easier since thats where they will have write access.

_________________
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
   
 Post subject:
PostPosted: Sun Apr 29, 2012 9:17 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
Internet served files should be stored under /srv.

See the Filesystem Hierarchy Standard:
http://www.pathname.com/fhs/pub/fhs-2.3.html


However it's your server so feel free to break that standard if you like.


Top
   
 Post subject:
PostPosted: Sun Apr 29, 2012 9:27 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
I host all my site files under /rock

But Shhhhhh don't tell any of the bad guys they're there.


YMMV


Top
   
 Post subject:
PostPosted: Mon Apr 30, 2012 4:05 am 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ă…lesund, Norway
Skype: neonnero
Twitter: neonnero
I have a personal preference of saving all storage data (mail, web, FTP, projects, etc - although not DNS zone files) under /space.

The previous guy who managed the Linux servers where I work had a preference of using /brukere (Norwegian for "users"), but when it came time to reinstall some servers and migrate data from an old server to its new home, I used my preferred base path for all new and migrated data (making sure all customer scripts using a full path were using the new path in the process, of course).


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