Page 2 of 6
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Dec 20, 2010 11:01 am
by scott
The one in question belongs to the libcap-devel package
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Dec 20, 2010 1:10 pm
by BruceLee
Thanks.
Next step is mod_ruid2 + APC.
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 5:00 am
by biggles
Brucelee, do you think mod_ruid2 is ready for prime time? Anything special to consider when implementing?
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 5:20 am
by BruceLee
Well, I think I will use it in production soon. Just had not the time to go further.
But I'm running only one server in production and have a dev server for testing my stuff.
So I'm not sure if my test covers enough to give an advice to go live with it.
What I know is that it is pretty widely used since the first release with previous version called mod_ruid (without 2

).
Also have read of some hosting companies that are running it from the first release and the claim it is very solid.
So I will go live as soon as I have enough time.
Concerning the implementation just follow my previous posts. That's what I needed to do to get it running.
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 5:31 am
by biggles
OK, thanks a bunch! Will try it out on my dev environment as well
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 9:57 am
by biggles
OK, installed on the test server. Wordpress just got a whole lot easier to work with! Everything seems to be working ok.
1. Installed mod_ruid2 via yum.
2. Commented out all option in /etc/httpd/conf.d/ruid2.conf
3. Added this to /etc/httpd/conf/httpd.conf
Code: Select all
LoadModule ruid2_module modules/mod_ruid2.so
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RGroups apache psaserv
RMinUidGid apache apache
</IfModule>
4. Created /var/www/vhosts/domain.tld/conf/vhost.conf
<Directory /var/www/vhosts/domain.tld/httpdocs>
RMode config
RUidGid dinbackup psacln
RGroups psacln
</Directory>
5. Ran /usr/local/psa/admin/sbin/websrvmng
6. Restarted httpd
Then everything was up and running. Wordpress installed without a hickup and uploading plugins works perfectly.
edit: kernel 2.6.32.27-1.art.x86_64
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 10:17 am
by BruceLee
Great!
As I can see Scott updated the package. So it runs right away. Thanks Scott.
%changelog
* Mon Dec 20 2010 Scott R. Shinn <
scott@atomicrocketturtle.com> - 0.9.1-2
- Updated conf to run as apache
- Fixups for eaccelerator & php sessions directories.
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 10:56 am
by biggles
There seems to be an updated mod_ruid version, 0.9.2. couldnät find any changelog though. Maybe we will get an updated package...
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 11:15 am
by BruceLee
oh, yes maybe Scott will add that.
That's what I found about the latest change:
http://mod-ruid.svn.sourceforge.net/vie ... evision=20
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 12:04 pm
by scott
The funny part is it was updated a day after I put out -2

0.9.2 should be up shortly
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Mon Jan 03, 2011 1:10 pm
by biggles
Thanks! Installed fine on my dev system.
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Wed Jan 05, 2011 3:52 pm
by ikkk
Bruce,
Did you manage to get the issue with "ModSecurity: Audit log: Failed to create subdirectories" sorted - testing this on a server with a heavy wordpress install and just get blank pages and this error in the logs.
Ive tried recompiling from source like you did as well - using the latest 0.9.3 version (yeseterday update) but same results.
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Thu Jan 06, 2011 4:41 am
by BruceLee
how have you configured it?
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Thu Jan 06, 2011 6:23 am
by ikkk
Bruce - im using this as a test config for this heavy domain
<IfModule mod_ruid2.c>
RMode config
RDefaultUidGid apache apache
RUidGid apache apache
RGroups apache psaserv psacln
RMinUidGid apache apache
</IfModule>
<Directory /var/www/vhosts/DOMAIN/subdomains/test/httpdocs>
RUidGid USERNAME psacln
RGroups apache psacln psaserv
</Directory>
I have tried with various RGroups settings, - are you not getting this issue anymore ?
Re: [atomic] mod_ruid2 0.9.1-1
Posted: Thu Jan 06, 2011 6:40 am
by mind04
ikkk wrote:
<IfModule mod_ruid2.c>
RMode config
RDefaultUidGid apache apache
RUidGid apache apache
RGroups apache psaserv psacln
RMinUidGid apache apache
</IfModule>
Setting RMinUidGid to apache is not a good idea. RMinUidGid is in mod_ruid2 to prevent switching to system accounts in stat mode. On most linux systems these accounts u/gid are < 100 so the default is fine in most cases. Change this value only if you know exactly what you are doing...