pascal
07-02-2005, 12:06 PM
Hello,
We are all concerning by the security with apache. As every body know the pbm is that an Apache process run under a uid/gid so your web document need to be readable by this uid or gid
Of course there is some solution to run Apache in a chrooted environment.
Apache worked on the perchild MPM to have Apache running under the owner of the script. But it has a lot of bug and Apache doesn't follow up this project.
A new project did appear, called metuxmpm. It works better than perchild but requires you to use multithreaded versions of PHP, Perl and Python (if you want to use mod_perl or mod_python). Between the three of them, and all the third party modules and libraries they link to, there can be a lot of non-threadsafe code involved. That can cause very nasty crashes that are very hard to reproduce.
So here come the peruser project http://www.telana.com/peruser.php
Check it out
I've done some test with it on a NON production box and it seems to work great
Only to give you this link, and let you know that it begins to have some working solutions to the good perchild idea
You might test it and let us know how it works for you
Pascal
We are all concerning by the security with apache. As every body know the pbm is that an Apache process run under a uid/gid so your web document need to be readable by this uid or gid
Of course there is some solution to run Apache in a chrooted environment.
Apache worked on the perchild MPM to have Apache running under the owner of the script. But it has a lot of bug and Apache doesn't follow up this project.
A new project did appear, called metuxmpm. It works better than perchild but requires you to use multithreaded versions of PHP, Perl and Python (if you want to use mod_perl or mod_python). Between the three of them, and all the third party modules and libraries they link to, there can be a lot of non-threadsafe code involved. That can cause very nasty crashes that are very hard to reproduce.
So here come the peruser project http://www.telana.com/peruser.php
Check it out
I've done some test with it on a NON production box and it seems to work great
Only to give you this link, and let you know that it begins to have some working solutions to the good perchild idea
You might test it and let us know how it works for you
Pascal