LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-22-2007, 09:02 PM   #1
shanya
LQ Newbie
 
Registered: May 2007
Distribution: redhat,CentOS
Posts: 4

Rep: Reputation: 0
Unhappy I want chroot apache


I cannot find related information about how to chroot apache serve in centos 4.4 linux. in addtion, the link is not available so far for security references... Anybody who can help would be apperciated.THS.
 
Old 05-22-2007, 11:06 PM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
This might not be exactly what you're looking for, but here it is:

http://www.onlamp.com/pub/a/apache/2..._security.html

Basically put:
Quote:
Originally Posted by www.onlamp.com
If you have ever tried to chroot a web server you probably know that it is sometimes a complex task. With mod_security the complexity goes away. You are one configuration directive away from a chrooted server:

SecChrootPath /chroot/home/web/apache

The only requirement is that the web server path in the chroot be the same as the path outside of the chroot (in the example above, /home/web/apache). In addition to making chrooting very easy, this approach will allow you to have a chroot that contains only data files without binaries. This advantage comes from the fact that the chroot call is executed internally, after all the dynamic libraries are loaded and log files opened.
And if you're looking for a full chroot (note the above is an "internal chroot", which I read to mean the main apache process is NOT chrooted, but the spawned processes/threads ARE (correct me if I'm wrong, anyone)), then you might check out:

http://www.linux.com/article.pl?sid=04/05/24/1450203

It's not a CentOS specific guide, so you might need to tweak a few commands or settings...hope this helps...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Chroot Apache 2 jroggow Linux - Server 1 12-19-2006 05:40 PM
[apache] Chroot or mod_security? JockVSJock Linux - Security 1 11-26-2006 03:49 AM
Working on Apache Chroot zhizaki Linux - Security 9 11-29-2005 05:53 AM
Chroot Apache nistelrooy Linux - Security 1 06-18-2005 10:18 AM
Apache in a chroot environment tarballedtux Linux - Software 1 04-13-2004 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:15 PM.

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