LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-17-2010, 05:17 PM   #1
chico123
LQ Newbie
 
Registered: Oct 2008
Location: Italy
Distribution: ubuntu debian centos
Posts: 2

Rep: Reputation: 0
public_html setup to store a few websites


Hi everyone.
I'm planning on hosting a main website for my school (Wordpress) and a few websites (< 10) for some teachers (Wordpress, Moodle, Joomla). Someone of the teachers needs to access his/her folder via ftp to upload documents, images,...
I'am using apache 2 on ubuntu server 10.04 LTS, 4GB RAM, 2 x 500GB Hard disk (RAID hardware).The server is connected directly to the router DMZ (netgear dgn 2000).

The questions are:
1)If I store the teachers' websites in public_html, should I create as many user as the teachers? And how to set permissions? And where to put the main site and moodle?
2)What are your recommendations about security?
 
Old 10-18-2010, 12:22 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
I would suggest you create normal users for each person who will use ftp.
Then use apache virtual sites to locate each separate web site in each users own home directory.
so you would have a structure in each users home similar to
/home/<user>/www/html/

where /home/<user>/www is the site root and /home/<user>/www/html/ is the document root for each site.

You can leave the main public_html for the main default web site.
You can then restrict the users to their home directories in ftp to prevent them "walking" the directory tree.
 
1 members found this post helpful.
Old 10-18-2010, 05:57 AM   #3
chico123
LQ Newbie
 
Registered: Oct 2008
Location: Italy
Distribution: ubuntu debian centos
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you. I will try what you suggest.
 
Old 12-12-2010, 11:27 AM   #4
NeoBee
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Hi,

Quote:
Originally Posted by smoker View Post
I would suggest you create normal users for each person who will use ftp.
Then use apache virtual sites to locate each separate web site in each users own home directory.
so you would have a structure in each users home similar to
/home/<user>/www/html/

where /home/<user>/www is the site root and /home/<user>/www/html/ is the document root for each site.

You can leave the main public_html for the main default web site.
You can then restrict the users to their home directories in ftp to prevent them "walking" the directory tree.
do you have a proper procedure how to install the moodle? since I am very prostrated about it.. I research some link which has a guide but when I tried to follow the commands there are lot of bunch of error appears. thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it Legal to Open a Small Business to Setup Linux (Ubuntu) Desktops/Create Websites rtoney5 Linux - General 34 10-22-2009 04:35 PM
Information store: What software could I use to store and access various info merixon Linux - Software 2 12-17-2008 11:51 AM
File server setup...what directory to store shared files glenn69 Linux - Server 1 07-08-2008 03:42 PM
Setup is unable to find a hard disk location to store temporary files. Klas Linux - Software 2 02-14-2006 06:47 PM
How-to setup on Apache some Multiple Namebased Virtual Websites with cgi-bin FunkFlex Linux - Newbie 0 02-08-2002 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration