LinuxQuestions.org
Review your favorite Linux distribution.
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 08-20-2011, 09:11 PM   #1
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
Question Replacing older CentOS server with Apache


I am fixin to build a new CentOS6 or SL6.1 server to replace an older CentOS5 server running Apache/vsftpd/mail and other services.

Presently, it has multiple virtual host on it and the end customers data is located in the /home directory.


Would there be any negative impact in placing the end users web_data in /var and mounting it (/etc/fstab) with usrquota, grpquota and only enforcing it on the user accounts only?

All of the server logs are in /var however if the quota is not set on root it should not impact anything correct?

I think it would be a cleaner setup and easier to manage the virtual host by creating /var/www/virtualhost then the user_directories underneath.


Any advice/suggestions would be great.

Last edited by rhbegin; 08-20-2011 at 09:12 PM.
 
Old 08-22-2011, 05:41 AM   #2
salemeni
Member
 
Registered: Aug 2011
Posts: 64

Rep: Reputation: Disabled
Quote:
Originally Posted by rhbegin View Post
I am fixin to build a new CentOS6 or SL6.1 server to replace an older CentOS5 server running Apache/vsftpd/mail and other services.

Presently, it has multiple virtual host on it and the end customers data is located in the /home directory.


Would there be any negative impact in placing the end users web_data in /var and mounting it (/etc/fstab) with usrquota, grpquota and only enforcing it on the user accounts only?

All of the server logs are in /var however if the quota is not set on root it should not impact anything correct?

I think it would be a cleaner setup and easier to manage the virtual host by creating /var/www/virtualhost then the user_directories underneath.


Any advice/suggestions would be great.
You can do it.
Test it before do anything

generics array

Last edited by salemeni; 12-06-2011 at 03:02 AM.
 
Old 08-22-2011, 07:08 AM   #3
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Original Poster
Rep: Reputation: 23
I will give this a try on a test VM, I would feel better the data being under /var than in /home directory.




thanks
 
Old 08-22-2011, 08:42 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by rhbegin
Would there be any negative impact in placing the end users web_data in /var and mounting it (/etc/fstab) with usrquota, grpquota and only enforcing it on the user accounts only?

All of the server logs are in /var however if the quota is not set on root it should not impact anything correct?
If you're worried about log file growth and user data contending for space, then you might consider a separate filesystem just for /var/www. Carve out filesystem sizes carefully, and/or use LVM2.
 
  


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
Centos Server Apache Usage Alot Of Memory And Cpu awww Linux - Server 3 07-30-2011 06:25 PM
[Centos] Apache web server - SSL for specific folder Black187 Linux - Server 2 04-20-2011 10:38 PM
Centos 5.4 Apache 2.2.3 web server problem with virtualhost dalvis Linux - Server 1 07-30-2010 02:28 AM
My server came with apache and centos 5 installed but need help. shadiadiph Linux - Server 11 07-05-2009 09:25 PM
Installing apache 2.0.59 on centos server blong4life Linux - Newbie 1 10-02-2006 04:12 PM

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

All times are GMT -5. The time now is 10:24 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